if {TITLE} if {TITLE}
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

if {TITLE}

Started by t014_b, February 01, 2008, 11:34:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

t014_b

hello

I need a specific text shown if image title matches a word. ( i found {TITLE} in themes.inc.php )

something like :

if({TITLE} == "show text 1"){ echo "text1";}

can you help?

thanks

Nibbler

Depends exactly where you want the text displayed. {TITLE} is a template placeholder variable; you can't use it for any logic.

t014_b

i want the text displayed on displayimage.php on a <tr> above the one from the <tr> that contains the buttons for report, display information, previous,next etc.

thanks

t014_b

i'm not interested in the part that displays the text, i only want the "title" or "pid" of the picture (so i can get the picture title from the database) in a variable. i hope i'll manage the rest

thanks

Nibbler