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

XF 1.4 How to create custom BB code to make a link as nofollow

Discussion in 'XenForo Questions and Support' started by webmastersun, May 26, 2015.

  1. webmastersun

    webmastersun Member


    Normally, we will use this code to make a text link in post content

    [ URL='Your_full_URL']text link[ /URL]

    But I want to create a custom BB code like my vB using

    for example:
    [URLnf='http_link']text link[/URLnf][/URL]

    when view source of webpage then it will automatic add rel="nofollow" to text link

    Are there any way to create a custom BB code like this?

    Thanks in advance
  2. Martok

    Martok Well-Known Member

    FYI links posted by all members except staff are already nofollow.
  3. AndyB

    AndyB Well-Known Member

  4. webmastersun

    webmastersun Member

    Hi AndyB,

    I don't want to use whitelist to do that, It will be done by manually by me, for example I have 10 links in a post content

    I want 5 links as nofollow and 5 links are dofollow then it can do that with BB code

    I have done with vB forum http://www.webmastersun.com but I'm new to Xenforo thus I am searching ways for this.

    No, it is for links that I want it is dofollow or nofollow, just add URL (for dofollow) and URLnf ( links will be nofollow)
    Last edited: May 26, 2015
  5. Mike

    Mike XenForo Developer Staff Member

Share This Page