Quote:
Originally Posted by Extremlym
Need a <br> code but in BBCode for forums.
[br][/br] doesn't work
pls help
|
Edit globals.php and add
Code:
$s = preg_replace("/\[br\]((\s|.)+?)\[\/br\]/i", "<br>\\1</br>", $s);
add under or above $s = preg_replace("/\[b\]((\s|.)+?)\[\/b\]/", "<b>\\1</b>", $s);
and usage is
[br]Some text[/br]