forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: klingsor on July 14, 2005, 07:11:16 pm

Title: Different pic info if the user has logged
Post by: klingsor on July 14, 2005, 07:11:16 pm
Hi people,

I would like to know what should be done to put an extra row in the pic info, depending on if the user has logged or not.

I have been trying to do a sort of hacking my theme.php:

Code: [Select]
if (USER_ID)
{$template_display_picture = <<<EOT
XXXXXXX
EOT;}
else
{
$template_display_picture = <<<EOT
YYYYYYYYY
EOT;
}

But it doesn't work.
Do you guys think that is better to do the change in displayimage.php?
If the answer is yes where should it be located?
Thanks in advance

Klingsor