Hook Location: parse_templates
Plugin PHP Code:
PHP Code:
if ($vbulletin->options['mod_on_off'] AND (THIS_SCRIPT=='showthread' OR THIS_SCRIPT=='showpost')){
$location = '$template_hook[postbit_userinfo_right_after_posts]';
$vbulletin->templatecache['postbit_legacy'] = str_replace($location,$location.fetch_template('postbit_credits'),$vbulletin->templatecache['postbit_legacy']);
$vbulletin->templatecache['postbit_first'] = str_replace($location,$location.fetch_template('postbit_credits'),$vbulletin->templatecache['postbit_first']);
$vbulletin->templatecache['postbit'] = str_replace($location,$location.fetch_template('postbit_credits'),$vbulletin->templatecache['postbit']);
}
Temp:
postbit_credits:
Code:
<if condition="$bbuserinfo[userid]">
<div class="postbit_field">
<span class="postbit_text">Credits:</span>
$post[credits] (<a href="credit_system.php?$session[sessionurl]do=maincreditsystem"><span class="postbit_text">$vbphrase[credit_tranfer]
<span></a>)
</div>
</if>
i want show temp
postbit_credits in showthread