Page 1 of 1

Profile viewing by Guest

Posted: Tue Mar 01, 2005 3:57 am
by r_deckard9
I have to say first of all that I have been really impressed with phpBB.

Newbie question:
I am in the process of testing phpBB on the following site:

www.edwardcrosby.com

I noticed that without having to login, a guest can view a user's profile.
How do you fix this? I only want registered users to be able to view a profile.
Thank you.

Posted: Tue Mar 01, 2005 7:41 am
by David Palmer
I can't find it right now, but there's a simple code modification you can make that will prevent displaying profile data to guests ... if you do a search on the site you'll proably find it.

Good luck,

David

Posted: Tue Mar 01, 2005 11:15 am
by r_deckard9
Thank you.
Yeah, I did a search once but could not find anything. I guess I will search some more.

Posted: Thu Mar 17, 2005 12:32 am
by r_deckard9
I still haven't been able to find this.
I am looking for a way to hide the Memberlist from non-registered people.

Posted: Thu Mar 17, 2005 1:40 am
by groundfighter
I say hide it from everyone, why let someone have that much access to your valued members. I don't.

This is what I do. http://www.phpbb.com/phpBB/viewtopic.php?t=270982

Posted: Thu Mar 17, 2005 12:21 pm
by r_deckard9
Thank you.
After much, much more searching, I found this late last night also.

http://www.phpbb.com/phpBB/viewtopic.ph ... highlight=

Posted: Thu Mar 17, 2005 1:47 pm
by r_deckard9
Correction on the last post I made.
From the link I posted I was able to hide the Memberlist from un-registered users. However, I just discovered that if you still click on an individual member, you see their profile without having to login.
Does anyone know how to fix this? I want to be able to hide all members from un-registered users.

Posted: Thu Mar 17, 2005 2:12 pm
by scanar
I tried to do use the same system as hiding the memberlist on the profile page so that you had to be logged in to see the profile of a user. Only thing is, this prevents generating a lost password (as this is from the profile page). The only way we could get around it was to make all forums registered user only, works for our forum. Have just stumbled on this mod http://www.phpbb.com/phpBB/viewtopic.php?t=213812 which I will be investigating, looks like it does what we want.

Posted: Fri Mar 18, 2005 12:40 am
by r_deckard9
I make my forum's categories viewable by guest but registered members are the only ones who can post to the categories so this MOD will not work for me.

Posted: Sat Apr 02, 2005 1:09 am
by SpacePower
r_deckard9 wrote: Correction on the last post I made.
From the link I posted I was able to hide the Memberlist from un-registered users. However, I just discovered that if you still click on an individual member, you see their profile without having to login.
Does anyone know how to fix this? I want to be able to hide all members from un-registered users.


Change also the profile.php that way:

#
#-----[ OPEN ]---------------------------------------------
#
profile.php

#
#-----[ FIND ]---------------------------------------------
#
if ( $mode == 'viewprofile' )
{

#
#-----[ AFTER, ADD ]---------------------------------------------
#


//
// Begin 'Restrict Guest Access' MOD
if ( !$userdata['session_logged_in'] )
{
redirect(append_sid("login.$phpEx?redirect=profile.$phpEx&mode=viewprofile", true));
}
// End 'Restrict Guest Access' MOD

Posted: Sun Apr 03, 2005 2:23 am
by r_deckard9