Author Topic: Tag {if lightbox}{endif lightbox} not working {if details}{endif details} does?!  (Read 6203 times)

0 Members and 1 Guest are viewing this topic.

Offline x23piracy

  • Sr. Member
  • ****
  • Posts: 420
    • View Profile
    • FHG
Hi,

i need a working {if lightbox} {endif lightbox} tag i was wondering
{if details} {endif details} is working but lightbox tag not.

Howto make this work?

I have a control panel in header where all the buttons relies but i have to hide
them if iam not on the right page

For example:
Code: [Select]
{if details}
{lightbox_button}
{postcard_button}
<br>
<a href="#" onclick="toggle_onoff('details_comments')"><img title="Kommentare anzeigen" border="0" src="{template_url}/images/comments.png"></a>
{endif details}
{if user_loggedin}
<a href="#" onclick="toggle_offon('menu')"><img title="Menüs ausblenden" border="0" src="{template_url}/images/controls.png"></a>
<a href="#" onclick="toggle_onoff('mp3player')"><img title="MP3 Player" border="0" src="{template_url}/images/player.png"></a>
{endif user_loggedin}
{upload_button}
{if has_rss}<a href="{rss_url}"><img src="{template_url}/images/rss.png" title="{rss_title}" border="0" alt="{rss_title}" /></a>
{endif has_rss}
{if details}
{download_button}
<br>
{download_zip_button}
<a href="#info" rel="facebox"><img title="Kommentieren" border="0" src="{template_url}/images/comment.png"></a>
<br>
{endif details}
{if admin_links}
{admin_links}
{endif admin_links}

For the future how to find out which tags allready available? i hate trying.


Greetz X23
« Last Edit: November 20, 2010, 07:27:47 PM by x23piracy »

Don't trust in md5 it's unsafe change your 4i galerys password hash algorythm! second pw db field, create new hashes over some time, deny old hash. Help members that cry, send informationen mail to the rest. Camouflage new pw hash in cookie. Done!

--(◔̯◔)--

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
1. nach den Hinweisen ...
hier -> http://www.4homepages.de/forum/index.php?topic=28290.msg152870#msg152870
hier -> http://www.4homepages.de/forum/index.php?topic=28290.msg152881#msg152881
dachte ich du hättest die {if tag} ... {endif tag} Problematik verstanden ...

2. also wie vorgehen ohne zu testen (wenn man es hasst ...)
- die if-Abfrage funktioniert nur für bestehende Tags -> sämtlich zur Verfügung stehende Tags findest du in den Templates ...
- sind Tags in der functions.php o. page_header.php definiert, so kannst du sie in allen templates verwenden ...
- sind Tags in speziellen _.php definiert (z.B. details.php), so kannst du sie nur in den entsprechenden Templates verwenden (z.B. detail.html) ...
- und reichen dir die bestehenden Tags nicht aus, so kannst du dir nach o.g. Vorgabe selbst welche definieren ...

3. {if lightbox} ... {endif lightbox}
- den Tag {lightbox} gibt es für die details.html nicht ... ergo ... {if lightbox} kann nicht funktionieren ...
- wie nun zu verfahren ist ... siehe unter 1. und 2. ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline x23piracy

  • Sr. Member
  • ****
  • Posts: 420
    • View Profile
    • FHG
3. {if lightbox} ... {endif lightbox}
- den Tag {lightbox} gibt es für die details.html nicht ... ergo ... {if lightbox} kann nicht funktionieren ...

Hi,

ich hatte da scheinbar doch noch einige unklarheiten, nochmals danke
für deine Verdeutlichung.

Ich brauche die Tags aber funktionierend in der header.html da ich dort
den obigen code stehen habe.

Also am besten in der functions oder im page_header definieren nur wo
liegt da jetzt der Unterschied ob es nun die functions oder die
page_header ist in der ich die Tags definiere?

Bei den Kommentaren konnte sich V@no auf das vorhandensein von
Kommentaren in der DB beziehen ich überlege gerade was ich da bei
dem Lightbox Download und Löschbutton tun soll?

Es reicht mir eigentlich zu wissen ob die aufgerufene Seite die Lightbox
ist nur wie geht das?

Muss ich das durch prüfen der Adresszeile des Browser machen also die
aktuelle url oder geht das unkomplizierter?

also wie vorgehen ohne zu testen (wenn man es hasst ...)

hier hast du mich glaube ich falsch verstanden, ich hasse nicht das testen, ich finde
es nur doof auf gut Glück zu probieren wenn ich wüßte wo ich es in Erfahrung
bringen kann was überhaupt zur Verfügung steht.


Gruß Jens
« Last Edit: November 20, 2010, 03:48:53 PM by x23piracy »

Don't trust in md5 it's unsafe change your 4i galerys password hash algorythm! second pw db field, create new hashes over some time, deny old hash. Help members that cry, send informationen mail to the rest. Camouflage new pw hash in cookie. Done!

--(◔̯◔)--

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline x23piracy

  • Sr. Member
  • ****
  • Posts: 420
    • View Profile
    • FHG
Hi,

thx V@no with my unknowness i found a bug  :mrgreen: lol...
...but it's not working for me... i've posted it in your fix thread:

http://www.4homepages.de/forum/index.php?topic=28321.msg152976#msg152976


Greetz X23
« Last Edit: November 20, 2010, 07:13:25 PM by x23piracy »

Don't trust in md5 it's unsafe change your 4i galerys password hash algorythm! second pw db field, create new hashes over some time, deny old hash. Help members that cry, send informationen mail to the rest. Camouflage new pw hash in cookie. Done!

--(◔̯◔)--

Offline x23piracy

  • Sr. Member
  • ****
  • Posts: 420
    • View Profile
    • FHG
Re: [1.7.7 - 1.7.9] {lightbox} tag not registered
« Reply #5 on: November 20, 2010, 07:09:03 PM »
Hi V@no,

i have done the change (1.7.9) but the following code isn't displayed on the lightbox page:

Code: [Select]
{if lightbox}
{download_button}
{if thumbnails}<a href="javascript:clearlightbox()"><img src="{template_url}/images/lightbox_delete.png" title="{lang_delete_lightbox}" border="0" /></a>{endif thumbnails}
<br>
{endif lightbox}

Don't trust in md5 it's unsafe change your 4i galerys password hash algorythm! second pw db field, create new hashes over some time, deny old hash. Help members that cry, send informationen mail to the rest. Camouflage new pw hash in cookie. Done!

--(◔̯◔)--

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [1.7.7 - 1.7.9] {lightbox} tag not registered
« Reply #6 on: November 20, 2010, 07:47:51 PM »
Which template did you add that code to?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline x23piracy

  • Sr. Member
  • ****
  • Posts: 420
    • View Profile
    • FHG
Re: [1.7.7 - 1.7.9] {lightbox} tag not registered
« Reply #7 on: November 20, 2010, 07:53:02 PM »
Which template did you add that code to?

Hi,

my code above is in header.html i need it there because i have a controls div
where all the buttons are in.

It's defined in header.html because it's shown on every page so i don't need
to repeat the code in every template page.

What should i do?


Greetz X23

Don't trust in md5 it's unsafe change your 4i galerys password hash algorythm! second pw db field, create new hashes over some time, deny old hash. Help members that cry, send informationen mail to the rest. Camouflage new pw hash in cookie. Done!

--(◔̯◔)--