Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

bbcode [url=] not working

edited May 2011 in Vanilla 2.0 - 2.8
Question about bbcode and the url tag

It looks to be working on preview but not on the actual post.

First, I went to conf/config.php and added $Configuration['Garden']['InputFormatter'] = 'BBCode'; which allowed for [ b] and all of that normal BBCode stuff.

Problem is [ url=whatever]title[ /url] doesn't work. (I'm putting spaces here so it doesn't link, but they're not in the actual post)

Works in preview, but when I view the post it looks like [ url=http://www.example.com]Title[/ url] (again, no spaces). Everything after the = and up to the last ] is linked. It looks like it's autolinking before parsing the BBCode, or doing both.

Any suggestions?
Tagged:

Comments

  • Options
    edited May 2011
    After posting that, on my site it looks almost exactly like the autolink does in the OP with the href added.

    Is there a way to turn off autolinking between [ url=] and [ /url] so it doesn't happen twice?

    eta...

    Yup, that's what's happening. Looking at the source it does this

    [url=<a href="http://gravatar.com]Gravatar.com[/url]" target="_blank" rel="nofollow">http://gravatar.com]Gravatar.com[/url]</a>

    When this is what's in the post
    [url=http://www.gravatar.com]Gravatar.com[/url]
  • Options
    Feeling a bit stupid here... it was doing this on old posts prior to the format getting set to BBCode. So they were Html in the database. A couple of queries took care of that and now it's working like it should.
Sign In or Register to comment.