Hiding member list from guests

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785
donnak78631
Registered User
Posts: 30
Joined: Wed Mar 15, 2006 3:22 pm

Re: Hiding member list from guests

Post by donnak78631 » Sun Oct 14, 2007 3:34 pm

My file already reads that way, why can people still see my member list?

// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_VIEWMEMBERS);
init_userprefs($userdata);
if ($userdata['user_id'] == ANONYMOUS)
{
redirect(append_sid('login.'.$phpEx));
}
//
// End session management
//

User avatar
dellsystem
Former Team Member
Posts: 3879
Joined: Sat Apr 09, 2005 8:54 pm
Location: Montreal
Name: Wendy
Contact:

Re: Hiding member list from guests

Post by dellsystem » Sun Oct 14, 2007 4:24 pm

donnak78631 wrote:My file already reads that way, why can people still see my member list?
Guests should not be able to. Link to your memberlist page please?
Former moderator and website team member | My MODs, and more (GitHub)

donnak78631
Registered User
Posts: 30
Joined: Wed Mar 15, 2006 3:22 pm

Re: Hiding member list from guests

Post by donnak78631 » Sun Oct 14, 2007 8:39 pm


User avatar
dellsystem
Former Team Member
Posts: 3879
Joined: Sat Apr 09, 2005 8:54 pm
Location: Montreal
Name: Wendy
Contact:

Re: Hiding member list from guests

Post by dellsystem » Sun Oct 14, 2007 8:39 pm

See? It works. (You have to log out first to check it)
Former moderator and website team member | My MODs, and more (GitHub)

donnak78631
Registered User
Posts: 30
Joined: Wed Mar 15, 2006 3:22 pm

Re: Hiding member list from guests

Post by donnak78631 » Sun Oct 14, 2007 10:47 pm

I got it, thanks so much!!!

Locked

Return to “2.0.x Support Forum”