Try this: First change template
postbit_credits to:
Code:
<vb:if condition="$bbuserinfo[userid]">
<div class="postbit_field">
<span class="postbit_text">Credits:</span>
{vb:raw post.credits} (<a href="credit_system.php?{vb:raw session.sessionurl}do=maincreditsystem"><span class="postbit_text">{vb:rawphrase credit_tranfer}
<span></a>)
</div>
</vb:if>
Then, use hook location
postbit_display_complete instead of parse_templates, and change the code to this:
PHP Code:
if ($vbulletin->options['mod_on_off'] AND (THIS_SCRIPT=='showthread' OR THIS_SCRIPT=='showpost'))
{
$template = vB_Template::create('postbit_credits');
$template->register('post', $post);
$template_hook[postbit_userinfo_right_after_posts] .= $template->render();
unset($template);
}