vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Moderators Functions - One-touch Spam Ban and Cleanup (https://vborg.vbsupport.ru/showthread.php?t=156444)

markrav 07-31-2008 11:46 AM

Great plugin, very sorry to here of the auther's early demise.

This plugin is going to save me a huge amount of time.

r5e 08-05-2008 12:19 AM

I've just granted permission to another coder who has agreed to take over the code from Mark's mods (like this one) and keep them up to date and free to all, which should be good news for all of you who use his mods and allow his legacy to continue.

Robert Fyvie

wickland 08-10-2008 01:09 AM

great work, I like this one.

tekguru 08-20-2008 05:24 AM

Good news that :)

One for him to tackle:

I noticed last night I get the following when viewing PMs:

Code:

Uncached templates: postbit_onetouchban (1)

tiekie 08-21-2008 02:40 PM

excellent mod ... It saved me soooooooooooooooooooooooooooo--------> much time

Planet_Earth 08-22-2008 11:22 AM

Will not show in User Profile after Updating to 3.7.2 any ideas why or is it Not supported by 3.7.2

SVTCobraLTD 08-22-2008 03:57 PM

Installed 1.1 on 3.6.10pl3 and got the error below when attempting to use it...
Code:

Your submission could not be processed because a security token was missing or mismatched.

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.


gbml4u 08-26-2008 05:43 PM

hi mfyvie,

just want to let u know that Im using your mod.

R.I.P

Quarterbore 09-08-2008 06:36 PM

RIP & installed :(

jkalchik 09-15-2008 12:34 PM

I ran across this mod accidentally yesterday morning during a vBulletin upgrade from 3.5.x to 3.7.3.

WOW. I, and the rest of the volunteer admin staff, greatly appreciate the time & effort that has gone into this app.

R.I.P., and my condoloences to friends & family.

nbaphenom 09-21-2008 05:10 AM

Great Mod man
R.I.P.

jmurrayhead 09-21-2008 09:56 PM

To whomever has taken over this great mod...perhaps you could add a feature for those of us who have a forum for bans and warnings, to create a new thread for each ban that was issued using this tool :)

andeelym 09-24-2008 12:48 AM

Quote:

Originally Posted by SVTCobraLTD (Post 1604585)
Installed 1.1 on 3.6.10pl3 and got the error below when attempting to use it...
Code:

Your submission could not be processed because a security token was missing or mismatched.

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.


Encountered this prob too, even on ver 1.2b

SVTCobraLTD 09-29-2008 09:45 PM

Quote:

Originally Posted by SVTCobraLTD (Post 1604585)
Installed 1.1 on 3.6.10pl3 and got the error below when attempting to use it...
Code:

Your submission could not be processed because a security token was missing or mismatched.

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.


Same problem here... anyone have any ideas?

rbrashear68 10-01-2008 12:54 PM

My condolences to Mark's friends and family! They will be in my prayers. Mark, rest in peace brother!

l2ride55 10-01-2008 05:58 PM

GREAT Mod! One click and spammer, posts, messages and all traces are DELETED (I have mine set to "Delete", not "Ban" the freaks)!

My forum has been under attack the last few days - and this mod sure made it easy for me to get rid of them - FAST!

Rest in Peace Brother :(

L2
www.TelepresenceForum.com

John_Shaft 10-04-2008 01:38 AM

Installed, using it, and loving it. This could be the best and most important mod I've ever used. Given the October SPAM influx it probably is.

Thanks Mark. I'm sending you good Karma, wherever you are.

Outbackmark 10-04-2008 11:50 PM

My condolences to Mark's family, may he rest in peace.

This is a wonderful mod, I only had to insert security tokens into the template -
Open the template "onetouchban" in Styles and Templates/edit templates -
Find
Quote:

<form action="misc.php" method="post" name="spamconfirm" id="spamconfirm">
On the NEXT line insert -
Quote:

<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
Save and edit the same in other styles if you have more that one running.
No more errors - Remember to turn off the IP ban for your test run or you may ban your own IP!!

ilgam 10-05-2008 11:52 AM

Using your mod, thank you.
Rest in peace Mark.

E-IndiaWeb 10-08-2008 06:30 AM

This is the only mod i have in my all forums. Thank you for everything I can not do anything for you except prayer. God bless your family and bless with courage to go ahead. Mark i'll miss you.

LeatherNeck 10-13-2008 03:52 AM

working 3.8.0 beta.

RIP.

rbrashear68 10-15-2008 12:43 PM

This is ONE AWESOME tool!!!

I realize this isn't supported (R.I.P!!!), but I'd like this link to be seen on my user's profile page. We use interactive profiles on ver. 3.6.8 but I'm not sure how to add this. Any ideas anyone?

sherwood 10-22-2008 02:18 PM

This works with vb 3.8 beta.

This is a awesome hack.

RIP

pedigree 10-23-2008 11:50 AM

This is a great hack, I use it myself but I was hoping on some feedback from its users. Im writing the vbStopForumSpam plugin (https://vborg.vbsupport.ru/showthread.php?t=176481) and was wondering if 1touch users would mind me incorporating some of its cleanup/ban code into my plugin?

This would allow admins to submit spamming users to the stopforumspam.com website and then cleanup users, thus merging the functionality of two plugins, into one.

I would normally ask the author but as this isnt possible and as the mod doesnt display "reusable code", Im hoping for honest (and frank) feedback about its reuse.

Quarterbore 10-29-2008 05:42 PM

Here is a simple modification for vBulletin 3.7 that makes it easier to remove a member from their profile page:

Open Template: MEMBERINFO

FIND:

PHP 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 ADD:

PHP Code:

                        <if condition="can_moderate()">
                            <
li class="thead"><a href="misc.php?$session[sessionurl]do=spamcleanconfirm&amp;u=$userinfo[userid]">$vbphrase[spammer_ban_member]</a></li>
                        </if> 

Now, one potential issue that I did not test is the permissions that are based on the "can_moderate" variable. So, this link may be shown to staff that are not allowed to use this depending on your permissions settings but that is not an issue I need to worry about on my site!

If someone updates this we should likely put the permissions check in a hook to allow this to be used in more places! I would also love to see the main file moved to a physical php file and add some hooks so that plugins could be added to allow the spam-and-ban script to delete other common spam that a member might drop onto our sites.

GrendelKhan{TSU 11-02-2008 06:22 AM

RIP mfyvie

installed working.
3.8.0 beta

brvheart 11-09-2008 11:27 PM

RIP - Hope the best for the family :(

Anyone know if this works on 3.7.x?

stanleys 11-10-2008 01:38 AM

Quote:

Originally Posted by brvheart (Post 1662638)
RIP - Hope the best for the family :(

Anyone know if this works on 3.7.x?

Yes, works just fine on 3.7.3

SVTCobraLTD 11-14-2008 02:57 PM

Quote:

Originally Posted by Outbackmark (Post 1637488)
My condolences to Mark's family, may he rest in peace.

This is a wonderful mod, I only had to insert security tokens into the template -
Open the template "onetouchban" in Styles and Templates/edit templates -
Find


On the NEXT line insert -


Save and edit the same in other styles if you have more that one running.
No more errors - Remember to turn off the IP ban for your test run or you may ban your own IP!!

This worked for 3.6.11. Thank you

brvheart 11-14-2008 03:53 PM

Quote:

Originally Posted by stanleys (Post 1662691)
Yes, works just fine on 3.7.3

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....

luffer 11-14-2008 05:01 PM

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

Fungsten 11-14-2008 05:37 PM

Quote:

Originally Posted by brvheart (Post 1665618)
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.

CCV_Pinto 11-23-2008 01:56 PM

Quote:

Originally Posted by luffer (Post 1665653)
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 :D

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

BigDog56 11-24-2008 06:58 AM

Quote:

Originally Posted by CCV_Pinto (Post 1671316)
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 :D

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>


gbox master 11-24-2008 08:21 PM

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

ZatroX 11-25-2008 01:06 AM

will this work with 3.7.4?

BigDog56 11-25-2008 05:42 PM

Quote:

Originally Posted by ZatroX (Post 1672389)
will this work with 3.7.4?

yes. just do the changes stated a few posts back.

jbd 11-30-2008 04:29 AM

*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.

tiekie 11-30-2008 01:42 PM

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

Alfa1 11-30-2008 02:09 PM

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.


All times are GMT. The time now is 04:29 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03142 seconds
  • Memory Usage 1,853KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (16)bbcode_code_printable
  • (2)bbcode_php_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete