Re: C*nsor posts but not in specific category
The problem is the way the plugin is written, the same filter is used for the title and such.
the post_text filter can also pass the post_id which you can use to lookup the forum the post is in but you’d have to modify more of the plugin to not use the post_id
you can try modifying this
add_filter('post_text', 'censor_post_text');
to
add_filter('post_text', 'censor_post_text',10,2);
so it then passes the post_id
Then change this
function censor_post_text($post) {
to this
function censor_post_text($post,$post_id=0) {
and then add this after the above
if (!empty($post_id)) {$temp=bb_get_post($post_id); if ($temp->forum_id==20) {return $post;}}