Log in

View Full Version : Censor Phrases (i.e. Sentances or groups of words)


Dean C
06-18-2004, 10:00 PM
[Censor Phrases]

Information

vBulletin Version: 3.0.x


Author: Dean Clatworthy (http://www.deanclatworthy.com)


Copyright: 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.


Donations: 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.


Credits: 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:


if (substr($censorword, 0, 2) == '\\{')


Replace it with:

$censorword = str_replace('\+', ' ', $censorword);
if (substr($censorword, 0, 2) == '\\{')


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.

* SnowBot clicks install :)

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
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.