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
-
Hey all ,
I got a question , Is there some mod that enables me to show the comments for logged registered users ONLY ?
-
displayimage.php, find
$comments = html_comments($CURRENT_PIC_DATA['pid']);
and change to
$comments = USER_ID ? html_comments($CURRENT_PIC_DATA['pid']): '';
-
Did i tell you you rock already ?
Thanks !!!
SOLVED .
-
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!