No, the permissions apply to all moderators. In the description, "selected" refers to selecting the privilege, not the moderator. Maybe that should be reworded.
Here's the extended description for the hack. If you think it's worthwhile, you could append the following to the original post above, and then delete this post.
******** ABSTRACT ********
The following configuration parameters are added:
mod_editforum - allow moderators to edit forums mod_ban - allow moderators to ban a user or IP mod_unban - allow moderators to unban a user or IP mod_viewallstats - allow moderators to view stats for all forums, including those not readable by the moderator
To use these parameters, specify them in Admin/Edit config settings ("The following variables are unknown to the base UBB.threads package, but might be used by installed hacks or modifications to the program"). They can also be manually added by editing config.inc.php. A value of '1' enables the moderator privilege, a value of '0' disables the privilege. If a parameter is not specified, that's equivalent to specifying it as '0'.
Here is an example of specifying the parameters. In this example, moderators are denied the privileges of editing forums and viewing all stats, and are given the privileges of banning and unbanning users:
Yeah, I remember the first time a moderator asked if it was OK that he changed a user (after a request), I hadn't had a qlue that they could do that. And before that I was a bit confused when a moderator posted some stats from the forum, I didn't know that either. Back then I don't think I even knew they had an admin page at all, only that they had the post edit options. =] But I trust my moderators and already had a bunch of admins that I knew could do anything.
Maybe just a short description on the add mod privs-option telling what they will be able to do would be a good idea.
It owuld be nice to see the ability to NOT allow moderators to edit a user profile, but allow the moderator to add users to the groups they are members of only.
Good idea. I don't really have the time to work on that right now, but if someone else wants to figure out exactly what changes would be required, I could probably incorporate it into this hack.
Working great, although I had to make some changes for it to work in conjunction with the group moderators, maybe you found a different way around it, but this is the code I used:
code:// DAVE MOD BEGIN // 2002-06-10 Dave Lerner // Remove links for privileges that are denied to moderators.
if ($config['modedit'] or $config['mod_ban'] or $config['mod_unban']) { $html -> open_admin_table(); echo <<<EOF <tr><td valign=top class=tdheader> <b>User Management</b> </td></tr> <tr><td valign=top class=lighttable width=30%> EOF; if ($config['modedit']) { echo "<a href='{$config['phpurl']}/admin/selectusers.php?Cat=$Cat' target='mainFrame'>Show / Edit Users</a><br />"; } if ($config['mod_ban']) { echo "<a href='{$config['phpurl']}/admin/banuser.php?Cat=$Cat' target='mainFrame'>Ban a User / Host</a><br />"; } if ($config['mod_unban']) { echo "<a href='{$config['phpurl']}/admin/unbanuser.php?Cat=$Cat' target='mainFrame'>Unban User / IP</a>"; } EOF; $html -> close_table(); echo "<p>"; }
if ($config['mod_editforum']) { $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="{$config['phpurl']}/admin/editboard.php?Cat=$Cat" target="mainFrame"> Edit a forum </a> EOF; $html -> close_table(); echo "<p>"; } // Start Group Moderator Hack $html -> open_admin_table(); echo <<<EOF <tr><td valign=top class=tdheader> <b>Group Management</b> </td></tr> <tr><td valign=top class=lighttable width=30%> <a href="{$config['phpurl']}/admin/pickuser.php" target="mainFrame"> Add User to a Group </a> <br> EOF; $html -> close_table(); echo <<<EOF <br> EOF; // End Group Moderator Hack
looks like "Restrict Moderators" does not work properly with ubbt 6.2. A moderator can see all board-infos (Information / Forum info) even if he is not the moderator of them.
My fault, it still works. I thought the board info will only be shown when I'm moderator for these. But it shows the boards where I have got read-access. So, everything fine, sorry.
I have one questions to this hack cause I am missing a feature.
My mods need to add people to groups and should be able to change their forum but they should not be allowed to edit user profiles.
If they access the admin menu they can add a user to a group editing their profiles but they can also see the users private emailaddress and thats nothing I and the other users really want I think.
So adding users to group or removing should be possible but no other change to the profile should be allowed for the mods.
[]It owuld be nice to see the ability to NOT allow moderators to edit a user profile, but allow the moderator to add users to the groups they are members of only. [/]
DAMN, thats exactly what I need. Has anyone implemented this, I need it urgently!
A bit late to the party but this could be what I am after for 6.3.x as I am finding my moderators, are likely to ban people on their forums a bit too easily
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.