Quote:
Originally Posted by Link14716
Post about 20 lines down from here then:
PHP Code:
// ### INSERT PLUGIN USERGROUP PERMISSIONS BITFIELDS HERE ###
// ----------------------------------------------------------
|
Here ya go.
Congrats on the final .
PHP Code:
// ### INSERT PLUGIN USERGROUP PERMISSIONS BITFIELDS HERE ###
// ----------------------------------------------------------
$_BITFIELD['usergroup']['shoutboxpermissions'] = array(
'shoutview' => 1,
'shoutpost' => 2,
'shoutedit' => 4,
'shoutdelete' => 8,
'shouthdelete' => 16,
'shouteditothers' => 32,
'shoutdeleteothers' => 64,
'shouthdeleteothers' => 128,
'shoutip' => 256,
'shoutcoventry' => 512
);
// ----------------------------------------------------------
// ### END PLUGIN USERGROUP PERMISSIONS BITFIELDS HERE ###
// now take all the usergroup bitfields and define constants for spot permission checks
foreach($_BITFIELD['usergroup'] AS $_permgroup)
{
foreach($_permgroup AS $_constname => $_constval)
{
define(strtoupper($_constname), $_constval);
}
}
unset($_constname, $_constval, $_permgroup);
// Calendar Moderator permissions
$_BITFIELD['calmoderatorpermissions'] = array(
'caneditevents' => 1,
'candeleteevents' => 2,
'canmoderateevents' => 4,
'canviewips' => 8,
'canmoveevents' => 16
);
// Forum Moderator permissions
$_BITFIELD['moderatorpermissions'] = array(
'caneditposts' => 1,