Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
New Thread on User Banning by BOP5 Details »»
New Thread on User Banning by BOP5
Version: 1.4, by BirdOPrey5 (Senior Member) BirdOPrey5 is offline
Developer Last Online: Aug 2023 Show Printable Version Email this Page

Category: Moderators Functions - Version: 4.x.x Rating:
Released: 01-12-2011 Last Update: 06-11-2011 Installs: 140
Supported Uses Plugins
Re-useable Code Translations  

The purpose of this mod is to create a new thread in a forum you specify whenever any user is banned.

NEW In Version 1.2 - Set a minimum post count for a user before a "new thread" is created on their banning- this way you don't bother making threads for spammers with just a handful of posts.

New in Version 1.3 - Very minor optimization of code- upgrade optional.

New in 1.4 - {USERID} is now a usable variable in the Ban Reason. Allows for links to the banned user's profile.

The title and message posted is easily customized, as is the username of the thread starter.

This has been tested on vBulletin 3.8.6 and 4.0.8 and should work on all versions of 3.8.x/4.0.x/4.1.x. It may work on earlier versions too.

Read the info txt file in the .zip for full instructions.

See the screenshots for more details.

Please "Mark as Installed" if you use this.

English - Download Zip File
Arabic - Download xml File (Translated by Dr. osamA):up:

Download Now

File Type: xml product-newthreadonbanbop5vb4-Arabic by alra7ba.xml (11.5 KB, 86 views)
File Type: zip New Thread on User Banning by BOP5 - VB4.zip (5.3 KB, 443 views)

Screenshots

File Type: jpg banthread_vb4.jpg (65.4 KB, 0 views)
File Type: jpg banthreadforum_vb4.jpg (49.1 KB, 0 views)
File Type: jpg banthread_settings.jpg (387.5 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
6 благодарности(ей) от:
ELROBLE, ForceHSS, furnival, ged, mapleleaffans, WendM

Comments
  #52  
Old 10-01-2012, 05:51 PM
letipro letipro is offline
 
Join Date: Jun 2012
Location: Ở đ?u c?n l?u
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NTT View Post
great idea, but I want to only create one thread and the next user banning will be comment in the topic, how to edit?
i like it, please update
Reply With Quote
  #53  
Old 02-07-2013, 10:13 PM
furnival furnival is offline
 
Join Date: Mar 2008
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed on VB 4.2 seems to be working fine. Great mod -- thanks BOP5!
Reply With Quote
Благодарность от:
BirdOPrey5
  #54  
Old 03-08-2013, 07:27 PM
elfenny's Avatar
elfenny elfenny is offline
 
Join Date: May 2012
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed, thanks
Reply With Quote
Благодарность от:
BirdOPrey5
  #55  
Old 08-01-2013, 04:26 PM
Amaury Amaury is offline
 
Join Date: Nov 2011
Location: Ellensburg, WA
Posts: 1,075
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Think I found a bug.

If I select three threads created by one spammer, for example, it will make three threads about the same user.

Here's what I did if you want to try and reproduce it:
  • Select two or more threads by the same user and delete them as spam
  • Select Delete other posts and threads started by the affected users
  • Select Physically remove
  • Select Ban these users under Punitive Actions
  • Proceed
Reply With Quote
  #56  
Old 08-05-2013, 11:01 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't replicate this on my 4.2.1 forum. I only get 1 thread created no matter how many are selected. Do you have any other modifications running on the userdata_postsave hook? You can check in Plugin Manager in Admin CP.
Reply With Quote
  #57  
Old 08-05-2013, 06:31 PM
Amaury Amaury is offline
 
Join Date: Nov 2011
Location: Ellensburg, WA
Posts: 1,075
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
I can't replicate this on my 4.2.1 forum. I only get 1 thread created no matter how many are selected. Do you have any other modifications running on the userdata_postsave hook? You can check in Plugin Manager in Admin CP.
So I found this happening even when it's completely different users.

For example:
  • User 1
  • User 2
  • User 3
  • User 4
  • User 5
If I deleted their spam all at once instead of individually (the only way I can prevent this from happening is by doing it individually), I would see five threads all pointing to the first user in the lineup instead of each individual user:
  • Banned User 1
  • Banned User 1
  • Banned User 1
  • Banned User 1
  • Banned User 1
(That's what I set the thread title as.)

Plugins:
Reply With Quote
  #58  
Old 08-17-2013, 12:14 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ahhh... Well that error I understand why i is happening. Unfortunately I can think of no fix for it. Just the way VB determines the most recently banned user.
Reply With Quote
  #59  
Old 08-23-2013, 10:32 PM
Amaury Amaury is offline
 
Join Date: Nov 2011
Location: Ellensburg, WA
Posts: 1,075
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
Ahhh... Well that error I understand why i is happening. Unfortunately I can think of no fix for it. Just the way VB determines the most recently banned user.
While it can't be fixed, out of curiosity, why is it happening?
Reply With Quote
  #60  
Old 08-24-2013, 01:15 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well vBulletin doesn't have a hook that runs only when a user is banned. The hook this mod runs on is anytime a usergroup is changed. In order to determine if a user was actually banned the mod checks if anyone was banned in the last several seconds and if so assumes that it should make a thread about that ban. To prevent errors it only returns the oldest ban even if several happened at nearly the same time. Yours is the first report I ever had of a flaw with this system.
Reply With Quote
Благодарность от:
Amaury
  #61  
Old 09-17-2013, 11:20 AM
DemOnstar's Avatar
DemOnstar DemOnstar is offline
 
Join Date: Dec 2012
Posts: 859
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Another great idea...BOP5, you are consistent....:up:
Reply With Quote
Благодарность от:
BirdOPrey5
Reply

Thread Tools

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 11:51 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.10020 seconds
  • Memory Usage 2,348KB
  • Queries Executed 28 (?)
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
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (10)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (5)postbit_attachment
  • (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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete