OSTWigits - Badwords

Description:

BadWords Plugin allows third party developers an easy to use function to check for bad words in text.

Download:

Available from joomlacode.org here: http://joomlacode.org/gf/project/ostwigits/frs/?action=FrsReleaseBrowse&frs_package_id=2651

Function list:

string replaceBadword( $string ) - Accepts text as an input and returns the text with the bad words blocked out

bool checkBadword( $string ) - Accepts Text as an input and returns true if bad words are found, and false if not found.

Plugin has configurable items in the plugin manager.

Example:

To check for bad words call:

 plgSystemBadword::checkBadword($text);

This will return true if $text contains a bad word, false if not.

To censor words call:

 plgSystemBadword::replaceBadword($text);

This will return $text with the defined bad words replaced with defined replacement.
Last Updated on Tuesday, 24 July 2007 20:24
 
RocketTheme Joomla Templates