Bbcodes

Started on the old forum in February 2008 · view the original in the archive · old links redirect here

13 replies · 1,357 views · started 18 years ago · 1 min read

5 participants
djdevil89 Senior · 287 posts #1

Hey i want to add more bbcodes to my site but always when i try it i het an syntax error warning can anyone help me how to fix this or atlest tell me where to do it ?? i tryed in core.php btw its lavalair script thanks in advance

foreach ($_SERVER as $server => $value)
{
echo "$server is $value<br />";
}
Guest #2

How you do this?

djdevil89 Senior · 287 posts #4

i copyed a part from core.php and edited it like

 [img]$imgurl[/img]
foreach ($_SERVER as $server => $value)
{
echo "$server is $value<br />";
}
ori Lead · 512 posts #6

$text=preg_replace("/[font=(.?)](.?)[/font]/is","$2",$text); $text=preg_replace("/[img=(.*?)]/i","<img src="$1" alt=""/>",$text);

ori Lead · 512 posts #7

woops copied the font 1 too lol to do images in that 1 u jus type

djdevil89 Senior · 287 posts #8

woops copied the font 1 too lol to do images in that 1 u jus type

Cool thanx and how can i make it to get blinking text with bbcodes?

foreach ($_SERVER as $server => $value)
{
echo "$server is $value<br />";
}
ori Lead · 512 posts #9

think blinking text only works on html doctypes not xhtml/wml

metulj Super moderator Principal · 1,726 posts #10

think blinking text only works on html doctypes not xhtml/wml

$text = preg_replace("/\[blink\](.*?)\[\/blink\]/i","<blink>\\1</blink>", $text);

works 100% in XHTML External image (may be gone)

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

ori Lead · 512 posts #11

well it dnt work lol as text dnt blink

metulj Super moderator Principal · 1,726 posts #12

well it dnt work lol as text dnt blink

well it does works from normal browsers

tested with:

Opera PC(many versions tested) Mozilla FireFox I.E. Maxthon browser

Opera symbian NetFront v3.1, v3.2 and v3.3 jB5 browser default browser N70, N95, Nokia6600, Nokia7390, N73, Nokia6230, Nokia6234 and some more

didnt work with browsers like Opera mini UCWEB and some very old phones External image (may be gone)

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

djdevil89 Senior · 287 posts #13
$text = preg_replace("/\[blink\](.*?)\[\/blink\]/i","<blink>\\1</blink>", $text);

works 100% in XHTML External image (may be gone)

Tryd it but didnt work lol atleast i got it to work that my login php also incldes owner tools and all other staff tools well atleast one thing i managed to do

foreach ($_SERVER as $server => $value)
{
echo "$server is $value<br />";
}
ori Lead · 512 posts #14

thats easy... last thing i did to my script was a network block tool can block entire networks lol

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