Blocking words such as facebook or yahoo

Is there a way that when someone says "Meet me on facebook" to edit facebook out?

Quote · 6 Mar 2010

http://www.boonex.com/trac/dolphin/ticket/596

You'll have to wait like the rest of us. Also, I didn't know the word Yahoo! was offensive.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 6 Mar 2010

It isn't offensive, I just don't want users deviating from my site by saying do you have yahoo messenger ect.

:D

I'm stingy

Quote · 6 Mar 2010

Otherwise you could just locate the place where Dolphin processes the post and does its filtering (not going to hunt for that just now), and include this in:

$sRemove = array('yahoo', 'facebook', 'foobar');
$sReplace = array('xxx', '***', '---');
$postText = str_ireplace($sRemove, $sReplace, $postText);

That's your simple three-line mod for doing this. Note that this is off the top of my head, and you will of course have to use the variables Dolphin uses there. Word filtering isn't too hard at all. If you don't want to specify replacements for each stopword, you can simply leave the second array blank, and they will all just be stripped away (leaving your post full of holes).

Quote · 6 Mar 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.