need bbc colour code function.
ex-[colour=red]RED[/colour]
Started on the old forum in February 2008 · view the original in the archive · old links redirect here
need bbc colour code function.
ex-[colour=red]RED[/colour]
$text = preg_replace("/\[color\=(.*?)\](.*?)\[\/color\]/i","<font color=\"\\1\">\\2</font>", $text);
$text = preg_replace("/\[color\=(.*?)\](.*?)\[\/color\]/i","<font color=\"\\1\">\\2</font>", $text);
thankz bro.
wots the bbcode for users? anyone know
Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!
$text = preg_replace("/[color=(.?)](.?)[/color]/i",", $text); well dont know if it will work, but div much better than font