there're optional ways to use the permission:
along with
$permissions['myhackpermissions'] & $vbulletin->bf_ugp['myhackpermissions']['canfoo']
you can use
$permissions['myhackpermissions'] & $vbulletin->bf_ugp_myhackpermissions['canfoo']
or
$permissions['myhackpermissions'] & 1
the last one is the shortest one but then you won't understand what it does, 1 is the value of <bitfield> tag, just similar as the old permission settings.
I found that the 'canfoo' is case sensitive, this took me almost a day to figure out lol
|