Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
One-touch Spam Ban and Cleanup Details »»
One-touch Spam Ban and Cleanup
Version: 1.2b, by mfyvie mfyvie is offline
Developer Last Online: May 2008 Show Printable Version Email this Page

Category: Moderators Functions - Version: 3.6.x Rating:
Released: 08-27-2007 Last Update: 05-19-2008 Installs: 943
Uses Plugins Template Edits
 
No support by the author.

*** Staff note: The author of this modification has passed away in a diving accident. We wish his family all strength in dealing with this tragic issue. ***

One-touch Spam Ban and Cleanup




The main purpose of this mod is to clean up after a spammer. With a minimum of fuss it will:
  • Delete all threads started by the spammer
  • Delete all posts made by the spammer
  • Delete all PMs sent to other members by the spammer
  • Delete all calendar events made by the spammer
  • Ban or delete the spammer as you like
  • Ignore permissions - posts can be deleted in areas that a moderator may not have access to.
The option to activate this tool appears in the drop-down menu in the postbit, as well as on the profile page. From here it is a "one-touch" operation, with the small exception that you must press a confirmation button before the cleanup is made.




See the screenshot for the various options, but some of the more interesting ones are:
  • You can specify individual users (in addition to groups) who can use this tool. This means certain trusted, non-moderator users could have the ability to clean up spam and ban spammers.
  • You can specify users or groups who are protected - they cannot be deleted by this tool.
  • By default, users who have registered more than 30 days ago are also protected from this tool (spammers tend to be caught and removed fairly soon after registration)
  • You can turn the various deletion targets (threads, posts, events, PMs) on or off
  • Select between hard delete or soft delete
This mod is similar to some older mods, but improved in a number of ways:
  • You also have the choice to alter the standard ban and delete reasons before you press confirm.
  • Deletes more types of spam (PMs, events)
  • Simple, quick, effective
  • Single file import (.xml) no file edits, no template edits, no .php files to upload
  • Should work on all versions of 3.6.x and future versions
Installation

Download and import the .xml file via AdminCP -> Plugins & Products -> Manage Products -> Add/Import Product. Remember to click overwrite if upgrading

Configuration

Once installed, check in your AdminCP under "VBulletin settings" and look for the configuration group called "One-touch Spam Ban & Cleanup Options". The default options should be fine for most people.

How to use

If you have rights to use this tool (i.e. are an admin or moderator, or have configured it for the relevant user or group ID) you should see the option appear on the member profile page, or in a drop-down on the postbit (see attached screenshots for an example). The idea is that as soon as you see a spammer select the "One-touch Ban & Clean" option to remove all trace of the spammer.

Support




Support will be given to those who have:
  • Read these instructions (and followed them) and
  • Clicked install
Version history

1.0 - initial version (28.08.2007)
1.1 - security fix (21.09.2007)
1.2b - Beta Fix to work with vb3.7.0 (20.05.2008)

Download Now

File Type: xml product-onetouch_spam_ban_clean_1_1.xml (31.9 KB, 2698 views)
File Type: xml product-onetouch_spam_ban_clean_1_2b.xml (32.0 KB, 2667 views)

Screenshots

File Type: jpg options.jpg (142.7 KB, 0 views)
File Type: jpg confirmation.jpg (36.9 KB, 0 views)
File Type: jpg member.jpg (40.8 KB, 0 views)
File Type: jpg postbit.jpg (53.2 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
TAIFUN_T

Comments
  #312  
Old 11-14-2008, 05:01 PM
luffer luffer is offline
 
Join Date: Oct 2008
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

using this mode does not move users to the banned category - check your banned users and you will not find those that you banned using this mode - search for the users using search option and you'll find them being banned but the user category will not be updated.
Also I found that there is a mistake in this query of the plugin:
$vbulletin->db->query_write("INSERT INTO " . TABLE_PREFIX . "userban (userid, usergroupid, displaygroupid, usertitle, customtitle, .... this should be customtitle, usertitle,.. also the corresponding values should be moved too

if any one fixed this problem please let me know
Reply With Quote
  #313  
Old 11-14-2008, 05:37 PM
Fungsten's Avatar
Fungsten Fungsten is offline
 
Join Date: Jul 2006
Posts: 1,131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by brvheart View Post
thank you, I installed, but can not see the one touch in the members profile - anyone have a fix for that? I am sure that it is just a template edit....
Same here.
Reply With Quote
  #314  
Old 11-23-2008, 01:56 PM
CCV_Pinto CCV_Pinto is offline
 
Join Date: Oct 2007
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by luffer View Post
using this mode does not move users to the banned category - check your banned users and you will not find those that you banned using this mode - search for the users using search option and you'll find them being banned but the user category will not be updated.
Also I found that there is a mistake in this query of the plugin:
$vbulletin->db->query_write("INSERT INTO " . TABLE_PREFIX . "userban (userid, usergroupid, displaygroupid, usertitle, customtitle, .... this should be customtitle, usertitle,.. also the corresponding values should be moved too

if any one fixed this problem please let me know
I did a test and here the user is moved to the banned category (at the mod options you can specify the id of the banned users, check it there)

and If I understood correctly: you want to change from:

Code:
$vbulletin->db->query_write("INSERT INTO " . TABLE_PREFIX . "userban (userid, usergroupid, displaygroupid,  usertitle, customtitle,...) values (... value_usertitle, value_customtitle,...)
to

Code:
$vbulletin->db->query_write("INSERT INTO " . TABLE_PREFIX . "userban (userid, usergroupid, displaygroupid,  customtitle,usertitle, ...) values (... value_customtitle,value_usertitle...)
well.. this modification dont change anything

the link to use one touch and ban from the profile has dissapeared, so I did a modification:

like Quarterbore said , you should find:

Code:
     <if condition="can_moderate()">
                            <li class="thead"><a href="moderator.php?$session[sessionurl]do=useroptions&amp;u=$userinfo[userid]">$vbphrase[edit_user_profile]</a></li>
                        </if>
after that, I added this:

Code:
<!-- one touch modification -->
<!-- insert_onetouch -->
<!-- one touch modification -->
then I changed the plugin "global_start" of this product to:

Code:
if (THIS_SCRIPT == 'member' AND $vbulletin->options['spamer_ban_enable'] AND (is_member_of($vbulletin->userinfo, explode(",", $vbulletin->options['spamer_ban_can_use'])) OR ($vbulletin->userinfo['userid'] != 0 AND in_array($vbulletin->userinfo['userid'], explode(",", $vbulletin->options['spamer_ban_can_use_user'])))))
{
    $findend =  "<!-- insert_onetouch -->";
    $replace = '<li class=\"thead\"><a href=\"misc.php?$session[sessionurl]do=spamcleanconfirm&amp;u=$userinfo[userid]\">$vbphrase[spammer_ban_member]</a></li>';
    $vbulletin->templatecache['MEMBERINFO'] = str_replace("$findend", "$replace$findend", $vbulletin->templatecache['MEMBERINFO']);
}
this will insert the option to the user profile if the user has permission to see the link
Reply With Quote
  #315  
Old 11-24-2008, 06:58 AM
BigDog56 BigDog56 is offline
 
Join Date: Jan 2007
Posts: 430
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CCV_Pinto View Post
I did a test and here the user is moved to the banned category (at the mod options you can specify the id of the banned users, check it there)

and If I understood correctly: you want to change from:

Code:
$vbulletin->db->query_write("INSERT INTO " . TABLE_PREFIX . "userban (userid, usergroupid, displaygroupid,  usertitle, customtitle,...) values (... value_usertitle, value_customtitle,...)
to

Code:
$vbulletin->db->query_write("INSERT INTO " . TABLE_PREFIX . "userban (userid, usergroupid, displaygroupid,  customtitle,usertitle, ...) values (... value_customtitle,value_usertitle...)
well.. this modification dont change anything

the link to use one touch and ban from the profile has dissapeared, so I did a modification:

like Quarterbore said , you should find:

Code:
     <if condition="can_moderate()">
                            <li class="thead"><a href="moderator.php?$session[sessionurl]do=useroptions&amp;u=$userinfo[userid]">$vbphrase[edit_user_profile]</a></li>
                        </if>
after that, I added this:

Code:
<!-- one touch modification -->
<!-- insert_onetouch -->
<!-- one touch modification -->
then I changed the plugin "global_start" of this product to:

Code:
if (THIS_SCRIPT == 'member' AND $vbulletin->options['spamer_ban_enable'] AND (is_member_of($vbulletin->userinfo, explode(",", $vbulletin->options['spamer_ban_can_use'])) OR ($vbulletin->userinfo['userid'] != 0 AND in_array($vbulletin->userinfo['userid'], explode(",", $vbulletin->options['spamer_ban_can_use_user'])))))
{
    $findend =  "<!-- insert_onetouch -->";
    $replace = '<li class=\"thead\"><a href=\"misc.php?$session[sessionurl]do=spamcleanconfirm&amp;u=$userinfo[userid]\">$vbphrase[spammer_ban_member]</a></li>';
    $vbulletin->templatecache['MEMBERINFO'] = str_replace("$findend", "$replace$findend", $vbulletin->templatecache['MEMBERINFO']);
}
this will insert the option to the user profile if the user has permission to see the link
I did not have
Code:
                        <if condition="can_moderate()"> 
                            <li class="thead"><a href="moderator.php?$session[sessionurl]do=useroptions&amp;u=$userinfo[userid]">$vbphrase[edit_user_profile]</a></li> 
                        </if>
But I had this. So I used this instead and seems to works fine.
Code:
						<if condition="$show['edit_profile']">
							<li class="thead"><a href="moderator.php?$session[sessionurl]do=useroptions&amp;u=$userinfo[userid]">$vbphrase[edit_user_profile]</a></li>
						</if>
Reply With Quote
  #316  
Old 11-24-2008, 08:21 PM
gbox master gbox master is offline
 
Join Date: Dec 2007
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
*** Staff note: The author of this modification has passed away in a diving accident. We wish his family all strength in dealing with this traggic issue. ***
holy moses this is a bad thing to read
i hope he will rest in peace and my condolences to his fam
the modification is excelent and its a great loss that he had a accident specially with such a great hobby as diving

these kind of modifications should be nominated as mod of the year
Reply With Quote
  #317  
Old 11-25-2008, 01:06 AM
ZatroX ZatroX is offline
 
Join Date: Jun 2007
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

will this work with 3.7.4?
Reply With Quote
  #318  
Old 11-25-2008, 05:42 PM
BigDog56 BigDog56 is offline
 
Join Date: Jan 2007
Posts: 430
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ZatroX View Post
will this work with 3.7.4?
yes. just do the changes stated a few posts back.
Reply With Quote
  #319  
Old 11-30-2008, 04:29 AM
jbd jbd is offline
 
Join Date: Jul 2004
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*sigh*

Condolences go out to him and his family, thanks for the mod, even though I can't get it to show up on my postbit.
Reply With Quote
  #320  
Old 11-30-2008, 01:42 PM
tiekie tiekie is offline
 
Join Date: Sep 2007
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Im runing vbulletin 3.7.4 and it doesnt work with it . I added the addon patch for v3.7.0 but still nothing.

Will you please make it work for my version
Reply With Quote
  #321  
Old 11-30-2008, 02:09 PM
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 3,537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It would be nice if a 3.7 version would be released making use of vbulletin's functions to clean up spam quickly. vbulletin allows for multiple spammers to be banned and cleaned up in one go. But vb's interface is not as easy / one touch as this one.
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 05:33 AM.


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.05156 seconds
  • Memory Usage 2,363KB
  • Queries Executed 26 (?)
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
  • (12)bbcode_code
  • (5)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
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (6)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_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