The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#4
|
|||
|
|||
![]()
Oh right - that's why you listed the ones you were interested in
![]() Anyway it looks like a super moderator gets all permissions by default (if you haven't edited the permissions). So you'd probably need to change the code to do what you want. You'd either have to insert a record in the moderator table whenever a user is made a super moderator, or else change the code in function fetch_moderator_permissions() (in includes/functions.php). Near the end of that function there's this code: Code:
if ($useglobalperms) { if (!$hasglobalperms) { // super mod without a record, give them all permissions $globalperms['permissions'] = array_sum($vbulletin->bf_misc_moderatorpermissions) - ($vbulletin->bf_misc_moderatorpermissions['newthreademail'] + $vbulletin->bf_misc_moderatorpermissions['newpostemail']); $globalperms['permissions2'] = array_sum($vbulletin->bf_misc_moderatorpermissions2); } So I think if you were to set $globalperms['permissions'] and $globalperms['permissions2'] to have the bits set only for the permissions you want by default, it might work. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|