Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Bad Words Filter Add-on

dan39dan39 New
edited September 2006 in Vanilla 1.0 Help
Found an interesting script to replace offensive words on a php page.

I figure someone who knows scripting better than I do might be able to make a nice Vanilla add-on from it. Any takers?


  • Options
    I would think that the Transmogrifier extension could do this.
  • Options
    ahh. Good point. I just assumed that the Transmogrifier add-on was just for emoticons. Didn't realize it was that flexible.
  • Options
    edited July 2006
    From it's description, it even talks about replacing curse words.
  • Options
    There used to be a SwearFilter extension in the svn repository, but Mark seems to have decided not to add it to the Add-on repository.
  • Options
    I found the old swear filter (as well as the other repository extensions) if anybody is interested. Can easily convert it to a transmorgifier swear list if needed.
  • Options
    I'm trying to use the Transmogrifier extension for curse words - is there any easy way to make it case sensitive? It's blocking things lowercase but if there's any upper case in the word - it doesn't go through. I would like to block any uppercase/lowercase combination.
  • Options
    edited September 2006
    I think you need to change the line 45:
    $this->token[$counter] = '/'.preg_quote($value[0]).'/';
    for: $this->token[$counter] = '/'.preg_quote($value[0]).'/i';
This discussion has been closed.