Previous Thread
Next Thread
Print Thread
Rate Thread
#216610 05/10/2002 11:47 PM
Joined: Oct 2000
Posts: 29
Power User
Power User
Offline
Joined: Oct 2000
Posts: 29
is there a simple way to hack things so that moderators can't change board settings? i don't see templates for the admin menu?
just i like having people to help with stuff like posts and moving things and dealing with trolls, but i don't want them to be able to change the board to say.. allow HTML, or stuff like that
Thanks

Sponsored Links
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
If I follow what you are asking that is already implemented in Threads. A moderator can approve and delete posts from their admin menu as well as edit any user in the regular user categoryies. They can change things in their own forum and thats it. They do not have access to alter other moderators or admin nor can they change the normal config or theme settings of the board. Only an admin can do these things.

Joined: Oct 2000
Posts: 29
Power User
Power User
Offline
Joined: Oct 2000
Posts: 29
what i mean is, i have boards, with lots of posts, i can't watch over everything, so i'm getting some friend to be moderators, but as a moderator, they have the power to change any boards settings they've been given permission to.
they could set it to allow HTML code, or change access permissions, or stylesheets, or set it to expire every post after one day, i don't want them to have that kind of power as just a moderator.

Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
admin/doeditboard.php
admin/editboard.php
- change
code:
if ( ($user['U_Status'] != 'Moderator') && ($user['U_Status'] != 'Administrator')){
$html -> not_right ("You must be logged in, and be a valid
administrator or moderator to access this.",$Cat);


to
code:
if ($user['U_Status'] != 'Administrator'){
$html -> not_right ("You must be logged in, and be a valid
administrator to access this.",$Cat);



admin/menu.php
- remove the Forum Management section from the output (not essential, but it's cleaner to suppress the link since they aren't permitted to use it)

P.S Isn't the General Modifications forum the more appropriate place for this kind of post?

Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
In reply to:

P.S Isn't the General Modifications forum the more appropriate place for this kind of post?




Ignore that comment. I just noticed the GMQ forum is in the v.5 category.

Sponsored Links
Joined: Oct 2000
Posts: 29
Power User
Power User
Offline
Joined: Oct 2000
Posts: 29
heh, thanks, and yeah, i posted here since there isn't a GMQ for 6.0 yet

Joined: Nov 2002
Posts: 11
Newbie
Newbie
Offline
Joined: Nov 2002
Posts: 11
I was looking for this exact mod. While it does solve the problem, I would have preferred to remove the menu entirely not just prevent it with other code.

To remove the Forum Management menu from moderators comment out the lines in admin/menu.php:
echo "<p>";
$html -> open_admin_table();
echo <<<EOF
<tr><td valign=top class=tdheader>
<b>Forum Management</b>
</td></tr>
<tr><td valign=top class=lighttable>
<a href="{$configphpurl']}/admin/editboard.php?Cat=$Cat" target="mainFrame">
Edit a forum
</a>
EOF;
$html -> close_table();



Thanks
Hackman
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
If you want to remove the "admin" menu all together for Moderators... I *think* this should do the trick. (let me know).

In your ubbt.inc.php file, find this:

code:
// ------------------------------------------------------------------
// If they are an admin or moderator they get a link to the admin sec
if ( ($user['U_Status'] == "Administrator") || ($user['U_Status'] == "Moderator") ) {
$target = "target="_top"";
$adminlink = "<a href = "$phpurl/admin/login.php...shortened... | ";
}




Change to this:
code:

// ------------------------------------------------------------------
// If they are an admin or moderator they get a link to the admin sec
if ($user['U_Status'] == "Administrator") {
$target = "target="_top"";
$adminlink = "<a href = "$phpurl/admin/login.php...shortened... | ";
}



Hope that helps.

Last edited by JoshPet; 11/08/2002 10:58 PM.
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
Note that the Restrict Moderators hack includes this feature. It hasn't been updated for 6.1, but I think the only change would be to change "w3t_" to the appropriate table prefix, if you're using a custom one.

Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
You're "wide posting" again

You can fix that by just using
$adminlink = ...
since that line isn't really important.

Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I gotta learn that you use either really big fonts, low resolution, or have a small monitor.

LOL

I shortened above... which should eliminate the scrolling.

I DID think of you if you can believe it. I resized my window to what I figured would be the smallest possible... and it didn't scroll.

I got a 17 in monitor in the closet I'm going to have to send you.

Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
I'm using the restrict moderators hack to solve that problem, and you're right, the only change to be made is the prefix is needed. But if you are only using one forum, the standard instructions work fine


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
Posts: 70
Joined: January 2007
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
Morgan 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 20240430)