php forum
php mysql forum
php mysql smarty
 
Topic Options
#57937 - 01/15/05 09:23 AM cp hack, limit moderator and admin options?
Nycore Offline
Junior Member

Registered: 05/26/03
Posts: 20
Loc: NY
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

Top
#57938 - 01/15/05 10:05 AM Re: cp hack, limit moderator and admin options?
Ron M Offline
Admin Emeritus
Developer

Registered: 11/29/01
Posts: 789
Loc: Des Moines, IA
Check out http://www.ubbdev.com/ubb/ultimatebb.php/topic/33/103.html for a way to keep moderators out of the CP entirely.
_________________________
http://thegeeksinc.com
[img]http://www.ubbdev.com/ud/?u=Sub_Zero&s=1[/img] points generated

Top
#57939 - 01/15/05 10:54 AM Re: cp hack, limit moderator and admin options?
Nycore Offline
Junior Member

Registered: 05/26/03
Posts: 20
Loc: NY
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.

Top
#57940 - 01/15/05 02:02 PM Re: cp hack, limit moderator and admin options?
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
What version of UBB are you using? If 6.6 or above, I can help
_________________________
Code monkey like Fritos

Top
#57941 - 01/16/05 05:15 PM Re: cp hack, limit moderator and admin options?
Nycore Offline
Junior Member

Registered: 05/26/03
Posts: 20
Loc: NY
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.

Top
#57942 - 01/16/05 07:10 PM Re: cp hack, limit moderator and admin options?
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
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"
_________________________
Code monkey like Fritos

Top
#57943 - 01/16/05 08:08 PM Re: cp hack, limit moderator and admin options?
Nycore Offline
Junior Member

Registered: 05/26/03
Posts: 20
Loc: NY
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.

Top


Moderator:  Gizmo 
Who's Online
0 registered (), 31 Guests and 16 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Forum 'Trader Ratings'.
by blaaskaak
11/20/08 08:27 AM
Problems reading a lot of old posts here
by Ruben Rocha
11/18/08 04:33 PM
PhotoPost BB Code Popup
by Iann128
11/15/08 01:24 PM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
Active Topics.
by AllenAyres
11/11/08 02:13 PM
Looking for a simple upload script
by AllenAyres
11/11/08 02:12 PM
New Mods
Forum 'Trader Ratings'.
by McLemore
11/19/08 02:14 PM
[7.4] Keep log of custom title changes
by blaaskaak
10/27/08 07:51 AM
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Newest Members
Begbie, cenk, MATTO, DougMMcts, tim Anderson
13361 Registered Users
Top Posters
AllenAyres 25448
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks