php forum
php mysql forum
php mysql smarty
 
Topic Options
#216610 - 05/10/02 11:47 PM Admin menu for Moderators
Keet Offline
Power User

Registered: 10/20/00
Posts: 67
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? <img src="/forum/images/icons/crazy.gif" alt="" /><br />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<br />Thanks <img src="/forum/images/icons/smile.gif" alt="" />

Top
#216611 - 05/11/02 10:15 AM Re: Admin menu for Moderators [Re: Tweaker]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
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.
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#216612 - 05/11/02 12:58 PM Re: Admin menu for Moderators [Re: sf49rminer]
Keet Offline
Power User

Registered: 10/20/00
Posts: 67
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.<br />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.

Top
#216613 - 05/11/02 01:28 PM Re: Admin menu for Moderators [Re: Tweaker]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
admin/doeditboard.php<br />admin/editboard.php<br />- change<br /><pre><font class="small">code:</font><hr>if ( ($user['U_Status'] != 'Moderator') && ($user['U_Status'] != 'Administrator')){<br /> $html -> not_right ("You must be logged in, and be a valid<br /> administrator or moderator to access this.",$Cat);<br /></pre><hr><br />to<br /><pre><font class="small">code:</font><hr>if ($user['U_Status'] != 'Administrator'){<br /> $html -> not_right ("You must be logged in, and be a valid<br /> administrator to access this.",$Cat);</pre><hr><br /><br />admin/menu.php<br /> - 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)<br /><br />P.S Isn't the General Modifications forum the more appropriate place for this kind of post?
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#216614 - 05/11/02 02:28 PM Re: Admin menu for Moderators [Re: joeuser]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
<blockquote><font class="small">In reply to:</font><hr><br />P.S Isn't the General Modifications forum the more appropriate place for this kind of post? <br /><br /><hr></blockquote><br /><br />Ignore that comment. I just noticed the GMQ forum is in the v.5 category. <img src="/forum/images/icons/blush.gif" alt="" />
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#216615 - 05/11/02 03:15 PM Re: Admin menu for Moderators [Re: joeuser]
Keet Offline
Power User

Registered: 10/20/00
Posts: 67
heh, thanks, and yeah, i posted here since there isn't a GMQ for 6.0 yet <img src="/forum/images/icons/wink.gif" alt="" />

Top
#216616 - 11/08/02 09:35 PM Another suggestion for the same mod [Re: joeuser]
Hackman_dup1 Offline
Newbie

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

Top
#216617 - 11/08/02 09:45 PM Re: Another suggestion for the same mod [Re: t1000]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
If you want to remove the "admin" menu all together for Moderators... I *think* this should do the trick. (let me know).<br /><br />In your ubbt.inc.php file, find this:<br /><br /><pre><font class="small">code:</font><hr> // ------------------------------------------------------------------<br /> // If they are an admin or moderator they get a link to the admin sec<br /> if ( ($user['U_Status'] == "Administrator") || ($user['U_Status'] == "Moderator") ) {<br /> $target = "target=\"_top\"";<br /> $adminlink = "<a href = \"$phpurl/admin/login.php...shortened... | ";<br /> }<br /></pre><hr><br /><br /><br />Change to this:<br /><pre><font class="small">code:</font><hr><br /> // ------------------------------------------------------------------<br /> // If they are an admin or moderator they get a link to the admin sec<br /> if ($user['U_Status'] == "Administrator") {<br /> $target = "target=\"_top\"";<br /> $adminlink = "<a href = \"$phpurl/admin/login.php...shortened... | ";<br /> }<br /></pre><hr><br /><br />Hope that helps. <img src="/forum/images/graemlins/wink.gif" alt="" />


Edited by JoshPet (11/08/02 09:58 PM)
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#216618 - 11/08/02 09:54 PM Re: Another suggestion for the same mod [Re: t1000]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
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.
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#216619 - 11/08/02 09:57 PM Re: Another suggestion for the same mod [Re: Daine]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
You're "wide posting" again <img src="/forum/images/graemlins/tongue.gif" alt="" /><br /><br />You can fix that by just using <br /> $adminlink = ...<br />since that line isn't really important.
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#216620 - 11/08/02 10:01 PM Re: Another suggestion for the same mod [Re: joeuser]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
I gotta learn that you use either really big fonts, low resolution, or have a small monitor.<br /><br />LOL <img src="/forum/images/graemlins/laugh.gif" alt="" /><br /><br />I shortened above... which should eliminate the scrolling.<br /><br />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.<br /><br />I got a 17 in monitor in the closet I'm going to have to send you. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#216621 - 11/08/02 11:45 PM Re: Another suggestion for the same mod [Re: Daine]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
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 <img src="/forum/images/graemlins/smile.gif" alt="" />

Top


Who's Online
0 registered (), 22 Guests and 7 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Wisdom needed
by Gizmo
Yesterday at 10:54 AM
How to hide sub forums from summary page
by blaaskaak
12/03/08 09:54 AM
Spell Check [beta]
by Bill B
12/01/08 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
New Mods
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
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
Truth, David DelMonte, nick1, Begbie, cenk
13364 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks