View Full Version : Moderators Functions - New Thread on User Banning by BOP5
BirdOPrey5
01-12-2011, 10:00 PM
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:
BirdOPrey5
01-13-2011, 02:38 AM
Reserved.
sulasno
01-13-2011, 03:12 AM
tagged and thanks
I wonder how difficult it would be to edit the code for a monthly list of inactive users and lurkers to be publish as a new thread to a forum?
BirdOPrey5
01-13-2011, 03:49 AM
It would be completely different code...
fionix
01-13-2011, 09:16 AM
Thank you works perfectly - already first user got banned :)
BirdOPrey5
01-13-2011, 01:48 PM
Updated to version 1.1- added a drop down selection menu to choose the forum in settings rather than manually entering the forum id.
Otherwise everything else is the same.
Code added thank's to Boofo's suggestion. :up:
blake247
01-13-2011, 02:51 PM
Sweet mod!
nacaruncr
01-13-2011, 03:08 PM
tagged and thanks
I will install later.... thanks :D
OldSchoolDSL
01-13-2011, 10:22 PM
(Do you have any idea on how much drama this will cause? LOL )
INSTALLED & Working
4.1 PL2
tafreeh
01-13-2011, 11:42 PM
cool.. but that would be nice if we can set usergroup setting.. otherwise, no badi wants to create a thread for a user with below 3 post..
Boofo
01-13-2011, 11:47 PM
(Do you have any idea on how much drama this will cause? LOL )
I think this was originally intended for creating the threads in a staff only area, more than anything else. ;)
Merjawy
01-14-2011, 12:33 AM
Great mod... Will install it soon I get a chance. Thanks
BirdOPrey5
01-14-2011, 12:42 AM
cool.. but that would be nice if we can set usergroup setting.. otherwise, no badi wants to create a thread for a user with below 3 post..
Setting a minimum post count is a good idea. I'll try to add it in the next update.
BirdOPrey5
01-14-2011, 03:04 AM
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.
cyberchief
01-14-2011, 03:16 AM
Installed. Awesome! Thanks!
OldSchoolDSL
01-14-2011, 04:26 AM
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.
:up:
Installed and working
4.1 PL2 & 4.1.1 (test site)
Thanks for the update :)
dandanch
01-14-2011, 06:45 AM
Thanks,works great:)
starman?
01-14-2011, 11:58 AM
Working fine and dandy. Most excellent work. Thank you very much indeed!
COL NIL SATIS
01-14-2011, 04:08 PM
very very useful ...tagged
Dr.osamA
01-25-2011, 02:01 PM
Excellent = 5 stars
installed + translated to Arabic
plzz add XML file to orignal post [edit = for v1.3]
thank you sir
BirdOPrey5
01-25-2011, 05:29 PM
Excellent = 5 stars
installed + translated to Arabic
plzz add XML file to orignal post
thank you sir
Thanks but the file you included is my original (English) file- no translation was found...
I also made a very minor update to version 1.3 just now.
Dr.osamA
01-25-2011, 08:00 PM
Apologize
soooory sir
now i fixed it
Wajdan
01-27-2011, 07:17 AM
Reserved!
g33k4u
01-28-2011, 10:41 AM
Can you make all posts be added to one single thread ? ( specified previously by admin ) instead of making a new thread each time
This way, the thread can be seen in public, and members will know why members are being banned, and they will make sure to avoid that
I love the idea of your mod, but I won't install it as it will be some kinda a spamming mod ( by staff ) in huge forums that got like 15-20 members banned each day
Please update me on this
Thanks
BirdOPrey5
01-28-2011, 11:06 PM
Can you make all posts be added to one single thread ? ( specified previously by admin ) instead of making a new thread each time
This way, the thread can be seen in public, and members will know why members are being banned, and they will make sure to avoid that
I love the idea of your mod, but I won't install it as it will be some kinda a spamming mod ( by staff ) in huge forums that got like 15-20 members banned each day
Please update me on this
Thanks
This is an option I plan to add to a future version but I don't have an estimate when that will be right now.
GentGaming
03-28-2011, 08:54 AM
Looked forever for something like this. Thank you for stopping me from having to make it myself.
Alan_SP
05-03-2011, 11:03 AM
Is it possible to include link to post that lead to user banning? And if it is profile infraction, to state that it was profile infraction.
BirdOPrey5
05-03-2011, 04:32 PM
Not with this modification.
g0dfather1984
05-03-2011, 04:52 PM
Go BOP, it's your birthday!
rajitbansal
05-19-2011, 02:41 PM
hello i am unable to use this.. i dont know how to edit and and save where thread should be made. kindly help me
BirdOPrey5
05-19-2011, 03:14 PM
hello i am unable to use this.. i dont know how to edit and and save where thread should be made. kindly help me
In your Admin CP (Administrator Control Panel) go to Settings -> Options -> and scroll down the the mod "New Thread on Banning by BOP5" and double click on it. (It's usually near the bottom of the list when newly installed.)
That will bring up the Mod Settings which will look like this:
https://vborg.vbsupport.ru/attachment.php?attachmentid=125598&d=1294981349
You make all your settings here. The forum where to create the new thread you must select from the "New Thread Forum" drop down box. Just click on the little down triangle to see the available forums.
rajitbansal
05-20-2011, 07:11 AM
done! thanks for your help, really appriciated
Skyrider
06-12-2011, 08:28 PM
Any way to add a {PROFILE} or something so it also adds a link to the user profile.
BirdOPrey5
06-12-2011, 09:03 PM
Any way to add a {PROFILE} or something so it also adds a link to the user profile.
I just updated to version 1.4. {USERID} is now something you can use in the Ban Reason option.
Therefore you can make a profile link by using code like this in the ban reason:
{USERNAME} (http://www.juot.net/forums/member.php?{USERID})
change the URL to your forum's URL and you should be all set. That will link the username of the banned user to their profile.
Note: Don't use quotes in the URL tag, I've seen it cause problems.
Skyrider
06-13-2011, 06:06 PM
Great, thanks! :D
8thos
06-14-2011, 08:24 PM
I have a ridiculous tranny troll alias problem right now this will definitely come in handy.
Do you know of any other quick ban options?
BirdOPrey5
06-14-2011, 09:46 PM
I have a ridiculous tranny troll alias problem right now this will definitely come in handy.
Do you know of any other quick ban options?
No I don't know of any other "quick ban" options... and honestly I'm not sure how this would help you ban someone any quicker- just meant to keep the community or your mods aware of who has been banned.
sweetpotato
06-26-2011, 08:44 AM
Please provide this mod for mutilanguage use
Thanks,
BirdOPrey5
06-26-2011, 10:40 AM
Community created translations are encouraged. I am only fluent in English so I can't do any translations myself.
sweetpotato
06-26-2011, 01:14 PM
thank you, but I mean you provive support so I can translate to use on my site with both English and my mother tongue Language. I have no problem with translating.
Thank you for the nice mod.
BirdOPrey5
06-26-2011, 04:52 PM
If you have a question I'll do my best to answer it.
Marios858
09-11-2011, 07:55 PM
Excellent Modification , thanks a lot.
Nirjonadda
09-01-2012, 01:56 PM
You can add option thread Auto Close?
great idea, but I want to only create one thread and the next user banning will be comment in the topic, how to edit?
Nirjonadda
09-01-2012, 04:16 PM
Yes also add option banned member Thread ID !
Yes also add option banned member Thread ID !
This mod has selected Thread ID?
BirdOPrey5
09-02-2012, 01:27 PM
You can add option thread Auto Close?
I can on a future update but that may be a while.
For now you can edit the XML file.
Find the line:
$banthread->set('showsignature', $vbulletin->options['bop5onban_sig']);
And add below it:
$open = 0;
$banthread->set('open', $open);
And all threads will be closed. (Re-import the product of course, allow overwrite = yes)
great idea, but I want to only create one thread and the next user banning will be comment in the topic, how to edit?
Maybe in a future version, just not possible as it is now coded.
Yes also add option banned member Thread ID !
I don't understand... You want to make posts instead of threads in a specific thread? If so same answer as above.
wilford brimley
09-02-2012, 05:47 PM
wrong mod my bad.
Mark_Zuckerberg
09-29-2012, 08:41 PM
It gives me an error while i click ban user the error is this
Fatal error: Class 'VBSIGNATURES' not found in /home/admincp/public_html/dbtech/vbsignatures/hooks/threadfpdata_postsave.php on line 5
altough i have selected no to Show Signature? in New Thread on Banning by BOP5 options any help?
BirdOPrey5
09-30-2012, 04:41 PM
it appears to be an incompatibility with dbTech's vbsignatures mod.
I would suggest disabling my mod- I do not have dbtech's mod installed anywhere to test and frankly do not see having time anytime soon to figure out what the conflict is.
Sorry.
letipro
10-01-2012, 05:51 PM
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 :)
furnival
02-07-2013, 10:13 PM
Installed on VB 4.2 seems to be working fine. Great mod -- thanks BOP5!
elfenny
03-08-2013, 07:27 PM
Installed, thanks
Amaury
08-01-2013, 04:26 PM
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
BirdOPrey5
08-05-2013, 11:01 AM
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.
Amaury
08-05-2013, 06:31 PM
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 5If 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:
http://i.imgur.com/704dQyD.png
http://i.imgur.com/eMNkzA3.png
BirdOPrey5
08-17-2013, 12:14 PM
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.
Amaury
08-23-2013, 10:32 PM
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?
BirdOPrey5
08-24-2013, 01:15 PM
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.
DemOnstar
09-17-2013, 11:20 AM
Another great idea...BOP5, you are consistent....:up:
eTiKeT?
02-20-2014, 07:27 PM
Nice idea, thank you
________________________________
I've added the patch Turkish
Barcham
02-20-2014, 08:26 PM
Can you make all posts be added to one single thread ? ( specified previously by admin ) instead of making a new thread each time
This way, the thread can be seen in public, and members will know why members are being banned, and they will make sure to avoid that
I love the idea of your mod, but I won't install it as it will be some kinda a spamming mod ( by staff ) in huge forums that got like 15-20 members banned each day
Please update me on this
Thanks
Any news of an update for this? If it would create only one thread with each banning or suspension being added to the thread I can see it being very useful and I'd install it in an instant. One thread per ban is just too much to deal with.
cihadehli
03-15-2014, 09:53 PM
Nice idea, thank you
________________________________
I've added the patch Turkish
thank you eTİKeT hocam.. :)
furnival
03-25-2019, 01:20 PM
Yours is the first report I ever had of a flaw with this system.
Hi Birdofprey5, thank you for this fantastic mod. It has stopped working for me on VB 4.2.5. I get a message that a new thread cannot be created, after I ban a user in /admincp/. Any ideas how to fix this please?
BirdOPrey5
03-26-2019, 01:12 AM
Hi Birdofprey5, thank you for this fantastic mod. It has stopped working for me on VB 4.2.5. I get a message that a new thread cannot be created, after I ban a user in /admincp/. Any ideas how to fix this please?
Did anything change between the time it last worked and the time you noticed it stopped working? VB Version? PHP version? Server change? Added or removed new forums or administrators?
Without much to go on or the exact error message I would suggest you verify the user who makes the post still have permission to post in the forum selected for the post to be made in, and that that forum is open to new posts.
furnival
03-26-2019, 01:15 PM
Did anything change between the time it last worked and the time you noticed it stopped working? VB Version? PHP version? Server change? Added or removed new forums or administrators?
Thank you for your reply! I really appreciate it.
No changes to users. The admin user is the one doing the banning and no permissions have changed so I don't think it is related to permissions. Nothing shows up in the PHP error logs.
I did upgrade to PHP 7.1 and moved servers around the time this plugin stopped working, so those might be the factors. I am on VB 4.2.5. Not sure how to resolve this. I get a message when I try to ban a user, in white text at the top of the admincp screen, "Error creating new thread!". Any ideas where to look to find the source of the error, please?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.