Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
Postbased content killer [3.6 compatible] Details »»
Postbased content killer [3.6 compatible]
Version: 1.0.1, by TMM-TT TMM-TT is offline
Developer Last Online: May 2019 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 04-18-2006 Last Update: 09-18-2006 Installs: 7
Uses Plugins
 
No support by the author.

We have been using the replacement variable manager and the censorship functions in vBulletin for a long time now, and it works fine as long as our users types the censored words as we have entered them in the managers. Sometimes our users gets smart and instead of typing in "censored word" they type "c e n s o r e d w o r d" and suddenly they have passed through the censoring system. This is very annoying and I still can't find a censorship manager that handles regular expressions.

This is why I wrote this plugin - to handle users that tries to avoid the censoring with different kind of characters, spaces, etc.

The content filter should be used with caution - it kills the content completely (without destroying the original of course), if it finds any matches of a filtered word - just like I wanted it from the start.

Unfortunately I have'nt done any admin interface yet (because I can't), to handle patterns, but this is a good start, and configuration is made from the plugin manager. Filtering can be handled in 3 different ways:
  • On match, the post will look empty
  • On match, the post will show an errormessage (randomized or static - quite ugly actually)
  • On match, posts are replaced with a vbphrase
You can also set usergroups that can see the message unfiltered, and which users (by userid) that will be excepted from the filter.


Details:
  • 1 product
  • 2 phrases
  • 2 plugins (postbit and quote)
Install it by import the product.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 04-19-2006, 03:13 PM
Urban Forums Urban Forums is offline
 
Join Date: Apr 2006
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*reserved

but i really dont understand it to the fullest... its pretty much replace text? how did u go about doing the code?
Reply With Quote
  #3  
Old 04-19-2006, 03:23 PM
TMM-TT's Avatar
TMM-TT TMM-TT is offline
 
Join Date: Jun 2005
Location: Sweden
Posts: 212
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It just replaces the $post[message] with another string if any matches are done, so admins/moderators can still see the original post.
Reply With Quote
  #4  
Old 04-19-2006, 04:41 PM
DementedMindz DementedMindz is offline
 
Join Date: Jan 2006
Posts: 1,474
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

why would your message be *reserved ???
Reply With Quote
  #5  
Old 05-18-2006, 07:08 AM
TMM-TT's Avatar
TMM-TT TMM-TT is offline
 
Join Date: Jun 2005
Location: Sweden
Posts: 212
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The default plugin also affect PM's. To avoid this, add the following code at the top of both content_killer_quote and content_killer_postbit:

PHP Code:
if (THIS_SCRIPT == 'private') {return;} 
Reply With Quote
  #6  
Old 06-28-2006, 07:46 PM
TMM-TT's Avatar
TMM-TT TMM-TT is offline
 
Join Date: Jun 2005
Location: Sweden
Posts: 212
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TMM-TT
The default plugin also affect PM's. To avoid this, add the following code at the top of both content_killer_quote and content_killer_postbit:

PHP Code:
if (THIS_SCRIPT == 'private') {return;} 
I just realized that using return; here is NOT a good option to stop filtering in PM. The reason is that the hook, after returning, is ignored by vBulletin. Soon, there will be a fix for this, and configuration will be moved to anoter place in admincp.
Reply With Quote
  #7  
Old 09-19-2006, 04:42 PM
TMM-TT's Avatar
TMM-TT TMM-TT is offline
 
Join Date: Jun 2005
Location: Sweden
Posts: 212
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The old "private"-thing has been fixed when I converted this hack to a "admin-configurable" interface.

Tested with 3.6
Reply With Quote
  #8  
Old 10-10-2006, 09:57 AM
TMM-TT's Avatar
TMM-TT TMM-TT is offline
 
Join Date: Jun 2005
Location: Sweden
Posts: 212
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Coming soon
  • Auto softdelete posts that contain a filtered word
  • Auto search and replace filtered words instead of filtering whole posts
  • Choose admingroups to protect from filtering
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 10:23 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.04550 seconds
  • Memory Usage 2,265KB
  • Queries Executed 23 (?)
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
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete