Quote:
Originally Posted by KustomizeR
How can i add the [ center ] [ /center ] tags ?
|
/include/globalfunctions.php (please back it up first)
find
PHP Code:
$s = preg_replace("/\[u\]((\s|.)+?)\[\/u\]/i", "<u>\\1</u>", $s);
add after
PHP Code:
// [center]Centered[/center]
$s = preg_replace("/\[center\]((\s|.)+?)\[\/center\]/ise", "<div align=\"center\">\\1</div>", $s);
let me know if that works :)
also not sure which one to use in "ise" it might be just "i" or "s*/i" so let me know which one worked