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

Function to automatically remove bbcode if a blacklisted URL is entered

Discussion in 'XenForo Pre-Sales Questions' started by jacknapier, Jun 2, 2011.

  1. jacknapier

    jacknapier New Member

    I'm interested if there's a way to blacklist a URL so that it is removed if someone attempts to put a blacklisted link in their signature, for example those dragon egg pictures. If not, would it be easy to manually plug in? I ask because the last thing I want to do is manually enforce such a rule.

    The Help Manual's spam section only specifies removing threads.

    edit: After further research, I came upon $pattern and $replace, would this work? Would it be easy to implement in the signature database?
  2. Mike

    Mike XenForo Developer Staff Member

    The censoring system is commonly used for this.
  3. jacknapier

    jacknapier New Member

    Censor doesn't come up in the help manual.

    e: Upon searching I've discovered some relevant information. Does it accept wildcards, like:


    To remove the entire line?
  4. Mike

    Mike XenForo Developer Staff Member

    Censoring is not covered in detail in the manual as it's relatively straight forward. You can see it in the options section of the admin CP (in a demo).

    It doesn't work exactly like you're suggesting there, as it won't "see" the BB code itself. You'd just match against "dragcave" and censor it. It doesn't necessarily remove the whole section, but the link won't function.
  5. jacknapier

    jacknapier New Member

    Ah, thank you.

Share This Page