2006-03-03, 01:37 AM
I noticed it isn't easy to add new permissions to the board.
For new adminpermissions you can do something like that in adminoptions:
You need to rename the language vars for the permissions. But its many times easyer to add or remove an option by doing an database query and add the language var.
Later you can add functions which help to extend these parts by modify the code itself.
For new adminpermissions you can do something like that in adminoptions:
if($mybb->input['action'] == "updateperms")
...
tableheader($lang->edit_perms);
tablesubheader("$tsub");
foreach ($permissions as $key => $value)
{
if ($key == 'uid' || $key == 'cpstyle' || $key == 'notes' || $key == 'permsset') continue;
makeyesnocode($lang->$key, "newperms[$key]", $value);
}
endtable();
You need to rename the language vars for the permissions. But its many times easyer to add or remove an option by doing an database query and add the language var.
Later you can add functions which help to extend these parts by modify the code itself.