ukscotth Posted December 1, 2008 Share Posted December 1, 2008 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 https://forums.phpfreaks.com/topic/135067-converting-a-url-into-a-link-on-basic-forum/ Share on other sites More sharing options...
awpti Posted December 1, 2008 Share Posted December 1, 2008 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 https://forums.phpfreaks.com/topic/135067-converting-a-url-into-a-link-on-basic-forum/#findComment-703503 Share on other sites More sharing options...
ukscotth Posted December 1, 2008 Author Share Posted December 1, 2008 oh right ok thnx, il have a look at those 2 things Link to comment https://forums.phpfreaks.com/topic/135067-converting-a-url-into-a-link-on-basic-forum/#findComment-703504 Share on other sites More sharing options...
ukscotth Posted December 1, 2008 Author Share Posted December 1, 2008 WOW that TinyMCE looks amazing, is it easy to setup for a newbie ? i have done a bit of php and sql im not completly new lol Link to comment https://forums.phpfreaks.com/topic/135067-converting-a-url-into-a-link-on-basic-forum/#findComment-703509 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.