Advanced search  

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]

Pages: [1]   Go Down

Author Topic: member profiles visible while not logged in  (Read 4209 times)

0 Members and 1 Guest are viewing this topic.

lordprodigy

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 228
    • B514 ///
member profiles visible while not logged in
« on: February 01, 2006, 09:57:26 pm »

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! :)
« Last Edit: February 06, 2006, 10:15:26 pm by Nibbler »
Logged

lordprodigy

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 228
    • B514 ///
Re: member profiles visible while not logged in
« Reply #1 on: February 06, 2006, 08:41:34 pm »

#2 was solved here : http://forum.coppermine-gallery.net/index.php?topic=26532.msg127166#msg127166

thanks to Nibbler and Paver.

#1 still looking for a solution.
Logged

Nibbler

  • Guest
Re: member profiles visible while not logged in
« Reply #2 on: February 06, 2006, 09:04:35 pm »

Changing include/functions should do it

Code: [Select]
            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

Code: [Select]
            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.
« Last Edit: February 06, 2006, 09:42:15 pm by Nibbler »
Logged

lordprodigy

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 228
    • B514 ///
Re: member profiles visible while not logged in
« Reply #3 on: February 06, 2006, 09:40:17 pm »

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.
Logged

Nibbler

  • Guest
Re: member profiles visible while not logged in
« Reply #4 on: February 06, 2006, 09:42:28 pm »

Try again, I corrected a typo.
Logged

lordprodigy

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 228
    • B514 ///
Re: member profiles visible while not logged in
« Reply #5 on: February 06, 2006, 10:06:54 pm »

Great! Its working now. Thank you very much! Concider this thread solved :)
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.