auto detect site link

Started on the old forum in July 2010 · view the original in the archive · old links redirect here

7 replies · 944 views · started 16 years ago · 1 min read

4 participants
something else Fellow · 2,296 posts #2
$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);
wap_king Developer · 126 posts #3

thanx am i suppose to parse it ?

subzero Super moderator Fellow · 3,954 posts #4

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... _______…

wap_king Developer · 126 posts #5

dude i aint using any lavalair dont what wrong with you

subzero Super moderator Fellow · 3,954 posts #6

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... _______…

GumSlone Administrator Principal · 1,690 posts #7
$str = preg_replace("/((ftp)|(http(s?))\:\/\/(([A-z0-9\-\:\;\.\@\/]+)))/is",'<a href="\\0">\\0</a>',$str);

Advertise your mobile site for FREE with AdTwirl

External image (may be gone)

wap_king Developer · 126 posts #8

it is not a lavalair period! its no ones script am coding a guestbook and i want the signers site links be clickable...thats all

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close