Different pic info if the user has logged Different pic info if the user has logged
 

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

Different pic info if the user has logged

Started by klingsor, July 14, 2005, 07:11:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

klingsor

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:


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