Oh, I see. Hmm. In that case, a little alteration is required:
PHP Code:
if (!function_exists('postbit_bg_injection')) {function postbit_bg_injection($subject)
{
global $bg_injection;
$group_bg_color = array();
$group_bg_color[6] = "#000000"; // Admins
$group_bg_color[5] = "#232323"; // Mods
$search = '<div class="postbody">';
$replace = '<div class="postbody"\'';
foreach ($group_bg_color AS $groupid => $bgcolor)
{
$replace .= '.((is_member_of($post,'.$groupid.'))?\' style="background-color:'.$bgcolor.'"\':\'\')';
}
$replace .= '.\'>';
$bg_injection = true;
return str_replace($search,$replace,$subject);
}}
if (!$bg_injection) {$vbulletin->templatecache['postbit_legacy'] = postbit_bg_injection($vbulletin->templatecache['postbit_legacy']);}