coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: Gephri on January 09, 2007, 01:06:52 AM

Title: Decrypting a link error on comments
Post by: Gephri on January 09, 2007, 01:06:52 AM
Can anyone tell me where the following code creates the following error?

mytheme/theme.php
        $template = template_eval($template_image_comments, $params);

($row['author_id'] == 0 ) ? $profile_lnk = stripslashes($row['msg_author']): $profile_lnk = "<a href=\"profile.php?uid={$row['author_id']}\">".stripslashes($row['msg_author'])."</a>";


For some reason this code is showing <a href =
on the page, rather than the actual submitters name as a link.
Searched my original docs, and backups - cant find where I went wrong.
Thanks in advance for any help.
Title: Re: Decrypting a link error on comments
Post by: Nibbler on January 09, 2007, 03:24:24 PM
Did you already set $row['msg_author'] to be a link earlier in the code? Attaching your complete theme.php would be useful.
Title: Re: Decrypting a link error on comments
Post by: Gephri on January 09, 2007, 07:18:43 PM
That's it - thanks Nibbler!