The problem is badly coded reg_expression.
// [align=?]Text[/align]
$s = preg_replace("/\[align=(left|right|center)\](.*?)\[\/align\]/i", "<div align='\\1'>\\2</div>", $s);
// [align=(center|left|right|justify)]text[/align]
$s = preg_replace("/\[align=([a-zA-Z]+)\]((\s|.)+?)\[\/align\]/i","<div style=\"text-align:\\1\">\\2</div>", $s);
// [left]Left[/left]
$s = preg_replace("/\[left\]((\s|.)+?)\[\/left\]/", "<div align=left>\\1</div>", $s);
$s = preg_replace("/\[LEFT\]((\s|.)+?)\[\/LEFT\]/", "<div align=left>\\1</div>", $s);
// [right]Right[/right]
$s = preg_replace("/\[right\]((\s|.)+?)\[\/right\]/", "<div align=right>\\1</div>", $s);
$s = preg_replace("/\[RIGHT\]((\s|.)+?)\[\/RIGHT\]/", "<div align=right>\\1</div>", $s);
// Center
$s = preg_replace("/\[center\]((\s|.)+?)\[\/center\]/", "<center>\\1</center>", $s);
$s = preg_replace("/\[CENTER\]((\s|.)+?)\[\/CENTER\]/", "<center>\\1</center>", $s);
// [align=?]Text[/align]
$s = preg_replace("#\[align=(left|center|right|justify)\](.*?)\[/align\]#si ", "<div style=\"text-align: $1;\">$2</div>", $s);
"shadows, post: 66941, member: 20311":
regex expression is faster on load + that's a very bad practice where you will need to repeat 3 times same thing for right and left and center side which will load 3-time queries if someone uses it in post.
"spiritblue, post: 66942, member: 401":
no, considering the tag is already defined i do not have to do the other two
"serph, post: 66944, member: 1398":
[USER=20311]@shadows[/USER] i put that in the description and i get this (btw i like the pun lol )
[ATTACH]5111[/ATTACH]
still no error just posts it
No users online
Torrents
Members
Online