![]() |
User-Selectable Optional Language Replacement Censor
User-Selectable Optional Language Replacement Censor by 006
What this hack does: This will give your users the option whether or not they want to have certain words censored or not. Also instead of the standard *** for censored words, this lets you substitute different words that will be used to replace words. For example, if the user has language filter turned on, and the word "dog" is censored, and you have chosen to have the word "cat" be used as a replacement, then this user will see the word "cat" in every post where the word "dog" is used. If the user does not choose to enable censoring, they will see the word "dog." (No use censoring that word lol, it's just for the example) ;) Benefits of this hack: People will no longer try to cheat to get their words in by typing "[b][/b]" in the middle of certain censored words to fool the word filter. If they want to see all words, they choose to not use the censor and are happy. If they are offended by certain words, they can use the censor and be happy. Everybody wins. :pirate: User-Selectable Optional Language Replacement Censor by 006 INSTALLATION TIME: About 20 - 30 minutes. (6 steps, 4 file edits, 3 template edits, and 1 query) It has been tested and works fine in 2.2.9 Any questions? Feel free to ask in this thread. ;) If you use this hack, please click "INSTALL." Thanks :) Updated install file to .php so it doesn't parse replacements. |
Oh this is so useful... some of my members are offended by the words i censored and some don't care and want to see them so great hack and I'll install it in a few.
/me clicks install |
Cool. Let me know how it goes for you.
:) |
Very cool;) I'll install this on locally later
|
Cool. I just updated the installation file so censoring is turned on by default for guests.
The only change is in functions.php Change PHP Code:
PHP Code:
|
this is excellent :) thanks 006 -- I'll check it out when I get home
|
Nice idea:)
Satan |
Thanks. Let me know how it goes everyone. :)
|
Ok a quick question:
admin/functions.php, we are told to add: Code:
// User-Selectable Optional Language Replacement Censor by 006 Also : registeradult template: Code:
<tr> Satan |
MY BAD! (Will change that now) :)
and.. There's not supposed to be. That just leaves censoring totally off for people who selected to turn it off. |
All times are GMT. The time now is 10:33 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|