auto detect site link
Started on the old forum in July 2010 · view the original in the archive · old links redirect here
$text = str_replace("http://", "http:--", $text);
$text = preg_replace("/http:--(.*?) /i", "<a href=\"http--\\1\">http:--\\1</a> ", $text);
$text = str_replace("http:--", "http://", $text);
Add that to your bbcodes on your little script lavalair. Have fun.
Also you better thank somthing else ....
Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!
SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…
scotspaul edit ??
you still can add bbcodes to it lol
Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!
SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…
$str = preg_replace("/((ftp)|(http(s?))\:\/\/(([A-z0-9\-\:\;\.\@\/]+)))/is",'<a href="\\0">\\0</a>',$str);
Advertise your mobile site for FREE with AdTwirl