I'm using vb 2.2.6 and installed this hack.
When I use the /me thing in a post it works like a charm but when someone qoutes my post the original post says /me and not the original poster's name in color.
I added this php code as mentioned earlier in this thread:
PHP Code:
if ($dome) {
global $post,$originalposter;
$bbcode = preg_replace('#^/me (.*)$#im', "<font color=\"red\">* $post[username] \\1</font>", $bbcode);
if ($bbcodeid==6) {
$bbcode = preg_replace('#^/me (.*)$#im', "<font color=\"red\">* $originalposter \\1</font>", $bbcode);
}
}
anyone seeing what I'm missing?
edit:
just read I should not use that php code...
replaced it with this:
PHP Code:
if ($dome) {
global $post;
$bbcode = preg_replace('#^/me (.*)$#im', "<font color=\"red\">* $post[username] \\1</font>", $bbcode);
}
and added the line to newreply.php
but now I'm getting:
Quote:
[high]* Zoinks <br />
[/high]
|
edit2:
ok.. right now it's working fine. Only one question. When a /me tag is quoted the * username is not in color. Can that be fixed?