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

bbcode open link in new tab

Discussion in 'General XenForo Discussion and Feedback' started by Morgain, Dec 23, 2012.

  1. Morgain

    Morgain Well-Known Member

    To make info and guide pages it's often helpful to make links open in a new tab. Then my reader can go on following the guide, and do as instructed in 2 separate pages.

    Of course we can keep telling them to open another tab/ page but so much more elegant (and foolproof) to make the link do it,

    What chance could there be of adding a link button to do this to the bbcode editor?
  2. Mr. Goodie2Shoes

    Mr. Goodie2Shoes Well-Known Member

    A simple code edit can do the trick... and another way is to use a 'shortened' version of the link, which xenforo will automatically render to show it on a new tab/window.
  3. Morgain

    Morgain Well-Known Member

    The XF automatic action on a 'shortened' link sounds promising. What do you mean a 'shortened' link?
  4. Mr. Goodie2Shoes

    Mr. Goodie2Shoes Well-Known Member

    what I meant is shorten the help url with bit.ly and use it to link the resource... XenForo will use the link as an external link, thus adding the 'target="_blank"' attribute ;)
    Morgain likes this.
  5. Chris D

    Chris D XenForo Developer Staff Member

    It may also be worth speaking to cclaerhout (C├ędric) as he recently released some improvements to the URL BBCode that allows you to add a "title" attribute to URLs.

    He may be willing to explore adding a target attribute also. Seems like a logical progression.
    Breixo, Morgain and Mr. Goodie2Shoes like this.

Share This Page