Jump to content

converting a url into a link on basic forum


ukscotth

Recommended Posts

Hi,

 

Im running a basic forum on a social networking site and was wandering if instead of the users having to put [ URL ][ /URL ] around there url's to make them links there was away to just automatically make links when people type http://xxx.xxxxxx.xxx

 

Just like it did then.

 

I guess it would be something to do with the REPLACE command but Im not too good at all this, can anyone help plzz ?

This is generally done using regular expressions to look at the content and match valid URLs.

 

This tends to be slow compared to using tags since ereg/preg functions are, by their very nature, slow. Better to keep with the tagging system and start making use of, say, FCKEditor or TinyMCE to make posting easier.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.