vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Censor Phrases (i.e. Sentances or groups of words) (https://vborg.vbsupport.ru/showthread.php?t=66316)

Dean C 06-18-2004 10:00 PM

Censor Phrases (i.e. Sentances or groups of words)
 
[Censor Phrases]

Information
  • [high]vBulletin Version:[/high] 3.0.x

  • [high]Author:[/high] Dean Clatworthy

  • [high]Copyright:[/high] You may use this modification at your own risk. I cannot and will not be held responsible for any damage you may cause to your forums during installation or thereafter. You may not distribute this modification in whole or parts and anyone found doing so faces risk of prosecution. All my modifications are released at vBulletin.org and anyone found releasing them elsewhere also faces risk of prosecution. You may not translate this modification without my prior permission.

  • [high]Donations:[/high] I release my modifications for free. If you wish to donate please contact me and I will give you my details. All donations are graciously appreciated.

  • [high]Credits:[/high] I would like to thank the following people who contributed to the making of this modification.
    • Slynderdale - for the original idea for my vBulletin 2 version

What does this modification do?
In my experience of running a forum there is nothing more annoying than people who try to bypass the search filter. For example I'd use to have people come on my forums and spamming their urls. I'd censor the domain then they'd come back, simply insert a space into it and start all over again. With this modification I can censor series of words. For example if you wanted to censor the phrase: 'hello world' but not 'hello' and 'world' you'd simply put 'hello+world' in your list of censored words :)

Installation

1/

In functions.php find:

PHP Code:

if (substr($censorword02) == '\\{'

Replace it with:
PHP Code:

$censorword str_replace('\+'' '$censorword);
if (
substr($censorword02) == '\\{'

Please Click Install!
If you installed this modifcation please click the install button. It'll help you keep up to date with future releases and important bugfixes, security updates.

Dan 06-19-2004 08:31 PM

omg this is great I actually will use it :)

Merjawy 06-19-2004 10:25 PM

Now this is something worth while.. I have had issues with that in the past..

thank you I will sure install this

SnowBot 06-19-2004 11:14 PM

So simple but yet so effective :) Thanks for sharing.

[high]* SnowBot clicks install :)[/high]

Koutaru 06-20-2004 04:37 AM

Very nice! Thanks Dean :D

Dean C 06-21-2004 08:17 AM

You're welcome :)

TYorke 02-25-2005 03:44 PM

I wanted to ask how does this affect my forums if I were to censor the F word and someone types F-ING? My current setup blocks the f part but not the ing and so whatever I replace F with, it adds ING at the end :)

rootnik 12-10-2005 03:21 AM

Quote:

Originally Posted by TYorke
I wanted to ask how does this affect my forums if I were to censor the F word and someone types F-ING? My current setup blocks the f part but not the ing and so whatever I replace F with, it adds ING at the end :)

still works!

This should really be added to the standard code.


All times are GMT. The time now is 08:34 AM.

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.01050 seconds
  • Memory Usage 1,731KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete