member profiles visible while not logged in member profiles visible while not logged in
 

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

member profiles visible while not logged in

Started by lordprodigy, February 01, 2006, 09:57:26 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

lordprodigy

Hello,

I turned OFF the view member list in admin and I dont want non registered people to have access to personal profiles.

Having said that I have two issues so far:

1- As seen here ( http://www.bogho.com/b514/thumbnails.php?album=lastcom&cat=0 ) I can see who posted that comment and I can click on the name of that person, eventhough I am not logged in. How can we have the name of the poster non linked for visitors and linked for registered members?

2- Same issue with the Who is online plugin, where listed names are linkable although the person is not logged in. I would rather them not be linkable but still displayed. this is the discussion thread for that http://forum.coppermine-gallery.net/index.php?topic=26532.msg126034#msg126034

Thank you in advance! :)

lordprodigy


Nibbler

#2
Changing include/functions should do it


            if ($row['author_id']) {
                $caption .= '<span class="thumb_caption"><a href ="profile.php?uid='.$row['author_id'].'">'.$row['msg_author'].'</a>: '.$msg_body.'</span>';
            } else {
                    $caption .= '<span class="thumb_caption">'.$row['msg_author'].': '.$msg_body.'</span>';
            }


to


            if ($row['author_id'] && USER_ID) {
                $caption .= '<span class="thumb_caption"><a href ="profile.php?uid='.$row['author_id'].'">'.$row['msg_author'].'</a>: '.$msg_body.'</span>';
            } else {
                    $caption .= '<span class="thumb_caption">'.$row['msg_author'].': '.$msg_body.'</span>';
            }


1 question per thread next time.

lordprodigy

Thanks Nibbler, I replaced the code you suggested but the link is still active... any ideas?

this is the link: http://www.bogho.com/b514/thumbnails.php?album=lastcom&cat=0

and its in the Last comments meta album.

thanks in advance.

Nibbler


lordprodigy

Great! Its working now. Thank you very much! Concider this thread solved :)