View Full Version : Add-On Releases - QUICK BAN in postbit_legacy for vB3.6 -Instantly ban spammers!
LordDB
12-04-2006, 10:00 PM
v1.2
About the Code:
Now you can Ban a user/spammer instantly from the postbit! Just click the Username in the thread, and then click 'Ban User' to ban directly!
This Mod has now been improved & updated today, Tuesday, 7th August, 2007, with the option of adding staff ID's which includes the extra code where required! Two Code options within!
Works on vB versions 3.6 to 3.8 so far!
Instructions of use included in Code!
Hope you enjoy its convenience! ;)
Feedback very welcome!
Tested @
http://www.norfolkmanagementrentals.co.uk/forum/index.php
http://www.cellpda.tk
http://www.satnav.tk
http://www.norfolk.tk
Enjoy!;)
Example here:
https://vborg.vbsupport.ru/external/2009/07/70.jpg
If you like, kindly Donate here:
PayPal (https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=engager%40tiscali%2eco%2euk&amount=3%2e00&no_shipping=2&no_note=1&tax=0¤cy_code=GBP&bn=PP%2dDonationsBF&charset=UTF%2d8)
If you do download, be respectful, and Click the
Mark as INSTALLED
button in the Mod Options box top right! Thx! ;)
Distance
12-05-2006, 09:35 AM
Very nice... i will use this for spammers thanks
JamieLee2k
12-05-2006, 10:37 AM
Awesome, something that will really help me
projectego
12-05-2006, 10:51 AM
* projectego clicks install :)
Qwest
12-05-2006, 11:57 AM
Sweet Jesus thank you!!!
All the porn spammer bots are getting out of hand. I really was starting to wonder why this mod wasn't out there already and why it's not a default feature in vb. Thought I was going to have to do this myself.
HINT: now if only this made it so you didn't have to login to admin every time :)
* Qwest install x 2
puertoblack2003
12-05-2006, 12:24 PM
Sweet Jesus thank you!!!
All the porn spammer bots are getting out of hand. I really was starting to wonder why this mod wasn't out there already and why it's not a default feature in vb. Thought I was going to have to do this myself.
HINT: now if only this made it so you didn't have to login to admin every time :)
* Qwest install x 2
Actually that mod has been out already long ago and i still used this mod on my new board you can check it here https://vborg.vbsupport.ru/showthread.php?t=93057
LordDB
12-05-2006, 12:50 PM
puertoblack2003, my Mod is not exactly the same as the one you're stating, as this Mod only BANS which is the main reason I did it, and doesn't give the option to unban like the one you stated!
Anyway, this is updated for all vB3.6!
Remember to click the INSTALL button, plz! ;)
Cheers! ;)
TheBlackPoet
12-05-2006, 01:07 PM
i installed... quick is the key!!!
puertoblack2003
12-05-2006, 01:10 PM
puertoblack2003, my Mod is not exactly the same as the one you're stating, as this Mod only BANS which is the main reason I did it, and doesn't give the option to unban like the one you stated!
Anyway, this is updated for all vB3.6!
Remember to click the INSTALL button, plz! ;)
Cheers! ;)
Sorry to bust your bubble and i'm not raining on your parade either , thought i appropriate everyone hard work but that quote was directed to the user that said he never seen that hack and all i basicly did was and showed that there were a hack just like yours and that hack in question also unbanned and banned check the pic i use it that way myself
http://www.motoxtremehosting.com/photo/img/622fdfa5812a093002ee8fac8545fc94/Ban_Unbanned.png (http://www.motoxtremehosting.com)
edited: i do understand what you mean now test it
scottct1
12-05-2006, 02:20 PM
There is an error in the code
</span needs a > after the </span part to make it </span> :)
LordDB
12-05-2006, 02:37 PM
There is an error in the code
</span needs a > after the </span part to make it </span> :)
Thx for the feedback!
Although I've installed the Mod, I encountered no issues with the omission of the > when I tested the Ban function!
Nevertheless, I have amended what you stated! ;)
Cheers!
farooqaaa
12-05-2006, 02:43 PM
OMG!!!!!
I really want this!!!!! Thanks alot !!!
*farooqaaa clicks install.
fleshy66
12-05-2006, 10:24 PM
nice little mod, thanks :)
pcoskat
12-05-2006, 11:12 PM
Nice! Any chance we can get 'quick delete' too?
akanevsky
12-06-2006, 12:18 AM
It's spelled "maelstrom".
LordDB
12-06-2006, 02:11 AM
It's spelled "maelstrom".
That's for the User to decide on! What does it mean?;)
Br.
scan-pa
12-06-2006, 03:29 AM
How do I add the other moderator usergroup id's to the code, it currently only allows "6 - Admin" I have a total of 4 usergroups to have this access.
Can I set this up as an array of usergroup id's ???
here is the line of code that would need changed.
<if condition="$bbuserinfo[usergroupid] == 6">
Thanks for any help.
Cybershaolin
12-06-2006, 05:13 AM
I have the same question :)
LordDB
12-06-2006, 07:31 AM
I stand corrected if I'm wrong, but here goes:
Change the Usergroup ID after this:
Ensure that this:
"( is put at the beginning
==
then if you wish to continue to add ID's place this:
|| inbetween, and repeat so it looks like this;
||$bbuserinfo[usergroupid]==6 then if you want to finish, place this at the end of the ID number:
)">
So! Here's an example:
<if condition="($bbuserinfo[usergroupid]==9 || $bbuserinfo[usergroupid]==6 || $bbuserinfo[usergroupid]==12)">
Hope this is OK!
Any experienced coder plz verify to others if it's fine. Thx! ;)
project-Buckfas
12-06-2006, 10:21 AM
Great hack. I've been waiting for this!
Now that would be super Pcoskat!
Nice! Any chance we can get 'quick delete' too?
Cybershaolin
12-06-2006, 11:51 AM
I stand corrected if I'm wrong, but here goes:
Change the Usergroup ID after this:
==
then if you wish to continue to add ID's place this:
|| inbetween, and repeat so it looks like this;
||$bbuserinfo[usergroupid]==6 then if you want to finish, place this at the end of the ID number:
)">
So! Here's an example:
<if condition="$bbuserinfo[usergroupid]==9 || $bbuserinfo[usergroupid]==6 || $bbuserinfo[usergroupid]==12)">
Hope this is OK!
Any experienced coder plz verify to others if it's fine. Thx! ;)
Thanks I'll try it tonight. Just one point though, if we add other group ID's, these ones should not be able to ban any members within our own groups! We never know...
scan-pa
12-06-2006, 05:09 PM
That fixed it. Exactly what I needed. Great job. Clicked "installed"
Thanks.
LordDB
12-06-2006, 06:38 PM
Hi Cybershaolin, each ID should be protected from being banned!
Kindly try the hack out, and report your findings here! Thx!;)
Thanks, so far, for the positive feedback guys, and I'm pleased to be able to help you all!
Br.
Cybershaolin
12-07-2006, 12:47 AM
well using that code gave me a parse error:
<if condition="$bbuserinfo[usergroupid] ==5 || $bbuserinfo[usergroupid]==6 || $bbuserinfo[usergroupid]==7)">
You forgot a "(" I think at the beginning. because it goes fine after I added it Shouln't have been something like this:
<if condition="($bbuserinfo[usergroupid] ==5 || $bbuserinfo[usergroupid]==6 || $bbuserinfo[usergroupid]==7)">
Now, I forgot to check the hack at first before doing the group modification but in both ways it does not work for me.
I see the option to ban in the postbit but when I click on it, it opens a popup window with a link like this one:
http://myforum.com/forum/modcp/banning.php?do=banuser&userid=7
It looks OK but it gives me this error page for result:
Not Found
The requested document was not found on this server
LordDB
12-07-2006, 04:13 AM
Thx for the feedback, Cybershaolin! I've now adjusted, as found! ;)
Will investigate your errors and get back here shortly!;)
Practice make perfect in the end!;)
Br.
LordDB
12-08-2006, 05:07 AM
Hi, Cybershaolin! Can you tell me the 'status' that you encountered this problem? Were you performing this as Super Admin or what? If you were, then it is some other conflict within your templates?
Look forward to your feedback!
Br.;)
Cybershaolin
12-08-2006, 05:34 AM
I tried it as a super admin, as a super mod and as a moderator. All of them give me this error.
LordDB
12-08-2006, 05:51 PM
I tried it as a super admin, as a super mod and as a moderator. All of them give me this error.
Hi, Cybershaolin!
Sadly, it seems for sure, that your issues are not related to this Mod, but perhaps a conflict with something else! Just with 'Super Admin' alone, as directed in my code, does work 100%, as I use it! :)
Sometimes this does happen with different customisations!
Let's see if some other experienced coder can shed light on this for you!
Br.
Lovinmysailor
12-08-2006, 06:21 PM
Thanks works great!!!!
LordDB
12-09-2006, 06:06 AM
Thanks for your positive feedback, Lovinmysailor! It's such a simple, convenient, and quick code to install isn't it! No excess buttons in postbit_legacy to worry about! ;)
Don't forget to click the 'INSTALL' button if it 'worked' for whoever downloads!;)
Cheers!
Trana
12-10-2006, 08:17 PM
From my tests, this only works for primary usergroups. Has anyone gotten it to work with a secondary usergroup?
Aclikyano
12-16-2006, 02:18 PM
doesnt work.
nothing happens when you click on name / ban user.
My admins usergroup is 6 including me.
I think it might be onClick="void(0) or something.......
I want this to work.
What usergroups do I need to put for it to work?
LordDB
12-16-2006, 04:31 PM
doesnt work.
nothing happens when you click on name / ban user.
My admins usergroup is 6 including me.
I think it might be onClick="void(0) or something.......
I want this to work.
What usergroups do I need to put for it to work?
I can assure you that this indeed works 100%; as users have already posted!
You have an existing problem which may well be in conflict with this mod, so sorry it hasn't worked out for you!
Br.:D
Trana
12-18-2006, 03:05 AM
I can assure you that this indeed works 100%; as users have already posted!
100%? Are you saying that this works for secondary group memberships?
hennanra
01-06-2007, 07:38 AM
Nice! Any chance we can get 'quick delete' too?
Agreed, a quick delete would be brilliant. This is a great mod still, but the quick delete would be more suitable in many cases. Also, I would say that the Prevent Spam Module is a must have alongside this as the way spam is nowadays, you really cannot afford to delete after the event.
I had to close my forum for weeks to review different solutions as on one day I had about 30 spam posts on my forum - the problem with banning as a concept is that spammers never use the same id or even ip address in my experience - that is why they are so succesful. Using a keyword or url filter really limits the ability of spammers to wreak havoc.
GeoffE
01-06-2007, 02:35 PM
installed, works great :)
Trana
01-06-2007, 08:23 PM
100%? Are you saying that this works for secondary group memberships?
Anyone gotten this to work with secondary groups?
LordDB
02-17-2007, 03:49 AM
Anyone gotten this to work with secondary groups?
Hello!
Been very busy of late! Sorry for not replying!:)
If you want to include, say, your Moderators in with this, then change:
<if condition="$bbuserinfo[usergroupid] == 6">
to
<if condition="can_moderate()">
then whoever you assign such powers to, can therefore QuickBan!
Please, guys, click the Install button, or kindly donate if your use this, as it's nice to know it's working for you! Thx!:)
Br.
Trana
02-18-2007, 08:03 PM
But that uses the forum moderators (set per forum) as well.
That will allow a person who is set as a moderator for the forum to ban anyone they want that posts within their forum.
I need to be able to use secondary usergroups I think.
Mrdby
05-22-2007, 04:28 PM
to confusing
medienleben
05-29-2007, 05:36 PM
hi, this mod is great, but pls,
how can i enable this menu? or where i can see it? ive modified post_legacy, but this menu isnt anywhere...
thanks
Koroku
06-05-2007, 11:23 PM
This is a really good idea, and I've just added it to my own forum, though I changed it up slightly.<if condition="($bbuserinfo[usergroupid]==9 || $bbuserinfo[usergroupid]==6 || $bbuserinfo[usergroupid]==5)">
<tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/banning.php?do=banuser&userid=$post[userid]','ban','width=500,height=375,scrollbars=yes')"><a>Ban/Moderate $post[username]</a></span></td></tr></if>
(The usergroups are my Admins, SMods, and Sub-Admins)
Very nice idea. My staffage are gonna love it. :)
(And you can add it in the normal postbit too, doesn't have to be in legacy... just gotta search around for the part to add it :))
Heath
06-11-2007, 10:55 PM
For some reason this isn't showing up on the menu?
Alfa1
08-01-2007, 02:43 PM
Can you please make a product for this? This way vbulletin upgrades do not interfere as much. Now the hack disappears when you upgrade.
LordDB
08-06-2007, 08:26 PM
Many thanks to those who've clicked the Install button, and given feedback to this great Mod!
I've now addressed, and improved the code accordingly!
Enjoy!:)
Alfa1
09-11-2007, 10:39 AM
In your screenshot you have the edit user function for admins. Please add this code.
Please make this into a product or plugin.
proxx
09-14-2007, 07:08 PM
I am looking for a mod like this, but it will do 2 functions:
1) ban the user
2) delete (physically) all the posts by this user
could someone help me find this please.
thanks.
ChU v2
09-14-2007, 08:32 PM
Hello great mod, but having a bit of trouble.
This is the code I'm putting in.
<!-- daPLAYBOY banUser -->
<if condition="($bbuserinfo[usergroupid]==6 || $bbuserinfo[usergroupid]==7 || $bbuserinfo[usergroupid]==5 || bbuserinfo[usergroupid]==21)">
<tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/banning.php?do=banuser&userid=$post[userid]','ban','width=500,height=375,scrollbars=yes')"><a>Ban User: $post[username]</a></span></td></tr></if>
<!-- / daPLAYBOY banUser end -->
and the error I'm getting when I click "Save Template"
The following error occurred when attempting to evaluate this template:
Parse error: syntax error, unexpected '[' in /home/brutehal/public_html/xgengamers.com/forum/includes/adminfunctions_template.php(3596) : eval()'d code on line 351
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
ChU v2
09-15-2007, 05:20 PM
anyone?
LordDB
12-03-2007, 08:39 PM
All I can say is that it might be your version of vB that isn't compatible, as on vB 6.0 it works just fine!
mauisun
12-04-2007, 02:10 PM
worked like a champ on 3.68 thanks
...mauisun
Dingo14
02-04-2008, 07:43 AM
works great nice mod thanks
Koroku
03-29-2008, 01:14 AM
In your screenshot you have the edit user function for admins. Please add this code.
Please make this into a product or plugin.
<if condition="($bbuserinfo[usergroupid]==9 || $bbuserinfo[usergroupid]==6 || $bbuserinfo[usergroupid]==5)">
<tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/banning.php?do=banuser&userid=$post[userid]','ban','width=500,height=375,scrollbars=yes')"><a>Ban/Moderate $post[username]</a></span></td></tr>
<tr><td class="vbmenu_option"><a href="moderator.php?do=useroptions&u=$post[userid]">Edit $post[username]</a></td></tr>
</if>Change usergroups as needed :)
Works fine on 3.7 RC1 using the above code stuck in both postbit_legacy and postbit :^)
bigcurt
04-23-2009, 10:59 AM
Any chance of an update for 3.8?
Biker_GA
04-23-2009, 07:17 PM
No need. Works just fine on my 3.8.2 installation. :)
bilal.ahmed
10-14-2009, 06:47 AM
can any one please guide me with the download link ... :(
I am already logged in and a paid user.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.