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.3 - More REPLACEMNTS available in post body. {USERNAMEL} and {BANNEDBYL} are now links to the profiles of the user who was banned and the user who banned them, respectfully. In addition {USERID} and {BANNEDBYID} have been added in case you have any use for them.
Also as of version 1.3 this version no longer works on VB 4.x. Please see the VB 4.x thread (https://vborg.vbsupport.ru/showthread.php?t=257041) for a different version.
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.
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 it should work on all versions of 3.8.x. It may work on earlier versions too. See this thread for a VB4 version: https://vborg.vbsupport.ru/showthread.php?t=257041
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. :)
Added Russian Language phrases file by xorex. :up:
BirdOPrey5
01-13-2011, 02:30 AM
Reserved.
ITDarasgah
01-13-2011, 11:21 AM
also Reserved thanks .
Badshah93
01-13-2011, 11:56 AM
Installed, but have a doubt,,..
what if i have got a vbseo done in my forum, how do i determine which section is to be put as to where the thread is supposed to get created? any solutions?
Boofo
01-13-2011, 01:04 PM
Joe, for the forum id option, replace this:
<setting varname="bop5onban_fid" displayorder="30">
<datatype>posint</datatype>
<defaultvalue>2</defaultvalue>
</setting>
with this:
<setting varname="bop5onban_fid" displayorder="30">
<datatype>number</datatype>
<optioncode>select:eval
$options = construct_forum_chooser_options(1);</optioncode>
<defaultvalue>0</defaultvalue>
</setting>
That way, you get a drop down forum listing to choose the forum from.
BirdOPrey5
01-13-2011, 01:20 PM
Installed, but have a doubt,,..
what if i have got a vbseo done in my forum, how do i determine which section is to be put as to where the thread is supposed to get created? any solutions?
In your Admin CP -> Forum Manager click on the forum you want and your forumid will be in the very top of the table.
Joe, for the forum id option, replace this:
<setting varname="bop5onban_fid" displayorder="30">
<datatype>posint</datatype>
<defaultvalue>2</defaultvalue>
</setting>
with this:
<setting varname="bop5onban_fid" displayorder="30">
<datatype>number</datatype>
<optioncode>select:eval
$options = construct_forum_chooser_options(1);</optioncode>
<defaultvalue>0</defaultvalue>
</setting>
That way, you get a drop down forum listing to choose the forum from.
Thanks Boofo! I'll try this code and update ASAP.
Boofo
01-13-2011, 01:28 PM
I tried to get you in IM to give it to you there, so I wouldn't have to clutter up your thread. ;)
BirdOPrey5
01-13-2011, 01:45 PM
Thanks... yeah my computer rebooter and I forgot to open AIM/AOL. Just updated to version 1.1 with the new forum selector. :up:
Boofo
01-13-2011, 02:04 PM
You might want to update the readme file as it still shows version 1.0.
Brandon Sheley
01-13-2011, 02:08 PM
hm, not mod but I wouldn't want to showcase the spammers
all my threads would be "user X is banned for spamming"..lol
I could see it being helpful in the reported post forum, or a moderator forum ;)
BirdOPrey5
01-13-2011, 03:10 PM
You might want to update the readme file as it still shows version 1.0.
D'oh!
I updated the instructions but not the version number... all fixed now. Thanks.
Dj Smuggla
01-13-2011, 03:49 PM
This is great, i've got a Banned Users sub forum in a mod only section & this'll save me some time... Thanks a lot BirdOPrey5
EddyMaxx
01-14-2011, 12:27 AM
Works great. Nice job as always Joe.
BirdOPrey5
01-14-2011, 03:09 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.
Pakblogger
01-14-2011, 10:23 AM
very nice,
one question, as there any option to make a settings for {USERNAME} and {BANNEDBY} in message area to show their full profile link..
example: http://www.noeman.org/gsm/banned-members/
BirdOPrey5
01-14-2011, 03:44 PM
Yes, I think I can do that... will update this thread when I add that feature.
BirdOPrey5
01-15-2011, 12:12 AM
I have updated this to v 1.3 with new replacements including {USERNAMEL} and {BANNEDBYL} which are linked versions of each, with links to their respective profiles.
Pakblogger
01-15-2011, 11:17 AM
I have updated this to v 1.3 with new replacements including {USERNAMEL} and {BANNEDBYL} which are linked versions of each, with links to their respective profiles.
Wow............I believe you can do anything....
Great Work and Thx a lot once again
but another addition if possible will be great
IT can create ban information thread in a specific forum, and it'll be great if you can add another option which can create posts in a specific thread.
is it possible to use this as new posts in a thread?????
BirdOPrey5
01-15-2011, 12:56 PM
Yeah i'm sure I can let it post to one thread instead of making a new thread each time, but it will be a while (few days? couple weeks?) before I add that ability.
Pakblogger
01-15-2011, 12:59 PM
Yeah i'm sure I can let it post to one thread instead of making a new thread each time, but it will be a while (few days? couple weeks?) before I add that ability.
wow,.................that will make your MOD 100% Perfect................................
I am waiting for that addition
Thanks to you.......
Marios858
09-11-2011, 08:10 AM
works fine on 4.1.5 , i edit the file , i change the product check , thanks a lot , great mod.
BirdOPrey5
09-11-2011, 01:41 PM
works fine on 4.1.5 , i edit the file , i change the product check , thanks a lot , great mod.
There is a native vb4 version as mentioned in the first post: https://vborg.vbsupport.ru/showthread.php?t=257041
Marios858
09-11-2011, 07:48 PM
Oh My God , i am blind , now i see it , i will remove that and install this one. Thanks a lot , its excellent modification. There is a native vb4 version as mentioned in the first post: https://vborg.vbsupport.ru/showthread.php?t=257041
realmr
09-14-2011, 07:14 PM
Joe how does this add-on work ? Is it a ban via infraction or ban via ACP or via ModCP ? or does this work for all ?
BirdOPrey5
09-14-2011, 08:29 PM
It works no matter how the user is banned. It is called on the hook every time a usergroup is changed. Shouldn't matter how.
Taringa! CS
09-18-2011, 11:59 PM
I've got problem using this mod,
thread it is'nt created and after banning i'm getting no ban message (only background)
Any ideas?
Thanks in advance
BirdOPrey5
09-19-2011, 10:54 AM
I've got problem using this mod,
thread it is'nt created and after banning i'm getting no ban message (only background)
Any ideas?
Thanks in advance
What do you mean "only background"?
What version of VB are you using?
How are you banning a user, admin cp or some other way?
Taringa! CS
09-20-2011, 12:01 AM
What do you mean "only background"?
What version of VB are you using?
How are you banning a user, admin cp or some other way?
Hi
For only background i mean this: http://i55.tinypic.com/2ni718y.png
I'm using latest 3.8 vbulletin and banning from admincp
Thanks!
BirdOPrey5
09-20-2011, 12:25 PM
If you go to your Admin CP -> Plugin Manager
Find the plugin: New Thread on Banning and "edit" it...
Are these the last few lines of that plugin?
build_forum_counters($forumid);
// end make thread code
}
}
} //End Enable If
Taringa! CS
09-20-2011, 05:45 PM
last lines are
build_forum_counters($forumid);
// end make thread code
}
}
} //End Enable If
BirdOPrey5
09-20-2011, 08:43 PM
I really can't imagine what the issue can be then. Do you by chance have a test forum where this is installed that I can play with without affecting your live board?
Taringa! CS
09-21-2011, 12:22 AM
Not really, i think that the problem it's related with another hack... but i dunno wich it's... i'll try to investigate
BirdOPrey5
09-21-2011, 11:03 AM
Not really, i think that the problem it's related with another hack... but i dunno wich it's... i'll try to investigate
If you look in your plugin manager in Admin CP, any other mod that uses the hook userdata_postsave would be a prime suspect.
Taringa! CS
09-22-2011, 12:53 AM
I'm using DragonByte Tech: vBShout (Lite), if u have time can u please check if they are compatible?
Great thanks
BirdOPrey5
09-22-2011, 10:14 AM
I'm using DragonByte Tech: vBShout (Lite), if u have time can u please check if they are compatible?
Great thanks
This one? https://vborg.vbsupport.ru/showthread.php?t=241651
Taringa! CS
09-22-2011, 11:30 AM
YEs!
BirdOPrey5
09-22-2011, 01:55 PM
I'm seeing no reason that mod should conflict... Do you have any other suspects? You can temp-disable a mod to see if disabling it makes this one work- if we can confirm which mod is conflicting that way I can work on a solution.
Taringa! CS
09-22-2011, 08:32 PM
Hi
After a couple of testing, i found that this https://vborg.vbsupport.ru/showthread.php?t=242734 it's the problem!
BirdOPrey5
09-23-2011, 11:31 AM
Hi
After a couple of testing, i found that this https://vborg.vbsupport.ru/showthread.php?t=242734 it's the problem!
You are correct. I installed the mod on my test site and banning is now producing an error:
Fatal error: Class 'USERTAG' not found in /home/juotnet/public_html/jutest/dbtech/usertag/hooks/postdata_presave.php on line 11
Unfortunately it's a problem with that mod as you can see so I really can't do anything about it. You could post this info in his thread and see if he has any ideas.
Taringa! CS
09-23-2011, 02:09 PM
Great Thanks BirdOPrey5
cstreater
10-13-2011, 04:04 AM
It works no matter how the user is banned. It is called on the hook every time a usergroup is changed. Shouldn't matter how.
This is true accept for one scenario, and that's when the member is banned using One Touch Ban & Clean. For some reason it will not create a thread, and I'm a little stumped as to why. :confused:
BirdOPrey5
10-13-2011, 12:03 PM
Is One Touch Ban & Clean a mod? It does work if you use the built in "Delete as Spam" function and choose to ban the user at the same time.
cstreater
10-13-2011, 10:00 PM
Sorry for not being clear, Joe.
Yes, it's this mod (https://vborg.vbsupport.ru/showthread.php?t=156444&highlight=touch+clean). With 4 million members on our site the OTB&C mod makes this task quite a bit faster for us because it deletes PM's and a bunch of other things as well. Sadly, the coder passed away in a diving accident.
BirdOPrey5
10-14-2011, 03:23 AM
I see it now. It looks like the "One Step" mod does the query to ban itself rather than calling the existing vBulletin banning code- as a result the hook my mod uses is never called so my code never runs...
Offhand I don't see a simple fix unfortunately.
cstreater
10-14-2011, 06:15 PM
I see it now. It looks like the "One Step" mod does the query to ban itself rather than calling the existing vBulletin banning code- as a result the hook my mod uses is never called so my code never runs...
Offhand I don't see a simple fix unfortunately.
Sounds good and thanks for looking at it. I'll just need to train the mods to do a points based auto-ban infraction and then the OTB&C. Even though it's a 2-step process it's still a lot faster than the alternative.
xorex
10-17-2011, 12:18 AM
BirdOPrey5 (https://vborg.vbsupport.ru/member.php?u=258922)
Thanks you for this mod ! installed
russian translation file (UTF-8) attached
&
It is possible to add two options in the future?
1. Reply to the same topic if the user is unbanned
2. Choice of the ban specific usergroups
BirdOPrey5
10-17-2011, 10:22 AM
BirdOPrey5 (https://vborg.vbsupport.ru/member.php?u=258922)
Thanks you for this mod ! installed
russian translation file (UTF-8) attached
&
It is possible to add two options in the future?
1. Reply to the same topic if the user is unbanned
2. Choice of the ban specific usergroups
Thanks, I will try. Can you explain #2 more?
xorex
10-17-2011, 05:57 PM
Thanks, I will try. Can you explain #2 more?
Default banned usergroup ID 8 but several forums have more similar banned usergroups like this (Read only, Full ban, and other specific groups) or different ID for default banned usergroup. It requires one extra option which you must specify the ID of banned usergroups.
BirdOPrey5
10-17-2011, 07:24 PM
Yes, I can do that... it will be in the next update.
cstreater
10-31-2011, 05:23 PM
Not sure if this is of interest to anybody, but this is how I've configured ours:
A member of the ___________ Forums has been banned.
Banned Member: {USERNAMEL}
Moderator: {BANNEDBYL}
Reason given: {REASON}
Date the ban will be lifted: {LIFTDATE}
Banned Member Post History. (http://forums.blah.com/search.php?do=finduser&u={USERID})
Any ideas on how to list/add details for infraction history without going into the Admin panel or the profile infractions tab? I'm going to play with it today, and see if I can figure it out.
134173
BTW - here are the details I would like to add. I do not mind sharing this screenshot. Everyone should be on the lookout for anyone coming from the bugmenot domain. Shared logins = bad.
BirdOPrey5
10-31-2011, 09:43 PM
Infraction info is stored separately then the banning and user info, there is no easy way to pull that info with this mod.
cstreater
11-02-2011, 11:58 PM
Yeah that was sort of what I determined as well. Thanks for your input :)
cstreater
11-25-2011, 06:41 PM
Just a heads up - we discovered a bug where banning multiple members using vBulletin's delete posts as Spam feature triggers multiple threads, but does so under a single username. For example in the following picture banning all 4 members at once would have created 4 duplicate threads, but the same name would have been shown for each member being banned, vs. each of the member names -- as demonstrated in the second image:
http://www.corystreater.com/screencaptures/2011-11-25_11-29-39-1.png
http://www.corystreater.com/screencaptures/2011-11-25_11-28-14-1.png
Note the username shown in the second pic is not shown in the first pic. This is due to the fact that I had to snap two different screenshots to illustrate the point.
On a board of our size, it's sometimes necessary to use the delete as spam because it can ban multiple members at once, and because of the added functionality it offers of deleting all posts and threads from the affected members.
------------------
On an unrelated note -- cookie stuffing is back. Be on the lookout for broken images in a post. When a newer member has a small number of posts, you might find that there is weird link wrapped in [img] tags. The browser tries to resolve the link and in the process downloads a file from the site (usually a gif or php) stuffed with cookies containing affiliate ID's. The nasty part is that these cookies are downloaded onto the members computer, and unless they are deleted -- every purchase made on the site with the affiliate ID in the cookie is credited toward the person who planted it there. Most are Amazon and Ebay links. Very shady and morally wrong. That's more of a tip, but I thought I'd mention it since I was on the topic of Spam. Also, note that Firefox does not display broken images, which makes it kind of tricky to spot them. Most of the time you can edit the gif file in a text editor for further proof.
Simon Lloyd
09-20-2012, 09:16 AM
Hi Joe, i've changed the vb phrase "Never" for my forums, is it possible to replace it in your mod?, what i mean is if the ban lift time is "never" then display a custom message or actually "Never"
Simon Lloyd
09-20-2012, 09:19 AM
Doh!, should look more closely, never mind, i've done it :)
Chris8
06-18-2013, 01:17 PM
Nice mod.
Would it be possible to implement thread prefix into this somehow?
chefy
03-24-2014, 04:09 AM
How do I make this work only for permanent bans? Also is there any easy way to include the registration date and postcount of the banned member in the thread title and/or body?
chefy
04-10-2014, 12:30 AM
Just a heads up - we discovered a bug where banning multiple members using vBulletin's delete posts as Spam feature triggers multiple threads, but does so under a single username.
I can confirm this bug. When banning multiple members through the delete posts as spam function (be it in forumdisplay.php or showthread.php) the number of ban threads is correct but they are all duplicated. Could you please fix this?
BirdOPrey5
04-12-2014, 03:39 PM
Please don't report posts asking for bug fixes, that isn't what the report post system is there for.
I am sorry but I have no plans on fixing this issue. I've used the mod for years without running into the bug so it just isn't a pressing issue.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.