Additional Info
Type
Package ID
Shadav:Staff_and_User_Menus
First Created
February 15, 2021, 06:26:18 PM
Last Updated
February 18, 2021, 12:43:29 AM

Staff and User Menus v1.0

Staff and User Menus
Compatible With 2.0.18
Latest version v1.0
Downloads 603
Reviews 0
Rating 0/5
Subscribers 0
License (View License)
Author(s)
This will add 2 new menu items
Staff Menu
User Menu

it will move the admin and moderator menus into the new Staff Menu
it will move the profile and my messages menus into the new User Menu

this only modifies subs.php, so backup Sources/Subs.php before installing just in case :)
and adds 2 lines to Modifications.english.php and Modifications.english-utf8.php (if you have them)

to translate
$txt['staff_menu'] = 'Staff Menu';
$txt['user_menu'] = 'User Menu';


The staff menu will only show to those who have permission to view the moderation center
The user menu will only show to those who have permission to edit their profiles

thanks to vbgamer for bring up a point about the user menu
I had just used if allowed to edit profile then show the menu but should also add if allowed pm to show the menu

so changed the show in to an array
'show' => allowedTo(array('allow_edit_profile', 'allow_pm')),
this way also if you add other menus into the the user menu you can add it's show setting into the array
Manual installation info
You have to register or login to be able to leave a review
There are currently no reviews on this customization
Advertisement: