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

suggestions for allow BBCode inside the URL tag

Discussion in 'XenForo Development Discussions' started by Mutt, Mar 21, 2012.

  1. Mutt

    Mutt Well-Known Member

    I'd like to be able to use the [ url ] bbcode tag and allow other bbcodes inside it. right now the tags in the url are not being processed.

    I tired making a new bburl tag that allowed bbcodes inside but the urls are still being auto converted & breaking my bburl

    does anyone have a suggestion?

    FYI - if you are wondering why, I just uploaded this you code addon. and I would like people to be able to post urls like this

    [url="http://xenforo.com/community/members/[you]url[/you].[you]id[/you]/"]profile for [you]name[/you][/url]
    [url="http://xenforo.com/community/index.php?conversations/add&to=[you]url[/you]"]Start PC with [you]name[/you][/url]
    [url="http://xenforo.com/community/index.php?search/member&user_id=[you]id[/you]"]Content for [you]name[/you][/url]
    [url="http://www.infobyip.com/ip-[you]ip[/you].html"]IP search for [you]name[/you][/url]
  2. cclaerhout

    cclaerhout Well-Known Member

    I think creating a new URL bbcode as you started to do will be a lot easier. I've released a Picasa bbcode that avoids the auto url linking. There are two patches. Forget the second one, the first one is more efficient and easier to use. I can release a addon to correct url autolinking for some bbcodes (can be configurate via admin panel) OR automatically with all customised bbcodes created with the BB Code Manager (but takes 1 request in DB per page ; that's why I prefere the first solution). The auto url linking will be then disabled BUT only in content not in options:

    [new]http://www.website.ert[/new] => WORK
    [new=http://www.website.ert]CONTENT[/new] => DOESN'T WORK (well i can make it work for 1 url and no other option)
    If you want that addon, please wait a few days. I want to make it work in conversation too.
  3. Mutt

    Mutt Well-Known Member

    that would be fantastic. THANK YOU!! i'll wait for the addon. don't need it till april 1st anyway. :)
  4. cclaerhout

    cclaerhout Well-Known Member

Share This Page