So I am going to show you how to disable curse words in BB code. Now normally users can use:
snippets to use as a work around in order to bypass your curse word filters. This tutorial will show you how to make it so they no longer can do that.
So what do we need to do? Well we need to bring up either a FTP client or Arvixe’s file manager. You are going to navigate to the following in your forum directory:
It looks like this:
You are going to look for this:
// Remove the uid from tags that have not been transformed into HTML
$message = str_replace(‘:’ . $this->bbcode_uid, ”, $message);
It should look like this and starts on line 68:
Once you find that add the following to the end.
$message = censor_text($message);
It should look like this when your finished:
Make sure that you put the code within the } bracket or it won’t work.
Now save and re-upload it. Allow it to overwrite your old one.
Now when users try to use BBCode to bypass your censor settings it won’t allow them to do so!
There ya have it! If you have questions please feel free to ask away!