1
xsell
Censored Word
  • 2009/8/27 8:09

  • xsell

  • Quite a regular

  • Posts: 245

  • Since: 2008/9/2 1


what is the functions XOOPS uses for Censoring bad words.. i need to adopte it for Custom module..

2
trabis
Re: Censored Word
  • 2009/8/27 12:29

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Look into class/module.textsanitizer.php
function &censorString(&$text)

You may do something like:
$myts =& MyTextSanitizer::getInstance();
$text "some bad words here";
$clean_text $myts->censorString($text);
echo 
$clean_text;


Did not tested, but since $text is passed by reference this should be the best way;
$myts =& MyTextSanitizer::getInstance();
$text "some bad words here";
$myts->censorString($text);
echo 
$text;


3
xsell
Re: Censored Word
  • 2009/8/27 16:35

  • xsell

  • Quite a regular

  • Posts: 245

  • Since: 2008/9/2 1


Thx trabis , Working On it Now.

Login

Who's Online

118 user(s) are online (75 user(s) are browsing Support Forums)


Members: 0


Guests: 118


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits