The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
User-Selectable Optional Language Replacement Censor Details »» | |||||||||||||||||||||||||||
User-Selectable Optional Language Replacement Censor
Developer Last Online: Apr 2020
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. irate: 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. Show Your Support
|
Comments |
#2
|
||||
|
||||
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 |
#3
|
||||
|
||||
Cool. Let me know how it goes for you.
|
#4
|
||||
|
||||
Very cool I'll install this on locally later
|
#5
|
||||
|
||||
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:
|
#6
|
||||
|
||||
this is excellent thanks 006 -- I'll check it out when I get home
|
#7
|
||||
|
||||
Nice idea
Satan |
#8
|
||||
|
||||
Thanks. Let me know how it goes everyone.
|
#9
|
||||
|
||||
Ok a quick question:
admin/functions.php, we are told to add: Code:
// User-Selectable Optional Language Replacement Censor by 006 if ($bbuserinfo[usecensor]!=0 or $bbuserinfo[userid]==0) { $bbcode=eregi_replace("wordtocensor","replacewith", $bbcode); $bbcode=eregi_replace("wordtocensor","replacewith", $bbcode); } else {} // User-Selectable Optional Language Replacement Censor by 006 Also : registeradult template: Code:
<tr> <td bgcolor="{firstaltcolor}"><normalfont><b>Pop up a box when you receive a Private Message?</b></normalfont><br> <smallfont>This will pop up a small warning box when you receive a Private Message asking whether you want to view the message.</smallfont></td> <td bgcolor="{firstaltcolor}"><normalfont> <input type="radio" name="pmpopup" value="yes"> yes <input type="radio" name="pmpopup" value="no" checked> no </normalfont></td> </tr> -----------------------FIND------------------------------------- and underneath it, add ---------------------------------ADD---------------------------- <tr> <td bgcolor="{secondaltcolor}"><normalfont><b>Pop up a box when you receive a Private Message?</b></normalfont><br> <smallfont>This will pop up a small warning box when you receive a Private Message asking whether you want to view the message.</smallfont></td> <td bgcolor="{secondaltcolor}"><normalfont> <input type="radio" name="usecensor" value="yes" checked> yes <input type="radio" name="usecensor" value="no"> no </normalfont></td> </tr> Satan |
#10
|
||||
|
||||
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. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|