Censor Posts

Enable censoring here:

/> Enable censor

Words to censor:

$word) { $words[$key] = '/\b('.preg_quote($word).')\b/i'; } $replace = array(); $numwords = sizeof($words); for($i = 0; $i < $numwords; $i++) { array_push($replace, "****"); } $clean_post = preg_replace($words, $replace, $post); return $clean_post; } function censor_check_tag($ttid = 0, $uid = 0, $tid = 0) { if (!bb_get_option('censor_enable')) {return $post;} $words = bb_get_option('censor_words'); if ($words[0]=='') return $post; $tag = bb_get_tag($ttid); $words = array_flip($words); if(isset($words[$tag->name])) bb_destroy_tag($ttid); return $ttid; } ?>