Forum Moderators: coopster

Message Too Old, No Replies

url tags

how to put automatic url tags on urls

         

kenchix1

7:05 am on Jun 28, 2005 (gmt 0)

10+ Year Member



I'm interested to know how people do it, automatically put tags on urls on saved messages or text. I saw it on some forums that whenever you submitted a message with URLs the system automatically put the href tags when the message is displayed, but when you edit the message or text, no tags are displayed.

Thanks in advance.

Blackie

7:55 am on Jun 28, 2005 (gmt 0)

10+ Year Member



You simply check the text for presence of http:// or www. and add the "a href" tag that you need.

dreamcatcher

7:55 am on Jun 28, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi kenchix1,

Its accomplished using regular expressions. Probably preg_replace:

[uk2.php.net...]

dc