forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Permissions & Access Rights => Topic started by: chupa2k on June 18, 2005, 06:08:50 pm

Title: Comments being visible for members only
Post by: chupa2k 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 ?
Title: Re: Comments being visible for members only
Post by: Nibbler 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']): '';
Title: Re: Comments being visible for members only
Post by: chupa2k on June 19, 2005, 08:10:37 am
Did i tell you you rock already ?


Thanks !!!


SOLVED .
Title: Re: Comments being visible for members only
Post by: emiliano 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!