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: Comments being visible for members only  (Read 4106 times)

0 Members and 1 Guest are viewing this topic.

chupa2k

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Comments being visible for members only
« on: June 18, 2005, 06:08:50 pm »

Hey all ,

I got a question , Is there some mod that enables me to show the comments for logged registered users ONLY ?
« Last Edit: June 19, 2005, 02:11:01 pm by TranzNDance »
Logged

Nibbler

  • Guest
Re: Comments being visible for members only
« Reply #1 on: June 18, 2005, 10:01:38 pm »

displayimage.php, find

Code: [Select]
$comments = html_comments($CURRENT_PIC_DATA['pid']);
and change to

Code: [Select]
$comments = USER_ID ? html_comments($CURRENT_PIC_DATA['pid']): '';
Logged

chupa2k

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Re: Comments being visible for members only
« Reply #2 on: June 19, 2005, 08:10:37 am »

Did i tell you you rock already ?


Thanks !!!


SOLVED .
Logged

emiliano

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Comments being visible for members only
« Reply #3 on: August 20, 2005, 05:50:13 pm »

What about the "Last Comment" ? There guest can see the comments!

I know that I have to play with functions.inc.php (searching the forum) and with line:

Code: [Select]
$caption = '<span class="thumb_title">'.$user_link.'</span>'.'<span class="thumb_caption">'.localised_date($row['msg_date'], $lastcom_date_fmt).'</span>'.'<span class="thumb_caption">'.$msg_body.'</span>';

Obviously I have to attack $msg_body but I don't know how..

Thanks in advance!
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.