Comments being visible for members only Comments being visible for members only
 

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]

Main Menu

Comments being visible for members only

Started by chupa2k, June 18, 2005, 06:08:50 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

chupa2k

Hey all ,

I got a question , Is there some mod that enables me to show the comments for logged registered users ONLY ?

Nibbler

displayimage.php, find

$comments = html_comments($CURRENT_PIC_DATA['pid']);

and change to

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

chupa2k

Did i tell you you rock already ?


Thanks !!!


SOLVED .

emiliano

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:

$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!