vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Auto-Moderation by Keywords (https://vborg.vbsupport.ru/showthread.php?t=93934)

Sal Collaziano 03-30-2006 10:33 AM

I've been having a lot of people come to my forum asking for members to visit survey sites (as their first post).. I'd like to use this modification on the word "survey". However, it would be REALLY nice if I could allow my registered members with 25 posts or more to bypass the filter.. Is this at all possible?

royouth 06-29-2006 08:20 PM

this would be the perfect solution if it included the first post in the thread to also be moderated.

tweakmonkey 10-15-2006 10:35 PM

Nice plugin. It's useless for spam though (IMO) because most spammers start new threads instead of replying to others. I hope it gets updated some day to stop new threads from being posted.

Edit - this only happens on VB 3.6+ it seems. See my fix below.

Wongod 10-16-2006 06:43 AM

Quote:

Originally Posted by tweakmonkey
Nice plugin. It's useless for spam though (IMO) because most spammers start new threads instead of replying to others. I hope it gets updated some day to stop new threads from being posted.

It already does

tweakmonkey 10-18-2006 12:47 AM

Not for me. I run VB 3.6 though, which may be the reason.

Here's the fix for anyone who wants it to moderate new threads as well:
Open product-kwautomod.xml
Around line 12, find two occurences of 'pagetext' and change it to 'pagetext', 'post'

Here's the complete code including spelling and description fix if anyone wants it (I may post an updated version of the code later with more modifications):
Code:

<?xml version="1.0" encoding="ISO-8859-1"?>

<product productid="kwautomod" title="Auto-Moderation by Keywords" description="This Hack allows you to automatically place Posts that contain certain Keywords under Moderation" version="1.0.0" active="1">
        <codes>
        </codes>
        <templates>
        </templates>
        <plugins>
                <plugin active="1">
                        <title>Auto-Moderation by Keywords: First Post/Thread</title>
                        <hookname>threadfpdata_presave</hookname>
                        <phpcode><![CDATA[if (str_replace(explode(',', $this->registry->options['automodkeywords']), '', strtolower($this->fetch_field('pagetext', 'post'))) != strtolower($this->fetch_field('pagetext', 'post')) AND !can_moderate())
{
        $this->set('visible', 0);
}]]></phpcode>
                </plugin>
                <plugin active="1">
                        <title>Auto-Moderation by Keywords: Normal Post</title>
                        <hookname>postdata_presave</hookname>
                        <phpcode><![CDATA[if (str_replace(explode(',', $this->registry->options['automodkeywords']), '', strtolower($this->fetch_field('pagetext'))) != strtolower($this->fetch_field('pagetext')) AND !can_moderate())
{
        $this->set('visible', 0);
}]]></phpcode>
                </plugin>
        </plugins>
        <phrases>
                <phrasetype name="vBulletin Settings" fieldname="vbsettings">
                        <phrase name="setting_automodkeywords_desc"><![CDATA[If any of the Keywords listed here (separated by a Comma) does appear in a Post, the Post will automatically be placed under Moderation - no matter what Moderation Setting the Usergroup or Forum has.<br />
Enter Keywords in lowercase only!]]></phrase>
                        <phrase name="setting_automodkeywords_title"><![CDATA[Auto-Moderation Keywords]]></phrase>
                </phrasetype>
        </phrases>
        <options>
                <settinggroup name="general" displayorder="30">
                        <setting varname="automodkeywords" displayorder="360">
                                <datatype>free</datatype>
                        </setting>
                </settinggroup>
        </options>
</product>

I posted this earlier instead that also stops people from posting a set # of URLs per post to further reduce spam. It also checks the number of posts a user has before applying the moderation.

JPnyc 01-04-2007 06:48 PM

This thing works a treat, well done Kirby. However coming up with a comprehensive list of keywords is a killer.

JPnyc 01-04-2007 06:52 PM

Darn, they're right, it prevents posts but not new threads on 3.5.7

Edit: however the fix works. Well done.

Smitty 03-28-2007 07:53 AM

Has anyone tried this on vBulletin version 3.6.x?

ValorduX 05-01-2007 09:24 PM

Yeah. And no it doesn't work. But try this one out:
https://vborg.vbsupport.ru/showthrea...=131568&page=4

It's the same thing, but with more features.

Smitty 05-02-2007 12:56 AM

Quote:

Originally Posted by ValorduX (Post 1239278)
Yeah. And no it doesn't work. But try this one out:
https://vborg.vbsupport.ru/showthrea...=131568&page=4

It's the same thing, but with more features.

Thanks! Looks valuable!


All times are GMT. The time now is 01:44 AM.

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.01260 seconds
  • Memory Usage 1,744KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (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