Skip Navigation

buggy url linking code

Travel Forums System Talk buggy url linking code

1. Posted by myrrhlin (Budding Member 8 posts) 9y Star this if you like it!

Note: because your forum code also recognizes the same [ url] tag i'm talking about in b-log posts, i have edited this forum post: In every " [ url] " you see below, just delete the space between the bracket and the letters "url".

I've experienced weird and broken behavior trying to link URLs in my travel b-log posts. The code does not work as described in the help file, which says you can simply enclose a text url with the [ url] tag.

To elucidate the problem, I tried creating a post with the following content, then Preview'd it (and the Publish'd it to confirm):

1 [ url]http://www.flickr.com[/url]
2 [ url]http://www.flickr.com/[/url]
3 [ url]www.flickr.com[/url]
4 [ url]www.flickr.com/[/url]
5 [ url=http://www.flickr.com]http://www.flickr.com[/url]
6 [ url=http://www.flickr.com/]http://www.flickr.com/[/url]
7 [ url=http://www.flickr.com/]http://www.flickr.com[/url]
8 [ url=http://www.flickr.com]http://www.flickr.com/[/url]
9 [ url=www.flickr.com]www.flickr.com[/url]
a [ url=www.flickr.com/]www.flickr.com/[/url]
b [ url=www.flickr.com/]www.flickr.com[/url]
c [ url=www.flickr.com]www.flickr.com/[/url]

These should all produce functionally the same thing. But cases 1-4, where the url is not specified explicitly, are badly broken. It also seems a variable isn't being erased after each use because its content continues to lengthen until an actual link appears.

The work-around is just to always specify the link url explicitly.

Please fix, thank you!

[ Edit: Edited on May 27, 2008, at 1:58 AM by myrrhlin ]

2. Posted by Sam I Am (Admin 5588 posts) 9y Star this if you like it!

Well spotted!

Actually, this appears to have been working correctly in the forum, but only broken in the blogs based on a recent update. Here's the above code to verify working in forum:

1. http://www.flickr.com
2. http://www.flickr.com/
3. www.flickr.com
4. www.flickr.com/
5. http://www.flickr.com
6. http://www.flickr.com/
7. http://www.flickr.com
8. http://www.flickr.com/
9. www.flickr.com
a. www.flickr.com/
b. www.flickr.com
c. www.flickr.com/

I've copied/pasted the same to http://testing.travellerspoint.com/23/ to make sure this is now fixed in the blog as well.

3. Posted by visitor (Budding Member 6 posts) 9y Star this if you like it!

Sorry, just a test post here that I need to actually post to check. This is Sam by the way ;)

Test link text and how they look in the notification email!