Results 1 to 10 of 10

Thread: Change text URL to hyperlink

  1. #1
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default Change text URL to hyperlink

    Hi,

    I quickly need to be able to change articles with dozens of text URLs to clickable hyperlinks in exactly the same way that this utility does here www.thephantomwriters.com/link-builder.pl

    I cant use this service effectively at work as its blocked as innapropriate content.

    I can use it, in a fashion, if I go through a proxy server like youhide.com but then it changes all URLs to the alternative "hidden" versions served by youhide, so at the moment I'm stuck taking work home with me.

    Does anyone know of a standalone script that can be downloaded and run from our own server/other web host?


    Thanks

    Bev

  2. #2
    Join Date
    Mar 2008
    Posts
    218
    Thanks
    7
    Thanked 19 Times in 19 Posts

    Default

    I am afraid I don't fully understand. What kind of document are we taking about? If it is a plain text file you can use alter. It's part of paladin tools.

  3. #3
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Quote Originally Posted by tfit View Post
    If it is a plain text file you can use alter. It's part of paladin tools.
    Yes, they are plain text files with lots of URLs scattered throughout, typed in full but without any html tags. Articles were someone has referred to a resource and typed, for example
    Code:
    "we have used the gallery script from www.dynamicdrive.com to achieve this effect..."
    I need to copy and paste the articles into web pages but editing all the URLs to include the <a href".."> HTML tags manually is too time consuming.
    The www.thephantomwriters.com/link-builder.pl utility turns the text URL into a clickable link automatically - it exactly the thing I need but I cant use that particular one from work.

    I dont know what you mean by using "alter" and I also dont know what "paladin tools" are.

    Please can you elaborate.

    thanks
    Last edited by Beverleyh; 09-02-2008 at 05:57 PM. Reason: more info re: text to appear in web page

  4. #4
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Well..

    there is this

    or

    This XSL attempt

    as well as using php/JS and almost anything else really.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  5. #5
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    I'm really sorry BLiZZaRD but I have no idea how to impliment that code into a similar format to the online utility. Thank you for replying though.

    How would I tie it into a form field so when the submit button is clicked, it pops out all converted at the other side?

    Bev

  6. #6
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    You're asking me? There is only one answer... Flash heh
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  7. #7
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    ha, ha - we all have a favourites ;-)

    I will have to start branching out into php - my coding is still quite limited.

  8. #8
    Join Date
    Mar 2008
    Posts
    218
    Thanks
    7
    Thanked 19 Times in 19 Posts

    Default

    Quote Originally Posted by Beverleyh View Post
    Yes, they are plain text files with lots of URLs scattered throughout, typed in full but without any html tags. Articles were someone has referred to a resource and typed, for example
    Code:
    "we have used the gallery script from www.dynamicdrive.com to achieve this effect..."
    I need to copy and paste the articles into web pages but editing all the URLs to include the <a href".."> HTML tags manually is too time consuming.
    The www.thephantomwriters.com/link-builder.pl utility turns the text URL into a clickable link automatically - it exactly the thing I need but I cant use that particular one from work.

    I dont know what you mean by using "alter" and I also dont know what "paladin tools" are.

    Please can you elaborate.

    thanks
    alter is a program from the paladin package. it's purpose is to change text strings, but since it is a dos program it will not work on all platforms

  9. #9
    Join Date
    Mar 2008
    Posts
    218
    Thanks
    7
    Thanked 19 Times in 19 Posts

    Default

    Quote Originally Posted by BLiZZaRD View Post
    Well..

    there is this

    or

    This XSL attempt

    as well as using php/JS and almost anything else really.
    The xsl solution seems nice, but what about the parser?

  10. #10
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Personally I wouldn't. I would convert the XLS to JS and leave it at that
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •