How to disable curse words in BB code for phpBB

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
if ($this->bbcode_uid)
$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!

Looking for quality phpBB Web Hosting? Look no further than Arvixe Web Hosting!

Tags: , , , , , , | Posted under phpBB | RSS 2.0

Author Spotlight

Keith Pottratz

Hello My Name is Keith Pottratz. I have been working with computers for over a decade. It's my personal hobby something that I love and enjoy doing. I went to school for Computer Science, and have spent many years self teaching my self various things. I have ton's of experience in HTML,CSS, PHPBB,CPanel,CMS software, blogging software and various other systems and enviroments. My favorite thing to do though is backend developing. I find it to be a growing and ever evolving beast and I love learning about it. I look forward to giving as much knowledge as I can and help.

Leave a Reply

Your email address will not be published. Required fields are marked *