Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: May 2003
Posts: 20
Junior Member
Junior Member
Offline
Joined: May 2003
Posts: 20
Read through the post at top about hacking the cp.cgi and am currently trying to sort it all out. Figured Id ask in the event that the solution is quick:

I want to remove some of the options that moderators have and also remove many admin options. Id like the control panel to look almost totally empty of options with a few more in the admin. I'll make a backup of the edited files so I can always have full admin control by restoring the original vars file.

For example, I dont want admin or mods to have the ability to change the STYLE or appearance. I just want to remove those links entirely via the cp.cgi. I also want to remove paths link even though I have the vars_pathlock installed.

Ive got an admin who constantly clicks the wrong things and costs me hours or repair smile

Am assuming its just a vars file that has the options. And would it be safe to say that I could also add moderator options if necessary?

Thanks in advance

Sponsored Links
Joined: Nov 2001
Posts: 745
Admin Emeritus
Admin Emeritus
Offline
Joined: Nov 2001
Posts: 745
Check out https://www.ubbdev.com/ubb/ultimatebb.php/topic/33/103.html for a way to keep moderators out of the CP entirely.

Joined: May 2003
Posts: 20
Junior Member
Junior Member
Offline
Joined: May 2003
Posts: 20
thanks, thats a great alternative but if possible Id still like to change what controls the admin has as well. I need my admins to control simple ip bans and other options but not change layout and prune and mass delete etc.

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
What version of UBB are you using? If 6.6 or above, I can help

Joined: May 2003
Posts: 20
Junior Member
Junior Member
Offline
Joined: May 2003
Posts: 20
6.7.0

Ive done several hacks over the years I just dont yet know what lines to change myself to remove the options. And it probably doesnt have to work perfect just so long as the functioning options work. I'll keep the original vars file for when I need to get in there and take control since Im the only person with server access.

Sponsored Links
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
ok, to remove pages for mods

In cp2_lib.cgi
Code
MOD_MENUS_TIER_ONE => [
[$vars_wordlets_cp2{moderator_home}, qw(modhome forums prune massmove rebuilds)],
],
remove "forums" to disallow them to do things like renaming the forum and changing the styles.


In cp2_lib.cgi
Code
[$vars_wordlets_cp2{admin_master},	qw(paths primary genpermissions)],
To remove the paths page, well, remove "paths".

In cp2_lib.cgi
Code
[$vars_wordlets_cp2{admin_display},	qw(general wordlets styles)],
To remove the styles page for admins, remove.... "styles"

Joined: May 2003
Posts: 20
Junior Member
Junior Member
Offline
Joined: May 2003
Posts: 20
Awesome. Stripped everything down and remaining options work) and I think I can figure out how to give moderators some admin options such as IP bans which they normally dont have.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)