Version: 1.0.0, by Andreas
Developer Last Online: Jan 2023
Version: 3.5.0 RC2
Rating:
Released: 08-08-2005
Last Update: 08-08-2005
Installs: 36
Uses Plugins
Is in Beta Stage
No support by the author.
<font size="3">Auto Moderation by Keywords</font> Description
This Hack allows you to automatically place Posts under moderation that contain certain Keywords.
Moderators, Supermoderators and Admins are excempted.
The Keywords can be specified in ACP / vBulletin Options / vBulletin Options / General Settings.
Details
1 Product XML with 2 plugins and 1 Setting
Attention
The description Text for the setting is wrong!
Keywords must be entered separated by Comma (eg. bad,badword,spam)
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
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?
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.
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.
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.