Profile viewing by Guest

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
Locked
r_deckard9
Registered User
Posts: 38
Joined: Mon Feb 28, 2005 3:10 am
Contact:

Profile viewing by Guest

Post 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.
David Palmer
Registered User
Posts: 319
Joined: Tue Nov 23, 2004 5:25 pm

Post 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
The more details you can provide about your problem, the better people can help you!
phpBB Rules :: Support Request Template
r_deckard9
Registered User
Posts: 38
Joined: Mon Feb 28, 2005 3:10 am
Contact:

Post by r_deckard9 »

Thank you.
Yeah, I did a search once but could not find anything. I guess I will search some more.
r_deckard9
Registered User
Posts: 38
Joined: Mon Feb 28, 2005 3:10 am
Contact:

Post 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.
Visit: http://www.theuniquegeek.com
for a geeked out forum.
groundfighter
Registered User
Posts: 1909
Joined: Sat Nov 08, 2003 2:15 am
Location: Las Vegas, NV
Contact:

Post 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
r_deckard9
Registered User
Posts: 38
Joined: Mon Feb 28, 2005 3:10 am
Contact:

Post 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=
Visit: http://www.theuniquegeek.com
for a geeked out forum.
r_deckard9
Registered User
Posts: 38
Joined: Mon Feb 28, 2005 3:10 am
Contact:

Post 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.
Visit: http://www.theuniquegeek.com
for a geeked out forum.
scanar
Registered User
Posts: 10
Joined: Fri Jan 30, 2004 6:43 pm

Post 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.
r_deckard9
Registered User
Posts: 38
Joined: Mon Feb 28, 2005 3:10 am
Contact:

Post 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.
Visit: http://www.theuniquegeek.com
for a geeked out forum.
SpacePower
Registered User
Posts: 66
Joined: Wed Mar 16, 2005 9:04 pm
Location: Berlin, EU
Contact:

Post 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
Power to the Peaceful
My forum(s):
http://www.stayhuman.org/phpBB2
http://www.spearhead-home.com/phpBB2
My website:
Image
r_deckard9
Registered User
Posts: 38
Joined: Mon Feb 28, 2005 3:10 am
Contact:

Post by r_deckard9 »

Visit: http://www.theuniquegeek.com
for a geeked out forum.
Locked

Return to “2.0.x Support Forum”