Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

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
  #32  
Old 08-09-2005, 06:45 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@Boofo
You can give this a try:

Hook: postbit_display_start
PHP Code:
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']
Reply With Quote
  #33  
Old 08-09-2005, 06:57 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works like a charm! See the attached pic.

What wouod you suggest to make it stand out further? I have no idea how to do what you suggested about the flag or css.
Reply With Quote
  #34  
Old 08-09-2005, 07:06 PM
Martin Martin is offline
 
Join Date: Jan 2002
Location: Honolulu
Posts: 131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo
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".

Just a thought.
Reply With Quote
  #35  
Old 08-09-2005, 07:56 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Martin
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?
Reply With Quote
  #36  
Old 08-09-2005, 07:57 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Kirby, how would I go about changing the css or whatever to make the post stand out?

And is there a way to make the icon different than the default for this (like the warning sign)?
Reply With Quote
  #37  
Old 08-09-2005, 08:09 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

$bgclass='classname';

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*
Reply With Quote
  #38  
Old 08-09-2005, 08:15 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KirbyDE
$bgclass='classname';

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?
Reply With Quote
  #39  
Old 08-09-2005, 08:28 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Then he might just try to trick the Filter ... but of course this would be possible.
You'd have to make the check in build_new_post()

I did it in the Datamanager to also cover editing.
Reply With Quote
  #40  
Old 08-09-2005, 08:32 PM
Martin Martin is offline
 
Join Date: Jan 2002
Location: Honolulu
Posts: 131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Haven't tried it yet, I'm too busy with support stuff right now. Hell, my test board are still on RC1.

Thanks Kirby. I will play with it tonight when I have time
Reply With Quote
  #41  
Old 08-09-2005, 08:36 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KirbyDE
Then he might just try to trick the Filter ... but of course this would be possible.
You'd have to make the check in build_new_post()

I did it in the Datamanager to also cover editing.
Ok, I'll take your word for it. If you think it is fine as is, I'm good to go.

Are you gonna add the code you posted for me to try to your Mod? There are others I'm sure that could use it.
Reply With Quote
Reply


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 09:11 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06018 seconds
  • Memory Usage 2,321KB
  • 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_php
  • (4)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
  • (4)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