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.
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.