yep.. put a variable like "$my_priv_variable=1;" in private message related scripts right before it calls the function bbcodeparse2 and use the same method: Add the variable to the global line of the function and return result accordingly like:
PHP Code:
if ($my_priv_variable!=1)
{
return censortext($bbcode);
}
else{ return $bbcode;}
Of course if you want to cancel it in both private messages and some forums, you need to combine 2 lines:
PHP Code:
if ($thread['forumid']!=X AND $thread['forumid']!=Y AND $my_priv_variable!=1)
{
return censortext($bbcode);
}
else{ return $bbcode;}