Log in

View Full Version : The BEST Swear Word Modification Possible


BlackxRam
03-26-2004, 05:04 AM
This was a feature on MANY phpbb's back in the day in the form of an add-on or a general feature. I can't remember which.

However this is how it goes. You can set aside words with a swear filter just fine, but instead of only assigning a replacement text per letter you can assign the swear word to be replaced by its OWN word. For example.

If someone said the "f" word on a forum and it was censored out, that word would instead by RETYPED as "frick"

If someone typed the word "fag" and it was censored out it would be replaced by something like "girly-man" something like that. It could really make things funny if you have someone on the forums who tends to cuss alot and use obscenities.

Anyone here feel qualified to take this on? I would but i have no clue how to start.

base
03-26-2004, 03:08 PM
you could just use replacements for this i guess. take into account though that the replacements will happen all over the board, for example - thread titles, usernames etc etc

Stray
03-26-2004, 08:59 PM
phpbb still has this as a standard feature, it is very useful and it can be very funny

base
03-26-2004, 09:11 PM
this is still standard in vbulletin also.

Tigerdude
03-27-2004, 01:47 AM
this is still standard in vbulletin also.
How is this done?

base
03-27-2004, 01:56 PM
admin cp > styles & templates > replacement variable manager.

but like i said, i think it will parse the replaced text everywhere on your board, so be careful what words you choose to replace.

Tigerdude
03-27-2004, 10:45 PM
admin cp > styles & templates > replacement variable manager.

but like i said, i think it will parse the replaced text everywhere on your board, so be careful what words you choose to replace.Will this feature just search for a word and replace it with another when I run it or will it automatically always replace one word with another?

NTLDR
03-27-2004, 10:53 PM
It will replace all instances of that string, so if I wanted to replace other with test, another would become antest. These replacements will run through all the HTML just before its sent to thr browser.

BlackxRam
03-28-2004, 01:59 AM
HOLY CRAP!!!! I didnt know it would do that. LOL Ill get on this right away.

Is there a way for it to IGNORE VB CODE? Like my users by pass the swear filters and other things by putting an empty vbcode string inbetween the letters of the word.. so the flter doesnt pick it up.

NTLDR
03-28-2004, 04:00 PM
Not without modification to the Replacements system.

tjdrico
04-13-2004, 08:42 PM
Not without modification to the Replacements system.
Where does the replacement actually get done? I'd like the make the use of the replacements a User Profile option, so users may choose whether to be censored or not.

NTLDR
04-13-2004, 08:47 PM
In includes/functions.php within the process_replacement_vars(); function.

tjdrico
04-13-2004, 09:29 PM
Marvellous, all done, thanks.

mantra
05-31-2004, 11:50 PM
Strangely on our site its just filtering out CHAT with space. I am not sure where its set to banned that word but I dont know why its filtering it out.

Where is the option to see what words are filtered or banned in VB3? I removed something from 1 location but it didn't have word chat in filter.

please pm me if you can help.