Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
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

// DAVE MOD END


Sponsored Links
Entire Thread
Subject Posted By Posted
[6.x] Restrict Moderators 1.04 Dave_L_dup1 07/07/2002 3:42 PM
Re: Restrict Moderators 1.0 AllenAyres 07/09/2002 7:32 PM
Re: Restrict Moderators 1.0 Dave_L_dup1 07/09/2002 9:23 PM
Re: Restrict Moderators 1.0 AllenAyres 07/09/2002 11:04 PM
Re: Restrict Moderators 1.0 Dave_L_dup1 07/09/2002 11:16 PM
Re: Restrict Moderators 1.0 Gardener 07/10/2002 12:05 AM
Re: Restrict Moderators 1.0 ExcelsiorDDZ 08/24/2002 10:01 PM
Re: Restrict Moderators 1.0 Dave_L_dup1 08/26/2002 4:43 PM
Re: Restrict Moderators 1.0 msula 09/30/2002 7:55 PM
Re: Restrict Moderators 1.0 Dave_L_dup1 09/30/2002 10:59 PM
Re: Restrict Moderators 1.0 msula 09/30/2002 11:05 PM
Re: [6.0.x] Restrict Moderators 1.0 Maze 01/02/2003 9:53 PM
Re: [6.0.x] Restrict Moderators 1.0 Dave_L_dup1 01/03/2003 1:08 AM
Re: [6.0.x] Restrict Moderators 1.0 Maze 01/03/2003 12:50 PM
Re: [6.0.x] Restrict Moderators 1.0 Dave_L_dup1 01/03/2003 2:12 PM
Re: Restrict Moderators 1.0 jluerken 02/14/2003 2:16 PM
Re: Restrict Moderators 1.0 jluerken 02/14/2003 2:21 PM
Re: Restrict Moderators 1.0 Dave_L_dup1 02/14/2003 4:34 PM
Re: Restrict Moderators 1.0 jluerken 02/14/2003 4:51 PM
Re: Restrict Moderators 1.0 Dave_L_dup1 02/14/2003 5:00 PM
Re: Restrict Moderators 1.0 smilesforu 02/25/2003 3:53 AM
Re: Restrict Moderators 1.0 Ian_W 08/02/2003 10:53 PM

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
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 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
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 20240506)