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

Lack of Interest No censor action on URLs

Discussion in 'Closed Suggestions' started by giorgino, Mar 8, 2011.

  1. giorgino

    giorgino Well-Known Member

    I use massive censor function for many significative words like XenForo

    Posting an URL in messagges, the result is http://www.mysite.com/XenForo/...

    Is it possible to immunize the URLs from censor action?
  2. Mike

    Mike XenForo Developer Staff Member

    Censoring in URLs is intentional - it's commonly done to block people from posting certain URLs.
  3. giorgino

    giorgino Well-Known Member

    Thank you Mike, is there a "tip" to disable it in URLs?
  4. giorgino

    giorgino Well-Known Member

  5. Mike

    Mike XenForo Developer Staff Member

    No, you will have to modify the code for that.
  6. giorgino

    giorgino Well-Known Member

    Thank you Mike :(
  7. giorgino

    giorgino Well-Known Member

    I use the censoring feature for correct/expand/capitalize common words like google=Google xenforo=XenForo xf=XenForo etc.
    Censoring is active in URL text also, so an URL like this: http://xenforo.com.... became http://XenForo.com... and sometimes this brake the URL.

    Is it possible to disable censoring function in URL text only?
  8. ragtek

    ragtek Guest

  9. giorgino

    giorgino Well-Known Member

    I love the features because increment the forum reading and SEO effect. But there are places where censor feature must be disabled for ensure correct forum operations.

    Ragtek just you! :whistle:
    Why not develop an add-on? :p
  10. ragtek

    ragtek Guest

    Because it's not possible:(

    The censor happens on output and you would need to edit ALL templates and remove {xen:string censor, from the template where you don't need this
  11. giorgino

    giorgino Well-Known Member

    Oooops... And an add-on cannot do this? I didn't know...
  12. ragtek

    ragtek Guest

    IMO no
  13. Brent W

    Brent W Well-Known Member

    There should be a separate option for censoring URLs. I don't really care for URLs to be broken on such loose censorship options.

    For example: http://wordpress.org/extend/plugins/wp-smushit/

    No reason that url should be censored as it does not meet the intended use of your censorship setup.
  14. Jeremy

    Jeremy Well-Known Member

    You could write your own censor function that can possibly determine if it is censoring URLs and such and then overriding the actual one through an event listener and doing:
    XenForo_Template_Helper_Core::$helperCallbacks['censor'] = array('Your_Addon''censorString');
    ragtek and Rob like this.
  15. Rob

    Rob Well-Known Member

    I would like to see HTML allowed in censor replacement text. This will allow for people to swap images in for bad words as well as replace words with links.

    Any ideas anyone? RagTek? KK?

Share This Page