PHP Code:
<hookname>postbit_display_complete</hookname>
<phpcode><![CDATA[
if ($show['avatar'] != true && $this->registry->options['avatarenabled'] && !($this->registry->userinfo['userid'] > 0 AND !$this->registry->userinfo['showavatars'])) {
$search = '<img src="' . $post[avatarurl] . '" ' . $post[avwidth] . ' ' . $post[avheight] . 'alt="<phrase 1="' . $post[username] . '">' . $vbphrase[xs_avatar] . '</phrase>" border="0" />';
$replace = '<div id="drcltrav" style="background-color:'.$color.';"><span>'.strtoupper($drcltrav_lgth).'</span></div>';
$vbulletin->templatecache['postbit'] = str_replace($search, $replace, $vbulletin->templatecache['postbit']);
$show['avatar'] = true;
}]]></phpcode>
</plugin>
still outputs
Code:
<img src="" alt="DrCustUmz's Avatar" border="0" title="DrCustUmz's Avatar">
its like the only part of the code it understands is
$show['avatar'] = true;