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)

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:20 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.02329 seconds
  • Memory Usage 1,759KB
  • 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
  • (12)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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