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: Decrypting a link error on comments  (Read 2651 times)

0 Members and 1 Guest are viewing this topic.

Gephri

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 235
Decrypting a link error on comments
« on: January 09, 2007, 01:06:52 am »

Can anyone tell me where the following code creates the following error?

mytheme/theme.php
Code: [Select]
        $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.
« Last Edit: January 09, 2007, 09:15:42 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: Decrypting a link error on comments
« Reply #1 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.
Logged

Gephri

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 235
Re: Decrypting a link error on comments
« Reply #2 on: January 09, 2007, 07:18:43 pm »

That's it - thanks Nibbler!
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 20 queries.