Page 1 of 1

URL conversion into an active links

Posted: Thu Nov 03, 2005 8:10 am
by khaki_monster
hi guyz! new guy here...

how do I convert URL’s into an active links on a shoutbox like when a visitor’s in input something like “this is my website http://www.yahoo.comhttp://www.yahoo.com should become an active link ("similar to this post") that would popup in a new page. :roll:

tanx in advanced...

Posted: Thu Nov 03, 2005 8:48 am
by Jenk
You would need to parse the input and match the pattern with a regex, then replace the match with the <a href="www.somesite.com">www.somesite.com</a>

Posted: Thu Nov 03, 2005 9:26 am
by feyd
pull up the phpbb codebase. Find make_clickable() in bbcode.php (I think it's in there)

Posted: Sat Nov 05, 2005 1:53 am
by khaki_monster
can anyone show me some good example? :D