begarzus wrote:
Step 1: Modify code in /components/com_fireboard/template/default/view.php by
Delete or comment out
//add notification that the message was filtered for bad words
if ($badwords == "true"
{
$msg_text = _COM_A_BADWORDS_NOTICE;
}
Modify
Old Code:
if ($fbConfig['badwords']) {
$badwords = Badword::filter($fb_message_txt, $my);
}
New Code:
if ($fbConfig['badwords']) {
$badwords = Badword::filter($fb_message_txt, $my);
if ($badwords) {
$fb_message_txt = Badword::flush($fb_message_txt, $my);
}
}
Step 2: Modify code in /components/com_fireboard/template/default/post.php by
Old Code:
if ($fbConfig['badwords']){
$badwords = Badword::filter($fb_message_txt, $my);
if ($badwords) {
$fb_message_txt = _COM_A_BADWORDS_NOTICE;
}
}
New Code:
if ($fbConfig['badwords']){
require_once ('components/com_badwords2/class.badwords2.php'
;
$badwords = Badword::filter($fb_message_txt, $my);
if ($badwords) {
$fb_message_txt = Badword::flush($fb_message_txt, $my);
}
}
I'm using the "default_red" template. Is there anything different I need to do versus what you wrote above which looks like was intended to be used with the "default" template?
Thanks.