[dev] Agora to filter words in messages

duck duck at obala.net
Sat Apr 10 10:17:41 PDT 2004


Why not implement filtering words while displaying messages in forms.
In Messages getMessageArray:361 method (before converting emotions) we 
just add something like:

if ($GLOBALS['prefs']->getValue('message_fileter_words')) {
    $array['message_body'] = Text::filter($array['message_body'], 
AGORA_BASE . '/config/badwords.php', '***');
}

if the "filter" method can be extended to pass an array too, it would be 
better, so in the future flat display, it wont be necessary ti re-read 
the file for each message.

Duck



More information about the dev mailing list