PHP Code:
// /meid hack by Deaths (Apprentice) | [url]http://www.xgnews.org[/url]
// /me Hack
global $post;
if ('' == $post[userid]) {
global $reputation;
if ('' == $reputation[userid]) {
global $pm;
if ('' == $pm[fromuserid]) {
$meUserid = $bbuserinfo[userid];
} else {
$meUserid = $pm[fromuserid];
}
} else {
$meUserid = $reputation[userid];
}
} else {
$meUserid = $post[userid];
}
$bbcode = preg_replace('#^/me (.*)$#im', "$meUserid", $bbcode);
// /me Hack
// End /meid hack
Should be
PHP Code:
// /meid hack by Deaths (Apprentice) | http://www.xgnews.org
// /me Hack
global $post;
if ('' == $post[userid]) {
global $reputation;
if ('' == $reputation[userid]) {
global $pm;
if ('' == $pm[fromuserid]) {
$meUserid = $bbuserinfo[userid];
} else {
$meUserid = $pm[fromuserid];
}
} else {
$meUserid = $reputation[userid];
}
} else {
$meUserid = $post[userid];
}
$bbcode = preg_replace('#^/meid (.*)$#im',"<font color=\"red\">* $meUserid \\1 *</font>", $bbcode);
// /me Hack
// End /meid hack
As the poster username and posters id both had /me as the bbcode
Hope this fixes the problems for people
after sorting it i noticed it wouldn't print the rest of the message so i sorted that aswell