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.
if (!$post['visible'])
{
if (!$this->cache['automodkeywords'])
{
$this->cache['automodkeywords'] = explode(',', $this->registry->options['automodkeywords']);
}
if (str_replace($this->cache['automodkeywords'], '', strtolower($post['pagetext'])) != strtolower($post['pagetext']))
{
$this->highlight =& $this->cache['automodkeywords'];
$post['title'] = 'Automatically put under Moderation due to highlighted Keywords';
}
}
This should change the Post Title and highlight the Words.
To make it stand out further, you could overwrite the CSS Class here too, or set a $show Flag to check in postbit, or ...
@Martin
Brining Postcount into play is easy, just change the condition in the _presave Hooks to check $vbulletin->userinfo['posts']
I never thought to use it as a spam filter. Great idea!
What would tying it to the post count do? And what words would you suggest for filtering spam?
Well, most people who spam with crap like Free iPod, etc, register for that sole purpose.
If you added a check on post count, say less than 10 posts, it would auto-moderate the spammer's posts while allowing your real members to use words that might otherwise be filtered, like "free".
Well, most people who spam with crap like Free iPod, etc, register for that sole purpose.
If you added a check on post count, say less than 10 posts, it would auto-moderate the spammer's posts while allowing your real members to use words that might otherwise be filtered, like "free".
Just a thought.
But if you have newer members that don't post alot, wouldn't that catch them, too?
It sounds like an interesting idea. I'd like to see what you come up with and try it, if you don't mind. It would come in handy on my new site and I will be dealing with a controverial issue and I don't need any spammers messing things up.
Did you incorporate the post count code that Kirby gave you?
But I guess this only works for postbit_legacy.
You can show any Icon or whatever you want, just set a Flag and check this in Template postbit *rolleyes*
But I guess this only works for postbit_legacy.
You can show any Icon or whatever you want, just set a Flag and check this in Template postbit *rolleyes*
You and your "Flags".
Yes, I suppose I can do a conditional for the post icon.
I just thought of something, when Xenon does his Hide post except for staff Mod, he also check for post[visble]. Is there an AND we can use for this as not to interfere with that when it happens? And wouldn't an error message to the poster that his post is being moderated due to a word (or whatever) maybe keep him from reposting the message because he doesn't know why it isn't showing?