Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. Site Bugs / Suggestions
  4. URLs in the message boards

URLs in the message boards

Scheduled Pinned Locked Moved Site Bugs / Suggestions
html
10 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Davide Pizzolato
    wrote on last edited by
    #1

    In the lounge there are many massages with links. Someone write the URL using the HTML tags; someone simply write the URL as plain text. In this second case, it would be nice if the parser could recognise the "http://" header of the word and add the proper HTML tag.

    M D T C 4 Replies Last reply
    0
    • D Davide Pizzolato

      In the lounge there are many massages with links. Someone write the URL using the HTML tags; someone simply write the URL as plain text. In this second case, it would be nice if the parser could recognise the "http://" header of the word and add the proper HTML tag.

      M Offline
      M Offline
      Michael P Butler
      wrote on last edited by
      #2

      I believe Chris is working on this, but as with all development other things keep getting in the way. Michael :-) Look, try and use your intelligence, man, even if you are a politician. - The Doctor

      1 Reply Last reply
      0
      • D Davide Pizzolato

        In the lounge there are many massages with links. Someone write the URL using the HTML tags; someone simply write the URL as plain text. In this second case, it would be nice if the parser could recognise the "http://" header of the word and add the proper HTML tag.

        D Offline
        D Offline
        Dy
        wrote on last edited by
        #3

        That would be cool, especially if it could add a target="_blank", maybe as an option, or a default for non CP links.


        Dylan Kenneally London, UK

        1 Reply Last reply
        0
        • D Davide Pizzolato

          In the lounge there are many massages with links. Someone write the URL using the HTML tags; someone simply write the URL as plain text. In this second case, it would be nice if the parser could recognise the "http://" header of the word and add the proper HTML tag.

          T Offline
          T Offline
          Thomas Freudenberg
          wrote on last edited by
          #4

          I would like to see an additional button similar to Quote Selected Text, which prompts via JavaScript for a desired URL and a textual description, and inserts <a href="_URL_">_description_</a> [<a href="_URL_" target="_blank">^</a>] (Maybe the description field should be defaulted with Clickety ;) ) So Chris has not to implement a parser for the postings... Regards Thomas Sonork id: 100.10453 Thömmi


          Disclaimer:
          Because of heavy processing requirements, we are currently using some of your unused brain capacity for backup processing. Please ignore any hallucinations, voices or unusual dreams you may experience. Please avoid concentration-intensive tasks until further notice. Thank you.

          T 1 Reply Last reply
          0
          • T Thomas Freudenberg

            I would like to see an additional button similar to Quote Selected Text, which prompts via JavaScript for a desired URL and a textual description, and inserts <a href="_URL_">_description_</a> [<a href="_URL_" target="_blank">^</a>] (Maybe the description field should be defaulted with Clickety ;) ) So Chris has not to implement a parser for the postings... Regards Thomas Sonork id: 100.10453 Thömmi


            Disclaimer:
            Because of heavy processing requirements, we are currently using some of your unused brain capacity for backup processing. Please ignore any hallucinations, voices or unusual dreams you may experience. Please avoid concentration-intensive tasks until further notice. Thank you.

            T Offline
            T Offline
            Thomas Freudenberg
            wrote on last edited by
            #5

            Not tested, but just hacked in:

            function EnterHyperLink()
            {
            var txtURL = prompt("Enter URL","");
            if (txtURL == "")
            return;

            var TextArea = document.MessageForm.ContentText;
            var text = TextArea.value;
            
            if (document.MessageForm.Format && !document.MessageForm.Format.checked)
            {
            	text += txtURL;
            }
            else
            {
            	var txtDesc = prompt("Description","Clickety");
            	if (txtDesc == "")
            		return;
            
            	text += "<a href=\\"" + strURL + ">" + strDesc + "</a>";
            	text += " \[<a href=\\"" + strURL + " target=\\"\_blank\\">^</a>\] ";
            }
            
            TextArea.value = text;
            TextArea.focus();
            

            }

            Regards Thomas Sonork id: 100.10453 Thömmi


            Disclaimer:
            Because of heavy processing requirements, we are currently using some of your unused brain capacity for backup processing. Please ignore any hallucinations, voices or unusual dreams you may experience. Please avoid concentration-intensive tasks until further notice. Thank you.

            N 1 Reply Last reply
            0
            • T Thomas Freudenberg

              Not tested, but just hacked in:

              function EnterHyperLink()
              {
              var txtURL = prompt("Enter URL","");
              if (txtURL == "")
              return;

              var TextArea = document.MessageForm.ContentText;
              var text = TextArea.value;
              
              if (document.MessageForm.Format && !document.MessageForm.Format.checked)
              {
              	text += txtURL;
              }
              else
              {
              	var txtDesc = prompt("Description","Clickety");
              	if (txtDesc == "")
              		return;
              
              	text += "<a href=\\"" + strURL + ">" + strDesc + "</a>";
              	text += " \[<a href=\\"" + strURL + " target=\\"\_blank\\">^</a>\] ";
              }
              
              TextArea.value = text;
              TextArea.focus();
              

              }

              Regards Thomas Sonork id: 100.10453 Thömmi


              Disclaimer:
              Because of heavy processing requirements, we are currently using some of your unused brain capacity for backup processing. Please ignore any hallucinations, voices or unusual dreams you may experience. Please avoid concentration-intensive tasks until further notice. Thank you.

              N Offline
              N Offline
              Nish Nishant
              wrote on last edited by
              #6

              That's way cool! :-) Nish :cool:


              Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

              1 Reply Last reply
              0
              • D Davide Pizzolato

                In the lounge there are many massages with links. Someone write the URL using the HTML tags; someone simply write the URL as plain text. In this second case, it would be nice if the parser could recognise the "http://" header of the word and add the proper HTML tag.

                C Offline
                C Offline
                Chris Maunder
                wrote on last edited by
                #7

                I've added a new 'link' button - thanks to Jason Jystad. cheers, Chris Maunder

                D T 2 Replies Last reply
                0
                • C Chris Maunder

                  I've added a new 'link' button - thanks to Jason Jystad. cheers, Chris Maunder

                  D Offline
                  D Offline
                  Davide Pizzolato
                  wrote on last edited by
                  #8

                  excellent and clean solution :-D

                  1 Reply Last reply
                  0
                  • C Chris Maunder

                    I've added a new 'link' button - thanks to Jason Jystad. cheers, Chris Maunder

                    T Offline
                    T Offline
                    Thomas Freudenberg
                    wrote on last edited by
                    #9

                    Chris Maunder wrote: I've added a new 'link' button It even inserts target="_blank"... cool. Thanks Chris. Regards Thomas Sonork id: 100.10453 Thömmi


                    Disclaimer:
                    Because of heavy processing requirements, we are currently using some of your unused brain capacity for backup processing. Please ignore any hallucinations, voices or unusual dreams you may experience. Please avoid concentration-intensive tasks until further notice. Thank you.

                    C 1 Reply Last reply
                    0
                    • T Thomas Freudenberg

                      Chris Maunder wrote: I've added a new 'link' button It even inserts target="_blank"... cool. Thanks Chris. Regards Thomas Sonork id: 100.10453 Thömmi


                      Disclaimer:
                      Because of heavy processing requirements, we are currently using some of your unused brain capacity for backup processing. Please ignore any hallucinations, voices or unusual dreams you may experience. Please avoid concentration-intensive tasks until further notice. Thank you.

                      C Offline
                      C Offline
                      Chris Maunder
                      wrote on last edited by
                      #10

                      It adds target="_blank" only if the link is outside of CodeProject. cheers, Chris Maunder

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups