Version: 1.00, by N9ne
Developer Last Online: Jul 2019
Version: 2.2.x
Rating:
Released: 02-10-2003
Last Update: Never
Installs: 14
No support by the author.
NOTE: Download the attached file and open in txt editor to see instructions!
---------------------------------------------------------------------
Supermods can unban users: by N9ne on 11th Feb 2003, Copyright 2003
---------------------------------------------------------------------
Files to modify:
mod/user.php
---------------------------------------------------------------------
For: 2.2.x
---------------------------------------------------------------------
Description: This hack will add a link next to "View User" in the modCP
after searching for a member. The link will read "Unban" and will only show
if the user is banned. If the user isn't banned, the link will not show.
---------------------------------------------------------------------
Modification: You probably have a usergroup created from the AdminCP
in which you put banned users as an admin. You can modify this hack so
supermods can unban users in that group too. You may even have more
than 2 usergroups for banned users, this hack is fully customizable, just
request any customizations you would like in the support thread at vb.org.
The instructions in this file will only show you how to make it so supermods
can unban users who were banned from the modCP.
--------------------------------------------------------------------
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Originally posted by Zelda-King The conditional link thing still isn't working for me. At the moment I've made it a permanent one seeing as I can't locate the problem. The code looks sound to me. Speaking of which, it's apparant that there's no error message when one attempts to unban someone not 'banned by moderators' even though I see such a message in your code. Of course, that wouldn't really matter considering the link is only supposed to show with users that fit the criteria for unbanning. For the record, the 'unban confirmation' table DOES only appear if the usergroupid is 8. Just not the unban link.
My 'banned by moderators' usergroup ID is actually 10. I don't know if that goes for everyone else or whether it depends what version of vBulletin you're using (I doubt it). This isn't the cause of any problems though. I suppose it's because my usergroup 8 is actually an admin ban which I created before moderators had banned anyone.
Personally I reckon the hack would be better if the 'unban confirmation' table didn't remain after an unban but rather you got a blank screen with the 'unbanned' message, just like you get the 'banned' one when banning. The 'confirm ban' table doesn't remain. I just noticed that if you then try to unban again (just after already unbanning a user) it gives the 'unbanned' message again and this time the 'confirm unban' table disappears (just how I think it should).
Yeah, I did that. I tried it both ways. I mean, even with the '8's I should then be able to see the link for users in the other 'banned' group seeing as my usergroup 8 is another ban-group.
All numbers should match though. That's the way it works. Make sure that in my instructions, you replace all the 8s with 10. If you already did that though, that's fine, but i don't understand why it's not working...
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.
Yeah, I'm using pretty much that very code. It just makes the unban thing appear regardless. Seeing as there's an adequate error message if you try to unban someone not fitting the criteria I have no problems so far.
Jethro. Not sure what your saying? Mod CP is just like an Admin CP, but for moderators. Your mods can access it through a link. Similar to how you would log into your Admin CP, but instead of typing in the text "admin" type in "mod". So, for example...