how do you not display members list?

Discussion of general topics related to the new version and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
Forum rules
Discussion of general topics related to the new release and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
Post Reply
coreyt1111
Registered User
Posts: 74
Joined: Tue Mar 13, 2007 4:23 pm

how do you not display members list?

Post by coreyt1111 » Wed Mar 14, 2007 5:37 pm

I dont want to display the members list and also I want to delete some members. How do I do this? Thanks

User avatar
Handyman
Registered User
Posts: 522
Joined: Thu Feb 03, 2005 5:09 am
Location: Where no man has gone before!
Contact:

Re: how do you not display members list?

Post by Handyman » Wed Mar 14, 2007 8:13 pm

are you using phpBB3 or phpBB2? because in phpBB3 you can set permissions to not allow access to the member list.
Otherwise, you could create a .htaccess redirect so users can't browse to it.
My phpBB3 Mods || My Mod Queue
Search Engine Friendly (SEO) URLs || Profile link on Avatar and/or Username || AJAX Chat
Display Posts Anywhere || CashMod || AJAX Quick Edit || AJAX Quick Reply

Image

User avatar
3Di
Registered User
Posts: 750
Joined: Tue Nov 01, 2005 9:50 pm
Location: Milano (I) Frankfurt (D)
Contact:

Re: how do you not display members list?

Post by 3Di » Wed Mar 14, 2007 8:18 pm

in case of phpBB2, the following code will redirect to the login page all guests..

Open memberlist.php
FIND
Code:

Code: Select all

init_userprefs($userdata);
AFTER ADD

Code: Select all

if ($userdata['user_id'] == ANONYMOUS)
{
    redirect(append_sid("login.$phpEx?redirect=memberlist.$phpEx", true));
}
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
Extensions, Scripts, MOD porting, Update/Upgrades
My development's activity º PhpStorm's proud user

coreyt1111
Registered User
Posts: 74
Joined: Tue Mar 13, 2007 4:23 pm

Re: how do you not display members list?

Post by coreyt1111 » Wed Mar 14, 2007 10:58 pm

thanks alot man, I will give it a try.

User avatar
Arty
Former Team Member
Posts: 985
Joined: Wed Mar 06, 2002 2:36 pm
Location: Mars
Contact:

Re: how do you not display members list?

Post by Arty » Thu Mar 15, 2007 7:45 am

in overall_header.tpl find this:

Code: Select all

						<td align="center" valign="top" nowrap="nowrap"><span class="mainmenu">&nbsp;<a href="{U_FAQ}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_faq.gif" width="12" height="13" border="0" alt="{L_FAQ}" hspace="3" />{L_FAQ}</a>&nbsp; &nbsp;<a href="{U_SEARCH}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_search.gif" width="12" height="13" border="0" alt="{L_SEARCH}" hspace="3" />{L_SEARCH}</a>&nbsp; &nbsp;<a href="{U_MEMBERLIST}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_members.gif" width="12" height="13" border="0" alt="{L_MEMBERLIST}" hspace="3" />{L_MEMBERLIST}</a>&nbsp; &nbsp;<a href="{U_GROUP_CP}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="{L_USERGROUPS}" hspace="3" />{L_USERGROUPS}</a>&nbsp; 
and replace with this:

Code: Select all

						<td align="center" valign="top" nowrap="nowrap"><span class="mainmenu">&nbsp;<a href="{U_FAQ}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_faq.gif" width="12" height="13" border="0" alt="{L_FAQ}" hspace="3" />{L_FAQ}</a>&nbsp; &nbsp;<a href="{U_SEARCH}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_search.gif" width="12" height="13" border="0" alt="{L_SEARCH}" hspace="3" />{L_SEARCH}</a>&nbsp; 
						<!-- BEGIN switch_user_logged_in -->
						&nbsp;<a href="{U_MEMBERLIST}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_members.gif" width="12" height="13" border="0" alt="{L_MEMBERLIST}" hspace="3" />{L_MEMBERLIST}</a>&nbsp; 
						<!-- END switch_user_logged_in -->
						&nbsp;<a href="{U_GROUP_CP}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="{L_USERGROUPS}" hspace="3" />{L_USERGROUPS}</a>&nbsp; 

User avatar
3Di
Registered User
Posts: 750
Joined: Tue Nov 01, 2005 9:50 pm
Location: Milano (I) Frankfurt (D)
Contact:

Re: how do you not display members list?

Post by 3Di » Thu Mar 15, 2007 8:24 am

the above code makes the memberlist link available only to logged in users (hides the link to guests).
should be used in combination with mine so.
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
Extensions, Scripts, MOD porting, Update/Upgrades
My development's activity º PhpStorm's proud user

Post Reply