Zzed
03-24-2002, 10:00 PM
This hack disables the censor feature for moderators and administrators and
allows them to candidly spit out profanity. :)
It is a very simple hack, and I am embarassed to call it one. But it had been requested by another member. So here it is. :)
Here is how to apply this hack.
In functions.php:
look for:
function censortext($text) {
global $enablecensor,$censorwords,$censorword,$censorchar ;
replace with:
function censortext($text) {
global $enablecensor,$censorwords,$censorword,$censorchar ,$bbuserinfo;
if(($bbuserinfo[usergroupid] == 5) or ($bbuserinfo[usergroupid] == 6) or ($bbuserinfo[usergroupid] == 7)){
$enablecensor = 0;
}
look for:
$bbcode=str_replace("{", "{", $bbcode); // stop people posting replacements in their posts
return censortext($bbcode);
Replace with:
$bbcode=str_replace("{", "{", $bbcode); // stop people posting replacements in their posts
return $bbcode;
Hope you guys like it.
allows them to candidly spit out profanity. :)
It is a very simple hack, and I am embarassed to call it one. But it had been requested by another member. So here it is. :)
Here is how to apply this hack.
In functions.php:
look for:
function censortext($text) {
global $enablecensor,$censorwords,$censorword,$censorchar ;
replace with:
function censortext($text) {
global $enablecensor,$censorwords,$censorword,$censorchar ,$bbuserinfo;
if(($bbuserinfo[usergroupid] == 5) or ($bbuserinfo[usergroupid] == 6) or ($bbuserinfo[usergroupid] == 7)){
$enablecensor = 0;
}
look for:
$bbcode=str_replace("{", "{", $bbcode); // stop people posting replacements in their posts
return censortext($bbcode);
Replace with:
$bbcode=str_replace("{", "{", $bbcode); // stop people posting replacements in their posts
return $bbcode;
Hope you guys like it.