Hi.
You're going to have to edit memberlist.php in your board's root directory. Make sure you back the file up first before making any changes,
then find:
Code: Select all
// Check our mode...
if (!in_array($mode, array('', 'group', 'viewprofile', 'email', 'contact', 'contactadmin', 'searchuser', 'team', 'livesearch')))
{
trigger_error('NO_MODE');
}
Then add the following after it:
Code: Select all
if (in_array($mode, array('','group')))
{
if ($user->data['group_id'] != 5)
{
trigger_error('NO_VIEW_USERS');
}
}
For any user who is not an Administrator (not in the group administrators), they will receive an error message when they try to view the full memberlist or group memberships.
Of course, to allow users to view profiles, set "can view memberlist, online list, and profiles" to "yes" under the permission settings for registered users. Due to this change, it will only give them the ability to view profiles though.
Administrators and only administrators will be unaffected.
Avatar by someone named AdmiralRA on Reddit. (No, I don't have a Reddit account)
When seeking support, please consider filling out the
Support Request Template. It makes it easier for anyone trying to help.