Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
Auto-Moderation by Keywords Details »»
Auto-Moderation by Keywords
Version: 1.0.0, by Andreas Andreas is offline
Developer Last Online: Jan 2023 Show Printable Version Email this Page

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.

Comments
  #62  
Old 03-30-2006, 10:33 AM
Sal Collaziano Sal Collaziano is offline
 
Join Date: Dec 2001
Location: Royal Palm Beach, Florida
Posts: 232
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #63  
Old 06-29-2006, 08:20 PM
royouth royouth is offline
 
Join Date: Mar 2005
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this would be the perfect solution if it included the first post in the thread to also be moderated.
Reply With Quote
  #64  
Old 10-15-2006, 10:35 PM
tweakmonkey tweakmonkey is offline
 
Join Date: Jul 2006
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #65  
Old 10-16-2006, 06:43 AM
Wongod Wongod is offline
 
Join Date: Jan 2006
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #66  
Old 10-18-2006, 12:47 AM
tweakmonkey tweakmonkey is offline
 
Join Date: Jul 2006
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #67  
Old 01-04-2007, 06:48 PM
JPnyc JPnyc is offline
 
Join Date: May 2005
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This thing works a treat, well done Kirby. However coming up with a comprehensive list of keywords is a killer.
Reply With Quote
  #68  
Old 01-04-2007, 06:52 PM
JPnyc JPnyc is offline
 
Join Date: May 2005
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Edit: however the fix works. Well done.
Reply With Quote
  #69  
Old 03-28-2007, 07:53 AM
Smitty's Avatar
Smitty Smitty is offline
 
Join Date: Sep 2002
Location: Southern Ohio
Posts: 385
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has anyone tried this on vBulletin version 3.6.x?
Reply With Quote
  #70  
Old 05-01-2007, 09:24 PM
ValorduX ValorduX is offline
 
Join Date: Apr 2006
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #71  
Old 05-02-2007, 12:56 AM
Smitty's Avatar
Smitty Smitty is offline
 
Join Date: Sep 2002
Location: Southern Ohio
Posts: 385
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ValorduX View Post
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!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:22 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.04601 seconds
  • Memory Usage 2,303KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete