Log in

View Full Version : Change text URL to hyperlink



Beverleyh
09-02-2008, 01:40 PM
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

tfit
09-02-2008, 05:37 PM
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.

Beverleyh
09-02-2008, 05:51 PM
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
"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

BLiZZaRD
09-02-2008, 06:11 PM
Well..

there is this (http://webscripts.softpedia.com/script/Modules/phpWebSite-Modules/Auto-Hyperlink-URLs-and-Emails-2651.html)

or

This XSL attempt (http://www.stylusstudio.com/xsllist/200305/post81170.html)

as well as using php/JS and almost anything else really.

Beverleyh
09-02-2008, 07:46 PM
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

BLiZZaRD
09-02-2008, 07:48 PM
You're asking me? There is only one answer... Flash heh :D

Beverleyh
09-02-2008, 07:55 PM
ha, ha - we all have a favourites ;-)

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

tfit
09-03-2008, 08:50 AM
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
"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

tfit
09-03-2008, 08:52 AM
Well..

there is this (http://webscripts.softpedia.com/script/Modules/phpWebSite-Modules/Auto-Hyperlink-URLs-and-Emails-2651.html)

or

This XSL attempt (http://www.stylusstudio.com/xsllist/200305/post81170.html)

as well as using php/JS and almost anything else really.

The xsl solution seems nice, but what about the parser?

BLiZZaRD
09-03-2008, 02:35 PM
Personally I wouldn't. I would convert the XLS to JS and leave it at that ;)