Zelda-King-
I too had the same exact problem, that you had been expirencing, but when I tried this, it worked. unfortunately, i don't know enough yet, to figure out how to get the original code to work for just super mods. so instead, this will also work for any moderators, that have the "banning" permission enabled. anyway, here goes.
Open mod/user.php
FIND:
PHP Code:
echo "<tr><td nowrap><p>$user[username]</p></td>".iif($perms[ismoderator] or $ismod['canbanusers']==1, "<td nowrap><a href=\"user.php?action=ban&userid=$user[userid]\"><p>[ban]</p></a></td>", "").iif($perms[ismoderator] or $ismod['canviewprofile']==1, "<td nowrap><a href=\"user.php?action=viewuser&userid=$user[userid]\"><p>[view profile]</p></a></td>", "").iif($user['usergroupid'] == 8, "<td nowrap><a href=\"user.php?action=unban&userid=$user[userid]\"><p>[<b>unban</b>]</p></a></td>", "")."</tr>\n";
REPLACE WITH:
PHP Code:
echo "<tr><td nowrap><p>$user[username]</p></td>".iif($perms[ismoderator] or $ismod['canbanusers']==1, "<td nowrap><a href=\"user.php?action=ban&userid=$user[userid]\"><p>[ban]</p></a></td>", "").iif($perms[ismoderator] or $ismod['canviewprofile']==1, "<td nowrap><a href=\"user.php?action=viewuser&userid=$user[userid]\"><p>[view profile]</p></a></td>", "").iif($perms[ismoderator] or $ismod['canviewprofile']==1, "<td nowrap><a href=\"user.php?action=unban&userid=$user[userid]\"><p>[unban]</p></a></td>", "")."</tr>\n";
also, whatever your "Banned by Moderators" usergroupid is, it should be replaced by that.
for ex. in the original hack it has written,
if ($banuser['usergroupid'] == 8) {
you should replace the #8 with whatever usergroupid you have, for your "Banned by Moderators" usergroupid.
Give that a try, and let me know if it works.
Oh and BTW nice hack. Got it working on v2.2.9
Thanks,
Metro.