Page 3 of 4

Re: Hiding member list from guests

Posted: Sun Apr 29, 2007 5:58 am
by karlsemple
JMaclean wrote: This looks great, now, I really have to show my ignorance, what file gets this code??

I have not looked at the code of ANY of my files, just glad to have the board up and running, but I dont think visitors need to see who the members are and this looks good to me!

TIA!!

- John -



you need to edit the memberlist.php with the change above

Re: Hiding member list from guests

Posted: Sun Apr 29, 2007 6:45 am
by JMaclean
Thanks,

I had just figured that out and was making the mod when your notice of reply (email) came in...

It works like a charm, now to TRY to find mods to disable the search and usergroups listing for visitors, mainly the usergroups listings...

Thanks again!!

- John -

Re: Hiding member list from guests

Posted: Sun Apr 29, 2007 6:47 am
by karlsemple
You can apply the change to most the files as you see fit so pick and chose, the only one which needs to be done different is the profile page, do the changes below as you see fit :)

Open {root}/faq.php, groupcp.php, index.php, memberlist.php, search.php, viewforum.php, viewonline.php, viewtopic.php, posting.php
Find:

Code: Select all

init_userprefs($userdata);
After, add:

Code: Select all

if ($userdata['user_id'] == ANONYMOUS)
{
redirect(append_sid('login.'.$phpEx));
}
Open {root}/profile.php
Find:

Code: Select all

	if ( $mode == 'viewprofile' )
	{
		include($phpbb_root_path . 'includes/usercp_viewprofile.'.$phpEx);
		exit;
	}
Replace with:

Code: Select all

	if ( $mode == 'viewprofile' )
	{
		if ($userdata['user_id'] == ANONYMOUS)
		{
		redirect(append_sid('login.'.$phpEx));
		}

		include($phpbb_root_path . 'includes/usercp_viewprofile.'.$phpEx);
		exit;
	}

Re: Hiding member list from guests

Posted: Mon Apr 30, 2007 7:00 am
by JMaclean
What file do I have to modify to keep guest users from clicking on another users website link (the one that shows at the bottom of a message)??

2 in one here; Due to the number of spammers signing on and posting their malware loaded websites (before I can prune them out), I really would like to keep that website link at the bottom of messages from being available for the guests, and from showing in a users profile for all users if the new user is not set active.

I hope that makes sense!?
TIA!

Re: Hiding member list from guests

Posted: Thu May 03, 2007 9:58 pm
by Jleagle
JMaclean wrote: What file do I have to modify to keep guest users from clicking on another users website link (the one that shows at the bottom of a message)??

2 in one here; Due to the number of spammers signing on and posting their malware loaded websites (before I can prune them out), I really would like to keep that website link at the bottom of messages from being available for the guests, and from showing in a users profile for all users if the new user is not set active.

I hope that makes sense!?
TIA!


For the first question you could disallow guest posting, then nobody can see their websites in threads.

For the second question you could disallow guests to view posts, then they cant click on any links in posts.

Neither of these require file edits, but not everyoen wants to restrict access to guests.

Re: Hiding member list from guests

Posted: Sun May 06, 2007 8:21 pm
by jlhaslip
What is the likelihood of this procedure becoming a full-on Mod? It isn't difficult to do, but having this procedure as a Mod to be installed using Easy Mod might benefit others who are less capable...

Re: Hiding member list from guests

Posted: Sun May 06, 2007 8:31 pm
by Lumpy Burgertushie
jlhaslip wrote: What is the likelihood of this procedure becoming a full-on Mod? It isn't difficult to do, but having this procedure as a Mod to be installed using Easy Mod might benefit others who are less capable...

which procedure? if you mean the restricting access stuff, it already is a MOD.

robert

Re: Hiding member list from guests

Posted: Wed Jun 20, 2007 11:16 pm
by tonzodehoo
Excellent! The MODs work no problem. These forums are indispensible. Great stuff.

Re: Hiding member list from guests

Posted: Sat Oct 13, 2007 12:12 am
by philly05
As I read through this, I think I have done this before.

My question is, will this hide individual profiles? Like if someone new comes to my board, they cannot access the member list but if they click on, say, the newest member, it goes right to the user's profile.

Does this solve that too?

Re: Hiding member list from guests

Posted: Sat Oct 13, 2007 10:33 am
by momentum
Try the Redirect anonymous users to login MOD which will do exactly as the title says.

Craig.

Re: Hiding member list from guests

Posted: Sat Oct 13, 2007 6:38 pm
by philly05
momentum wrote:Try the Redirect anonymous users to login MOD which will do exactly as the title says.

Craig.
I don't want to hide the first page entirely, I just don't want guests to have access to member profiles...that are linked to that page

Re: Hiding member list from guests

Posted: Sat Oct 13, 2007 7:05 pm
by RMcGirr83
philly05 wrote:As I read through this, I think I have done this before.

My question is, will this hide individual profiles? Like if someone new comes to my board, they cannot access the member list but if they click on, say, the newest member, it goes right to the user's profile.

Does this solve that too?
Just apply the edit to memberlist.php to restrict viewing of the memberlist.

Re: Hiding member list from guests

Posted: Sat Oct 13, 2007 9:01 pm
by some blind fool
philly05 wrote:My question is, will this hide individual profiles?
yep.
karlsemple wrote:Open {root}/profile.php
Find:

Code: Select all

	if ( $mode == 'viewprofile' )
	{
		include($phpbb_root_path . 'includes/usercp_viewprofile.'.$phpEx);
		exit;
	}
Replace with:

Code: Select all

	if ( $mode == 'viewprofile' )
	{
		if ($userdata['user_id'] == ANONYMOUS)
		{
		redirect(append_sid('login.'.$phpEx));
		}

		include($phpbb_root_path . 'includes/usercp_viewprofile.'.$phpEx);
		exit;
	}

Re: Hiding member list from guests

Posted: Sun Oct 14, 2007 1:38 am
by momentum
philly05 wrote:I don't want to hide the first page entirely, I just don't want guests to have access to member profiles...that are linked to that page
Which is exactly what the MOD I mentioned does. It won't stop a guest user from reading the posts, just the member list, the group list & individual profiles.

Craig.

Re: Hiding member list from guests

Posted: Sun Oct 14, 2007 2:19 am
by philly05
Thanks for all of the great advice, a true testament to this place.

The bit some blind fool posted did the trick.