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