Version: 1.00, by 007
Developer Last Online: Apr 2020
Version: 2.2.x
Rating:
Released: 05-30-2003
Last Update: Never
Installs: 12
No support by the author.
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
This modification may not be copied, reproduced or published elsewhere without author's permission.
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.
// 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
But there is nothing in the "} else {" statement...
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>