C*nsor posts but not in specific category
-
I am using the C*nsor posts plugin on bbPress 1.0.1, works perfectly…
However, I want to disable the censor on one forum.
the function used in the plugin is:
function censor_post_text($post) {
if (!bb_get_option('censor_enable')) {return $post;}
$words = bb_get_option('censor_words');
if ($words[0]=='') return $post;
foreach ($words as $key => $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;
}anyone know how I would add something like – if not in form id 20 – to the above?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.