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 ?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.