Limited viewing of memberlist and usergroup

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
Mango Boy
Registered User
Posts: 4
Joined: Thu Dec 20, 2007 7:10 am

Limited viewing of memberlist and usergroup

Post by Mango Boy » Sun Dec 23, 2007 5:01 pm

How can I only allow admin to see the memberlist and who is the subscribers of the usergroup (subscribers can only see the group information but not who is in the list)?

User avatar
Former Team Member
Posts: 18478
Joined: Tue Oct 12, 2004 5:36 pm
Location: Darwen N.West UK

Re: Limited viewing of memberlist and usergroup

Post by Jim_UK » Sun Dec 23, 2007 7:13 pm

For admin only it is

Code: Select all

#To hide the memberlist to all users except admin:
#-----[ OPEN ]------------------------------------------

#-----[ FIND ]------------------------------------------

#-----[ AFTER, ADD ]------------------------------------------
if ( $userdata['user_level'] != ADMIN )
redirect(append_sid("login.$phpEx?redirect=memberlist.$phpEx", true));
The truth is out there.
Unfortunately they will not let you anywhere near it!

User avatar
Former Team Member
Posts: 39802
Joined: Mon Nov 01, 2004 8:54 am
Location: Hereford, UK

Re: Limited viewing of memberlist and usergroup

Post by karlsemple » Sun Dec 23, 2007 7:15 pm

As for the user groups...... make them hidden groups via the admin control panel and users will not be able to view the group :)

Failing that you can apply the same change as above to the groupcp.php file also obviously changing the memberlist reference in the redirect code to group


Return to “2.0.x Support Forum”