PDA

View Full Version : in memberlist.php


TTayfun
01-17-2016, 07:20 AM
hi guys, can i disable for usergroupid 1 mean guest, view the memberlist.php,

i found this code in memberlist.php

// permissions check
if (!($permissions['forumpermissions'] & $vbulletin->bf_ugp_forumpermissions['canview']) OR !($permissions['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['canviewmembers']))
{
print_no_permission();
}

how can i add OR usergroupid == 1 can you add this code as php

--------------- Added 1453022448 at 1453022448 ---------------

if (!($permissions['forumpermissions'] & $vbulletin->bf_ugp_forumpermissions['canview']) OR !($permissions['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['canviewmembers']) OR $vbulletin->userinfo['usergroupid'] == 1)

is it true?

--------------- Added 1453023499 at 1453023499 ---------------

with includes.

blind-eddie
01-17-2016, 02:30 PM
In your ACP, Usergroups, Unregistered/Not Logged in, Scroll to the General Permissions section and select NO on the first line, Can View Member Info.

No editing needed.

TTayfun
01-17-2016, 02:43 PM
i did with plugin thanks. if i set no, normal users will not viewable

blind-eddie
01-17-2016, 03:40 PM
If you set Can View Member Info to No in the Unregistered/Not Logged in Usergroup Manager, only that usergroup will not see member info.
Doing this in one usergroup has no effect on other usergroups ability to see member info.