vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Terry's Show Banned Users List Hack (https://vborg.vbsupport.ru/showthread.php?t=70293)

wrongful 10-06-2004 10:00 PM

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!

Oblivion Knight 10-07-2004 08:03 AM

This looks like a nice hack.. :)

alkatraz 10-07-2004 09:48 AM

looks cool, thx!

nexialys 10-07-2004 11:47 AM

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...

wrongful 10-07-2004 12:42 PM

Quote:

Originally Posted by nexialys
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...

I have fixed this, and one other error that I noticed. If you have installed this hack up to this point it wouldn't hurt to redownload and replace showbans.php.

platnum 10-07-2004 01:26 PM

Damnnnnnnnnn... I've been wanting something like this for my site!!!! w00t w00t.. Loving it!.. I'll install it in a few :D

platnum 10-07-2004 01:48 PM

Installed :D.. Works like a charm.. I love it :D

integra99 10-07-2004 04:19 PM

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

nexialys 10-07-2004 04:35 PM

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...

xug 10-10-2004 11:11 PM

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.

integra99 10-11-2004 11:47 AM

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.

TCattitude 11-24-2004 02:41 PM

Quote:

Originally Posted by xug
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.

Anyone can do this? :S

Oblivion Knight 12-28-2004 08:00 AM

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.

shadiguy1 01-07-2005 06:26 PM

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,

djjeffa 02-19-2005 09:55 PM

Quote:

Originally Posted by shadiguy1
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,

BUMP!!!!!!

rinkrat 02-20-2005 01:04 AM

Zip file is bad?

djjeffa 02-22-2005 10:25 PM

Quote:

Originally Posted by rinkrat
Zip file is bad?

worked for me?
just wish when you unbanned someone or when ther time was up they would be removed from the list

bigcurt 02-24-2005 06:47 PM

Dude I love this hack if you would maybe just add what they were talking about it, it would be AWESOME..ER lol.

ged 03-04-2005 09:41 AM

Yeah! This is a wonderful hack I think. Thank you wrongful. :)

bigcurt 03-05-2005 12:36 AM

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.

bigcurt 03-06-2005 02:44 AM

Anyone?

bigcurt 03-07-2005 03:13 AM

I really need help with this hack, I love it but I cant figure out how to get the users onto the page :(

bigcurt 03-08-2005 12:12 AM

Anyone????

wrongful 03-08-2005 07:36 PM

They should show up on the page when you ban them. Is that not happening?

bigcurt 03-09-2005 11:27 PM

Nope :( :(

bigcurt 03-12-2005 03:15 AM

Anyone, I really need this hack.

wrongful 03-13-2005 06:59 PM

have you checked to make sure all the file edits were correct?

djjeffa 03-18-2005 09:22 PM

anyway to make is show all who were banned not just the last 30? maybe like 50 a page?

Phrost 03-24-2005 01:27 AM

Anyone know a way to increase the amount of text you can have in the text box?

djjeffa 03-27-2005 12:59 AM

Quote:

Originally Posted by djjeffa
anyway to make is show all who were banned not just the last 30? maybe like 50 a page?

ok I found this
Find:
Code:

$getbanned = $DB_site->query("SELECT * FROM " . TABLE_PREFIX . "banlist ORDER BY banid DESC LIMIT 30");
replace with:
Code:

$getbanned = $DB_site->query("SELECT * FROM " . TABLE_PREFIX . "banlist ORDER BY banid DESC LIMIT 50");
but i would like to find a way to make pages.

djjeffa 03-31-2005 12:38 AM

anyway to edit the list for like if we un ban someone?

garrynewman 03-31-2005 03:30 PM

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:

$DB_site->query("
DELETE FROM " . TABLE_PREFIX . "banlist WHERE userid=$user[userid]");

garrynewman 04-01-2005 12:19 PM

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:

// garry: we don't care whether they're banned or not - just take
// them off the banlist of they're on it.

$DB_site->query("DELETE FROM " . TABLE_PREFIX . "banlist WHERE userid=$userid");

bigcurt 04-05-2005 01:14 AM

I am still trying to get this to work I will pay a little for someone to get this to work 4 me please.

Redbbs Team 04-10-2005 07:12 AM

thanks

mechanicvirus 04-26-2005 11:50 PM

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.

djjeffa 04-27-2005 01:51 AM

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?

mechanicvirus 05-02-2005 12:18 AM

Still no way to get it so it removes users that were unbanned?

rapcriminals 05-05-2005 04:45 AM

installs ;)

MP3 05-05-2005 08:54 AM

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
  • Page Generation 0.01205 seconds
  • Memory Usage 1,808KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete