Plugin hook: postbit_display_start
Code:
Code:
ob_start();
$usergroupid = $post['usergroupid'];
$has_bg = array(6);
if (in_array($usergroupid, $has_bg)) {
echo '<div class="userinfo" style="background:url(images/ranks/postbit/'.$usergroupid.'.png);min-height: 350px;">';
} else {
echo '<div class="userinfo">';
}
$php_include = ob_get_contents();
ob_end_clean();
vB_Template::preRegister('postbit_legacy',array('postbit_background' => $php_include));
Then in postbit_legacy template, I replace the
Code:
<div class="userinfo">
with
Code:
{vb:raw postbit_background}