Anguz,
I got this to work beautifully on my site (it's something I've been trying to figure out for some time), but can you explain to me WHY it works? I'd been experimenting with putting the entire CensorText() function in an if statement that said
if $board != 14 {censortext}
but $board was not being recognized. How come when you added
// Uncensored board.
global $board;
if (!empty($board) && $board == 1)
return $text;
$board is suddenly recognized by the code? Did the simple fact of declaring it make it visible, whereas not declaring it makes it invisible?
Just curious - and thanks VERY MUCH for the code snippet.