1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.2 Censoring and italics (maybe bold and underline too)

Discussion in 'XenForo Questions and Support' started by PVO_Dave, Feb 17, 2014.

  1. PVO_Dave

    PVO_Dave Active Member


    We've fallen foul of Googles adsense policies (adult themes), in trying to sort that out, I've noticed that when you do a site search for us, with the f word (no idea who's reading this :)) it shows up in threads when it's still spelt the same, but when the c is in italics for example.

    Is there an easy way of sorting this out?

    Thanks in advance.

  2. Brogan

    Brogan XenForo Moderator Staff Member

    I'm not sure I understand.

    Do you mean people are bypassing the censor by using bb code on individual characters in words?

    If so, there's no way of dealing what that other than via moderation.
  3. PVO_Dave

    PVO_Dave Active Member

    Yes, sorry Brogan, not wanting to sully this fine forum with expletives I didn't want to post it, but a clean example:

    I've censored Oranges to be replaced with Monkey

    People have then posted Oranges and it's posted without replacing the word
  4. Brogan

    Brogan XenForo Moderator Staff Member

    The only way to deal with that is via active moderation/warnings/etc.
  5. PVO_Dave

    PVO_Dave Active Member

    OK - Was kind of hoping for a clever way of dealing with it, thanks anyway.
  6. PVO_Dave

    PVO_Dave Active Member

    @Brogan - Can you think of any reason that doing a replace in MySQL would be an issue? Seems OK on the test site

    update xf_post set message = replace(message,'f[I]l[/I]ip','funk');
  7. Brogan

    Brogan XenForo Moderator Staff Member

    I can't see any issues with that - only that exact string will be replaced.
  8. PVO_Dave

    PVO_Dave Active Member

    Thanks Brogan - On the test site, it did seem to replace words within a sentence, so in the above example fliped became funked

    I'm trying to think of an exhaustive list now - loads to add, thanks for the reassurance.
  9. Brogan

    Brogan XenForo Moderator Staff Member

    Take a backup of the database first would be my only recommendation.

    Just in case...

Share This Page