Bbcode In Funmobile

Started on the old forum in June 2007 · view the original in the archive · old links redirect here

7 replies · 847 views · started 19 years ago · 1 min read

3 participants
Guest #2

But are bb codes in funmobile 😀 addons:

$text = preg_replace("/\[email\=(.*?)\](.*?)\[\/email\]/is","<a href=\"mailto:$1\">$2</a>",$text);
$text = preg_replace("/\[img\=(.*?)\][\/img\]/is","<img src=\"$1\" alt="$1" />",$text);
$text = preg_replace("/\[color\=(.*?)\](.*?)\[\/color\]/is","<font color=\"$1\">$2</font>",$text);
Guest #3

4 staff jus change the code i.e. replace

[url=http://wapforum.org.uk] WapForum [/url] with [link=http://wapforum.org.uk] WapForum [/link]
phoenix90 Developer · 113 posts #4

Why do you want to do that ???

kiss Senior · 294 posts #5

Why do you want to do that ???

wml and xhtml enjoy beginners and suckers beginners special for LORDX,WMASTER and REGELE External image (may be gone) function getbbcode($text, $sid="") { $text=preg_replace("/[b](.?)[/b]/i","\1", $text); $text=preg_replace("/[i](.?)[/i]/i","\1", $text); $text=preg_replace("/[u](.?)[/u]/i","\1", $text); $text=preg_replace("/[big](.?)[/big]/i","\1", $text); $text=preg_replace("/[small](.?)[/small]/i","\1", $text); $text=preg_replace("/[strong](.?)[/strong]/i","\1", $text); $text=preg_replace("/[blink](.?)[/blink]/i","<blink>\1</blink>", $text); $text = preg_replace("/[color=(.?)](.?)[/color]/i","\2", $text); $text = preg_replace("/[div (.?)](.?)[/div]/i","\2", $text); $text = preg_replace("/[email=(.?)](.?)[/email]/is","<a href="mailto:\1">\2</a>", $text); $text = preg_replace("/[img=(.?)](.?)[/img]/is","<img src="\1" alt="\2"/>",$text); $text = preg_replace("/[link=(.?)](.?)[/link]/is","<a target="_top" href="\1">\2</a>", $text); $text = preg_replace("/[site=(.?)](.?)[/site]/is","<a href="http://rendevous.ro/wap/users?$site">\2</a>",$text); $text = preg_replace("/[user id=(.?)](.?)[/user id]/is","<a href="index.php?action=viewuser&who=$1&sid=$sid">\2</a>",$text);
$text = preg_replace("/[url=(.
?)](.?)[/url]/is","<a href="$1">$2</a>",$text); $text = preg_replace("/[topic=(.?)](.?)[/topic]/is","<a href="index.php?action=viewtpc&tid=$1&sid=$sid">$2</a>",$text); $text = preg_replace("/[club=(.?)](.?)[/club]/is","<a href="index.php?action=gocl&clid=$1&sid=$sid">$2</a>",$text); $text = preg_replace("/[blog=(.?)](.*?)[/blog]/is","<a href="index.php?action=viewblog&bid=$1&sid=$sid">$2</a>",$text); $text = ereg_replace("http://[A-Za-z0-9./=?-_]+","<a href="\"></a>", $text); if(substr_count($text,"[br/]")<=3){ $text = str_replace("[br/]"," ",$text); }

www.inbuzunar.mobi -Your mobile portal pocket

Guest #6

Romanian only: kisse, daca ii dadeam lui varumiu de 7 ani si ii spuneam in ce ordine sa le puna iti facea si el deci nu te considera mare WMASTER External image (may be gone), interesant exista <blink> si <font color in WML

$text=preg_replace("/\[blink\](.*?)\[\/blink\]/i","<blink>\\1</blink>", $text);
$text = preg_replace("/\[color\=(.*?)\](.*?)\[\/color\]/i","<font color=\"\\1\">\\2</font>", $text);
Guest #8

Fuck You Kiss!

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