The code doesn't work if added following,Other solution, openmemberlist.php
file and find:add after:Code:
// Check our mode...if (!in_array($mode, array('', 'group', 'viewprofile', 'email', 'contact', 'contactadmin', 'searchuser', 'team', 'livesearch'))){trigger_error('NO_MODE');}
Save and purge the cache.Code:
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, they will receive an error message when trying to view the full list of members or group memberships.
Code:
/memberlist.php?mode=searchuser
Statistics: Posted by exemplary1 — Sun Mar 03, 2024 5:39 pm