Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: if {TITLE}  (Read 2524 times)

0 Members and 1 Guest are viewing this topic.

t014_b

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
if {TITLE}
« on: February 01, 2008, 11:34:13 pm »

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
Logged

Nibbler

  • Guest
Re: if {TITLE}
« Reply #1 on: February 01, 2008, 11:43:20 pm »

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

t014_b

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: if {TITLE}
« Reply #2 on: February 02, 2008, 05:56:32 pm »

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
Logged

t014_b

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: if {TITLE}
« Reply #3 on: February 04, 2008, 06:18:39 pm »

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
Logged

Nibbler

  • Guest
Re: if {TITLE}
« Reply #4 on: February 04, 2008, 06:47:24 pm »

See http://forum.coppermine-gallery.net/index.php?topic=50046.0 but you want pid or title instead of user_name.
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.