Quote:
Originally posted by Boofo
Any way to have it so it will process code before it AND after it?
|
I believe it already does
Testing....
[high]* Darth Cow
this part is bold
[/high]
Also, I've created another "add on" for this hack

. This code fixes the problems that occur when someone quotes a post with /me in it.
In newreply.php find:
PHP Code:
$pagetext=$postinfo[pagetext];
Below it add:
PHP Code:
// fix /me when quoted
$pagetext = preg_replace("#(^|\[.*\])/me (.*)$#im", "\\\1[color=\"#FF9C58\"]* $postinfo[username] \\\2[/color]", $pagetext);
// end fix /me