Code: Select all
<!-- IF S_DISPLAY_MEMBERLIST -->
<li class="rightside" data-last-responsive="true">
<a href="{U_MEMBERLIST}" title="{L_MEMBERLIST_EXPLAIN}" role="menuitem">
<i class="icon fa-group fa-fw" aria-hidden="true"></i><span>{L_MEMBERLIST}</span>
</a>
</li>
<!-- ENDIF -->
'S_DISPLAY_MEMBERLIST' => (isset($auth)) ? $auth->acl_get('u_viewprofile') : 0,
'S_DISPLAY_MEMBERLIST' => false,
http://myforum.com/memberlist.php
Changing the name of the file called, does not change the code calling that file. In short: result = file not foundexemplary1 wrote: Mon Feb 19, 2024 8:06 am Is it ok that I rename memberlist.php file to something else, so that only me/admin can see by typing ?
Or is it connected to few other files ?
memberlist.php
file and find:
Code: Select all
// Check our mode...
if (!in_array($mode, array('', 'group', 'viewprofile', 'email', 'contact', 'contactadmin', 'searchuser', 'team', 'livesearch')))
{
trigger_error('NO_MODE');
}
Code: Select all
if (in_array($mode, array('','group')))
{
if ($user->data['group_id'] != 5)
{
trigger_error('NO_VIEW_USERS');
}
}
So it is connected to other files somehow.warmweer wrote: Mon Feb 19, 2024 8:28 amChanging the name of the file called, does not change the code calling that file. In short: result = file not foundexemplary1 wrote: Mon Feb 19, 2024 8:06 am Is it ok that I rename memberlist.php file to something else, so that only me/admin can see by typing ?
Or is it connected to few other files ?
Cool, its working.Thank you.ssl wrote: Mon Feb 19, 2024 8:37 am Other solution, openmemberlist.php
file and find:add after:Code: Select all
// 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: 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, they will receive an error message when trying to view the full list of members or group memberships.
memberlist.php is a default file in phpBB referenced by other files so you'll get aexemplary1 wrote: Mon Feb 19, 2024 8:52 amSo it is connected to other files somehow.warmweer wrote: Mon Feb 19, 2024 8:28 am
Changing the name of the file called, does not change the code calling that file. In short: result = file not found
in various places.file not found
The code doesn't work if added following,ssl wrote: Mon Feb 19, 2024 8:37 am Other solution, openmemberlist.php
file and find:add after:Code: Select all
// 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: 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, they will receive an error message when trying to view the full list of members or group memberships.
Code: Select all
/memberlist.php?mode=searchuser
Code: Select all
/memberlist.php?mode=viewprofile&u=2
Code: Select all
case 'viewprofile':
// Display a profile
if ($user_id == 2)
{
trigger_error('NO_USER');
}