Hi on my board I added custom admin premissions! Here I will show you how.
Difficulty: Moderate
Time Required: About 15 minutes if you know what you are doing
Tech Requirements: A text editor, phpMyAdmin, and access to your web host
In this tutorial we will show you have to make an Admin Premission that will disallow or allow Admins to ban users. Things in blue is what you would like the premission to be (such as: can edit bad words). This may get confusing at times so pay attention and if necessairy ask questions on this thread.
To begin open up ./admin/adminoptions.php
Find this code:
After that add:
Find:
After that add:
Save that...
***Pay attention here***
Open up ./admin/users.php
Go to the end of the admin function you want to add the new premission for and add:
Then go to phpMyAdmin
Click on your MyBB database, then click on the Table "mybb_adminoptions"
Then click on Add 1 Fields twoards the botom of the page.
Click "Go"
For the name of the new table put "canbanusers"
Type: Char
Length/Values: 3
Click Save
If everything went ok you should have a new admin premission!
If you had any trouble try again if you still cant get it post here,
Good Luck and enjoy
Difficulty: Moderate
Time Required: About 15 minutes if you know what you are doing
Tech Requirements: A text editor, phpMyAdmin, and access to your web host
In this tutorial we will show you have to make an Admin Premission that will disallow or allow Admins to ban users. Things in blue is what you would like the premission to be (such as: can edit bad words). This may get confusing at times so pay attention and if necessairy ask questions on this thread.
To begin open up ./admin/adminoptions.php
Find this code:
"canedithelp" => addslashes($newperms['canedithelp']),
After that add:
"canbanusers" => addslashes($newperms['canbanusers']),
Find:
makeyesnocode($lang->can_manage_helpdocs, "newperms[canedithelp]", $permissions['canedithelp']);
After that add:
makeyesnocode($lang->can_ban_users, "newperms[canbanusers]", $permissions['canbanusers']);
Save that...
***Pay attention here***
Open up ./admin/users.php
Go to the end of the admin function you want to add the new premission for and add:
checkadminpermissions("canbanusers");
Then go to phpMyAdmin
Click on your MyBB database, then click on the Table "mybb_adminoptions"
Then click on Add 1 Fields twoards the botom of the page.
Click "Go"
For the name of the new table put "canbanusers"
Type: Char
Length/Values: 3
Click Save
If everything went ok you should have a new admin premission!
If you had any trouble try again if you still cant get it post here,
Good Luck and enjoy