Log in

View Full Version : Override bitfield permissions


Ziki
10-17-2008, 12:04 PM
Hello,

I was trying to override the permissions of the usergroup I created a plugin on the hook global_setup_complete

if($vbulletin->userinfo['usergroupid'] == '6'){
$vbulletin->bf_ugp_vbulletin['canview'] = true;
$vbulletin->bf_ugp_vbulletin['canviewthreads'] = true;
$vbulletin->bf_ugp_vbulletin['canviewothers'] = true;
$vbulletin->bf_wolpermissions_vbulletin['canwhosonline'] = true;
$vbulletin->bf_genericpermissions_vbulletin['canviewmembers'] = true;
$vbulletin->bf_albumpermissions_vbulletin['canviewalbum'] = true;
}

This was just a test,I disabled the rights for admins,but it didn't overwrite them.I think the variables I am using are not correct,what are the correct ones?

Thank you

Ziki
10-19-2008, 05:14 PM
Hm seems that this would set the permissions for everybody,aanybody can tell me the correct variable?

Ziki
10-21-2008, 07:14 PM
I tried $permissions but that did not work as well.Please somebody point me into the right direction.

Ziki
10-23-2008, 12:05 PM
Somebody please? :) I will give you a cookie

.-.-.-.-.-.-.-.-.-.-.-.-.-.
( . . . . . . )
( )
( . . . . . . . )
( )
( . . . . . . )
( )
( . . . . . . . )
( )
'-'-'-'-'-'-'-'-'-'-'-'-'-'