PDA

View Full Version : Censor phrases


Dean C
07-10-2003, 10:00 PM
Hi,

I can't take any credit for this modification whatsoever. It's all down to the kindess of Slynderdale from here at vBulletin.org.

What this mod does is allow you to censor a phrase or a sentance by placing in the censor box in 'vbulletin options' the two words like so:

word1+word2

So if you wanted to censor the phrase 'mist rocks' you would add mist+rocks to the list of censored words. Simple huh :)?

Ok here are the instructions:

In functions.php find:


while (list($key,$val)=each($censorword)) {
if ($val!="") {


Under it add:

$val = str_replace('+',' ',$val);

Find:


while (list($key,$val)=each($ctcensorword)) {
if ($val!="") {


Under it add:

$val = str_replace('+',' ',$val);

.................................................. ....................

Simple huh ;) Well all credit goes to Slynderdale!

Enjoy the modificication.

- miSt

Asso
07-11-2003, 01:30 PM
simple and useful, thanks miSt and thanks Slynderdale!

Mike11212
07-16-2003, 12:02 AM
i needed this hack
i have a few competitors who are spamming my members via private message this will come in handy.

Dean C
07-16-2003, 11:08 AM
Excellent - exactly what i use it for too :) ^^

- miSt

DILLIGAF
07-26-2003, 12:46 AM
Cool Hack!

/me clicks install