1

urls in posts (Read 890 times)

Trent


Good Bad & The Monkey

    Eric, when I post a URL that is an obvious URL, it would be great if RA would automatically turn it into a link. If I am going to post something like this: http://www.run131.com/, it is typically because I think folks may want to look at it. Also, when I post a link and add formatting and then the linkifier code, it does not work. For example the link: http://www.run131.com/ should be hot.


    #2867

      Not that this is helpful, but you can use the anchor tags with straight html on the board. It would be handy if obvious links didn't need to have the HTML explicitly, though.

      Run to Win
      25 Marathons, 17 Ultras, 16 States (Full List)

      Trent


      Good Bad & The Monkey

      eric :)


        Eric, when I post a URL that is an obvious URL, it would be great if RA would automatically turn it into a link. If I am going to post something like this: http://www.run131.com/, it is typically because I think folks may want to look at it. Also, when I post a link and add formatting and then the linkifier code, it does not work. For example the link: http://www.run131.com/ should be hot.
        Trent, Haven't you brought this up before? Tongue You're right that the code should automatically create anchors for text that resemble URLs. As I look at it, although it may be somewhat inconvenient, the forum code is functional. It doesn't mean I won't fix/add it. It's just that I'm working on features that are missing from the site, like GPS uploading. As for the formating not being applied, there are two problems here. In your example, you used a pseudo anchor tag because you did not specify the href attribute. The HTML parser detected this and filled it with the inner HTML. You also placed a < u="" /> tag inside of the anchor for formating. The parser in this case will not fill in the href attribute because the inner HTML is not pure text. I haven't tried, but even if you specify the href, it probably won't work because... The second problem is more about the browser. For some reason, if you flip the order of the tags: < u="" />< a="" />http://www.run131.com/<><> it still will not work (at least in IE). It will work if you replaced u with i (http://www.run131.com/), which lead me to believe it is a browser bug.
        Trent


        Good Bad & The Monkey

          Thanks Eric. You may have a better memory than I do; I don't remember commenting on this one. In general, I would envision ANYTHING between < a="" /> tags to be a link, whether it be other formatting tags, images or just the url since that is how HTML and BBCode both work. Then again, the reason I add the < u="" /> tags is because I like to see all my links underlined, which does not always occur on runningahead Wink Anyhow, you are right. Minor details. Next to GPS, this is a gnat Big grin
            Anyhow, you are right. Minor details. Next to GPS, this is a gnat Big grin
            Eric, please excuse Trent - anything less than a 26 mile run leaves him with far too much time to wonder about minor details...we don't want anything to distract you from GPS Big grin

            Life is not measured by the number of breaths we take, but by the number of moments that take our breath away...(unkown)




            Go With The Flow
            Thyroid Support Group

              Then again, the reason I add the < u="" /> tags is because I like to see all my links underlined, which does not always occur on runningahead Wink
              Don't force your link underlining on me, you forum fascist! Wink

              How To Run a Marathon: Step 1 - start running. There is no Step 2.