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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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!