This is a modified post.php file we made to filter out the bad words in the subject as well as in the message field.
Because of the complexity of FireBoard, we changed the way the bad words filtering works. Instead of change the display of the bad words on the fly - we change the bad words during posting of the message. This means, the bad words are overwritten and written in the db.
This helps so none of the Joomla searches will find the bad words either.
Here is the downside to this method: If you add bad words to the bad words component after somebody used the bad word, these words will still show up. But for this instance, we left the regular "replacement-on-the-fly" method in the view.php part. But this replacement does only change the message field - not the subject line. The subject line change on-the-fly would require a bigger rewrite as this would affect modules, mambots, and the component.....
So if you have time to setup the badwords before you go live, this might help you.
This post.php file is a modified version from the default template in FireBoard 1.0.4.
It belongs here:
components/com_fireboard/template/default/post.php
We are using Bad Words 2 that can be found at
www.schoolastech.com.
Remember that you also have to update the paths in the view.php file to:
components/com_badwords2/class.badwords2.php
I hope this helps somebody out there.
Peter