MyBB Community Forums

Full Version: Censoring words *PROBLEM*
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi there,

I am censoring some words like lime and when somebody types in "pass" or "massive" it filters the lime part. Is there anyway to just filter lime not if it is an actual word.

So if lime is typed on its own it is filtered if it is in a word it isnt.
Thanks.
Changed in 1.2

To fix now, open inc/functions_post.php
Find
$message = preg_replace("#".$badword['badword']."#i", $badword['replacement'], $message);
and replace with
$message = preg_replace("#\b".$badword['badword']."\b#i", $badword['replacement'], $message);
Thank you for Helping Smile (Please Update The Installer * If isn't already Updated.)

Thanks AGAIN !! (Worked verry GOOD !)
It will be updated once 1.2 is ready.
Thank you.