The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Default admin permissions?
Hello Folks,
another small question. Normally if you edit an administrators permissions, its all set to "No" (if its a new record). Is there a plugin/option/whatsoever to set this to predefined values? (i. e. see attachment) Me know that the free software MyBB (boo!) has an "default group permissions" option for this, but we dont need this, since our admins have (mostly) the same permissions. All we could found in the code is, that when editing an administrator an "empty" record with only the user_id is created in the "administrator" table. Thanks. |
#2
|
||||
|
||||
No, it was designed that way as most owners might want to assign different permissions to different admins.
It should not take long at all to set up, also it's not like you are adding new admins every ten minutes. |
#3
|
|||
|
|||
Quote:
Please backup your database. |
#4
|
||||
|
||||
Why not creating a plugin then ozzy?
You did many great plugins here (some we use too)... @tbworld: You could do also with changing the "default" value of the field, but we didnt want to manipulate the database. But your idea of "copying the bitfield" lead to the simple solution, thanks. Simple, but working solution: Since the "adminpermissions" field is 0 for new admins, just check for it and set the desired value (15605220 for us) before the Code:
foreach (convert_bits_to_array(...)) { print_yes_no_row(...); } Background: Of course its not something you do every day, but there is (how do you say in US?) "reorganization in progress" and a merge with another community (they had a different script) so there will be a new "org chart" then .In the end there will be only 2 people with "$config['SpecialUsers']['superadministrators']" so the change above will be removed afterwards. Thanks, can be closed like the other thread. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|