![]() |
Terry's Show Banned Users List Hack
Well, this is my first major hack, and my first php script to boot. It's not my original idea since there were several versions of this hack that existed for previous versions of vB, but I don't believe that one has been made for vB3 yet.
Anyhow, enough talk. This is a list that shows the past 30 banned users on your forums. When I update the hack I will make this number configurable, but in the meantime it works great like it is. When you ban a user you can fill in a reason and if applicable, a URL to the offending post. When the user is banned their name goes into a list that displays all of this information and more. All users except guests have permission to view this list. I could keep talking, but it's pretty self explanatory and the screenshots should explain anything I haven't said. Like I said, I am pretty new to PHP, so if anyone has any suggestions or feedback, please let me know. I hope I didn't forget anything. Also, don't forget to click install and enjoy! |
This looks like a nice hack.. :)
|
looks cool, thx!
|
this hack have some bugs: fiest, you put the table_prefix at the wrong place.. lol..:
[sql]SELECT " . TABLE_PREFIX . "userid, username, dateline, bannedpost, reason, sentbywhom, howlong FROM banlist ORDER BY banid DESC LIMIT 30[/sql]have to be:[sql]SELECT * FROM " . TABLE_PREFIX . "banlist ORDER BY banid DESC LIMIT 30[/sql]etc... |
Quote:
|
Damnnnnnnnnn... I've been wanting something like this for my site!!!! w00t w00t.. Loving it!.. I'll install it in a few :D
|
Installed :D.. Works like a charm.. I love it :D
|
I wish the banlist was drawn from current bans by usergroup, and not having to make another table in the database to store bans. Any chances of having the same templates and setup, just pulling the usernames and id's, reasons, etc from the current ban list instead?
Also be nice to show the usergroup that the user is banned to, because some of us have more than one ban usergroup :D |
i prefer that version than the Reason for Banning hack that was released long time ago, so it's not using the usernotes and is not bloating the script structure...
btw, without adding the username, we can LEFT JOIN the SELECT to have the username of each banned person, so the username is not hardcoded in the table, and you also then filter the usergroups as integra99 wants... |
Yeah, make this work with the banned list we had before the point of installing this hack!
Further I love it so my members can see who,what,why instead of the team only, cool job, but please make it work with the original banned list. |
I'm not saying filter usergroups, I'm suggesting only displaying the current banned members versus creating a new database table and storing a list of bans.
|
Quote:
|
I'd love to see this hack built on.. :)
As others have said, using the existing banned list instead of creating a new one would be a good idea. Also, there should be a section for expired temporary bans and have the log moved there automatically when a user is unbanned. Some searching & sorting options and pagination would be good too. |
how can we remove names form the list if we wanted too lol .. in case we decide to unban them lol.. or would we manually need to remove them.. u shoul try and incorporae something to remove the name form list if we wanted. Im sure if you got this far you can probbbaly add that. As im not a coder so i cant do it myself Thanks anyway for the great hack,
|
Quote:
|
Zip file is bad?
|
Quote:
just wish when you unbanned someone or when ther time was up they would be removed from the list |
Dude I love this hack if you would maybe just add what they were talking about it, it would be AWESOME..ER lol.
|
Yeah! This is a wonderful hack I think. Thank you wrongful. :)
|
Well, I have it installed..but I am not sure how to make my banned users show up on this page someone PLEASE help me.
|
Anyone?
|
I really need help with this hack, I love it but I cant figure out how to get the users onto the page :(
|
Anyone????
|
They should show up on the page when you ban them. Is that not happening?
|
Nope :( :(
|
Anyone, I really need this hack.
|
have you checked to make sure all the file edits were correct?
|
anyway to make is show all who were banned not just the last 30? maybe like 50 a page?
|
Anyone know a way to increase the amount of text you can have in the text box?
|
Quote:
Find: Code:
$getbanned = $DB_site->query("SELECT * FROM " . TABLE_PREFIX . "banlist ORDER BY banid DESC LIMIT 30"); Code:
$getbanned = $DB_site->query("SELECT * FROM " . TABLE_PREFIX . "banlist ORDER BY banid DESC LIMIT 50"); |
anyway to edit the list for like if we un ban someone?
|
I added this so you can update the banlist by banning the user again (It deletes all entries for that user rather than having duplicates).
In: modcp/banning.php After: //Terry's Banned User List Hack Add: Quote:
|
And another - to remove them from the list when you remove their ban manually via the control panel..
In: modcp/banning.php Before: // check we got a record back and that the returned user is in a banned group Add: Quote:
|
I am still trying to get this to work I will pay a little for someone to get this to work 4 me please.
|
thanks
|
I'm having trouble with users who were banned but not anymore, they still show up on the list and I even tried that code.
|
the duplacate user one works good on new bans but the unban one dont seem to be working also is there anyway to get in the db to clean up the old bans?
|
Still no way to get it so it removes users that were unbanned?
|
installs ;)
|
nice hack
|
All times are GMT. The time now is 03:43 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|