ok i've enhanced this code for the benefit of sites with multiple stylesets (conflicting colours)
1. Open includes/functions_bbcodeparse.php:
Find:
PHP Code:
$bbcode = str_replace(array('>|||)', '<|||)', '"|||)'), array('>)', '<)','")'), $bbcode);
} // end smilies
UNDERNEATH, ADD:
PHP Code:
// /me Hack
global $post;
$bbcode = preg_replace('#^/me (.*)$#im', "<span class=\"highlight\">* $post[username] \\1</span>", $bbcode);
// /me Hack
2. Open newreply.php:
Find:
PHP Code:
$pagetext = trim(strip_quotes($pagetext));
UNDERNEATH, ADD:
PHP Code:
// /me Hack
$pagetext = preg_replace('#^/me(.*)$#im', "* $originalposter\\1", $pagetext);
// /me Hack
Done and you also maintain XHTML compliancy