Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Terry's Show Banned Users List Hack Details »»
Terry's Show Banned Users List Hack
Version: 1.00, by wrongful wrongful is offline
Developer Last Online: Oct 2011 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 10-06-2004 Last Update: 10-06-2004 Installs: 26
DB Changes
 
No support by the author.

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!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 03-31-2005, 12:38 AM
djjeffa's Avatar
djjeffa djjeffa is offline
 
Join Date: Aug 2004
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyway to edit the list for like if we un ban someone?
Reply With Quote
  #33  
Old 03-31-2005, 03:30 PM
garrynewman garrynewman is offline
 
Join Date: Mar 2005
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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]");
Reply With Quote
  #34  
Old 04-01-2005, 12:19 PM
garrynewman garrynewman is offline
 
Join Date: Mar 2005
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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");
Reply With Quote
  #35  
Old 04-05-2005, 01:14 AM
bigcurt's Avatar
bigcurt bigcurt is offline
 
Join Date: Nov 2004
Location: KierDarby.php
Posts: 1,009
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am still trying to get this to work I will pay a little for someone to get this to work 4 me please.
Reply With Quote
  #36  
Old 04-10-2005, 07:12 AM
Redbbs Team Redbbs Team is offline
 
Join Date: Nov 2004
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks
Reply With Quote
  #37  
Old 04-26-2005, 11:50 PM
mechanicvirus mechanicvirus is offline
 
Join Date: Aug 2003
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #38  
Old 04-27-2005, 01:51 AM
djjeffa's Avatar
djjeffa djjeffa is offline
 
Join Date: Aug 2004
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #39  
Old 05-02-2005, 12:18 AM
mechanicvirus mechanicvirus is offline
 
Join Date: Aug 2003
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Still no way to get it so it removes users that were unbanned?
Reply With Quote
  #40  
Old 05-05-2005, 04:45 AM
rapcriminals rapcriminals is offline
 
Join Date: Feb 2005
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installs
Reply With Quote
  #41  
Old 05-05-2005, 08:54 AM
MP3 MP3 is offline
 
Join Date: Aug 2004
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice hack
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:58 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07742 seconds
  • Memory Usage 2,303KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete