Note!

Where we are it is now the weekend; so there might be a slight delay in our reply. Thanks for understanding!

WordCensor can kill Smilies

  • Resolved
    Monday, May 07 2012, 11:25 PM
    Posted by Markus
    1
    Hi,

    when i use, for example, : "http://=NOLINKS"; in WordCensor then Smilies would not displayed in Comments.

Accepted Answer

  • Selected answer for this question
    Tuesday, May 08 2012, 10:24 AM
    Posted by Jason Rey - #permalink
    1
    Hi Markus,

    I am able to replicate your problem and here is a quick fix for this:

    Go to file /components/com_komento/helpers/comment.php line 207

    replace the whole function from line 207 to 224 with this block of codes:

    static public function parseComment( $comment )
    {
    	$config = Komento::getConfig();
    
    	// word censoring
    	if( $config->get( 'filter_word' ) )
    	{
    		$comment = Komento::getHelper( 'comment' )->parseCensor( $comment );
    	}
    
    	// parseBBcode to HTML
    	$comment = Komento::getHelper( 'comment' )->parseBBCode( $comment );
    
    	// parse newline to br tags
    	$comment = nl2br( $comment );
    
    	return $comment;
    }
    

3 responses Add a reply

Your Response

Please login to reply

You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.

Register Now →

Please Login Forgot your password?