Link bb code

Started on the old forum in August 2009 · view the original in the archive · old links redirect here

8 replies · 463 views · started 17 years ago · 1 min read

5 participants
kei_ki7 Senior · 431 posts #2

..try using '-'

Did I help you? You can help me too Your donations will help me finance my studies.

morse Senior · 364 posts #3

try

$text = preg_replace("/\[url\=(.*?)\]/is","<a href=\"$1\">$1</a>",$text);

tinyurl.com/earnbymobile Easy earning for Indians

Alternative mobile advertising network .. Minimum 100 USD pay / NET15 pay cycle, Good Brand, Best targeting for Android goo.gl/6vub3

shad0w Developer · 119 posts #4

kei_ki7 wrote: ..try using '-'

Good idea. lol

morse wrote: $text = preg_replace("/[url=(.*?)]/is","<a href="$1">$1</a>",$text);

That is bb code for link in lavalair 😀 ... I have bb codes from lavalair 😀 ...

I want text starting like http://site.com to be 'transformed' into a link ...

whatmp3.name - search mp3 on mobile

morse Senior · 364 posts #5

its beyond my scope at the moment, i read it wrong, will look up if there is a solution

or probably you posted it wrong

Hi coders. I need a bb code that makes the text http://site.site a link.

tinyurl.com/earnbymobile Easy earning for Indians

Alternative mobile advertising network .. Minimum 100 USD pay / NET15 pay cycle, Good Brand, Best targeting for Android goo.gl/6vub3

subzero Super moderator Fellow · 3,954 posts #6
$text= eregi_replace('([[:space:]()[{}])(www.[-a-zA-Z0-9@:%_\+.~#?&//=]+)',
    '\\1<a href="http://\\2">\\2</a>', $text);

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

shad0w Developer · 119 posts #7

subzero wrote:

$text= eregi_replace('([[:space:]()[{}])(www.[-a-zA-Z0-9@:%_\+.~#?&//=]+)',
    '\\1<a href="http://\\2">\\2</a>', $text);

Not working ....

whatmp3.name - search mp3 on mobile

shad0w Developer · 119 posts #9

shad0w wrote: Hi coders. I need a bb code that makes the text http://site.site a link. I use this:

$text = ereg_replace("http://[A-Za-z0-9.-_]+[A-Za-z0-9./=?-_]","<a href=\"\\0\">\\0</a>", $text);

try dat.

It's not working ... 😀

whatmp3.name - search mp3 on mobile

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