$templater = vB_Template::create('ddd_mod_reputation_score'); $templater->register('threadbit_reputation_given', $threadbit_reputation_given); $templater->register('threadbit_reputation', $threadbit_reputation); $templatevalues['insert_reputation_var'] = $templater->render(); vB_Template::preRegister('threadbit', $templatevalues);
<vb:if condition="$threadbit_reputation_given"> <span style="float:{vb:stylevar right}">{vb:raw comments} <img src="{vb:stylevar imgdir_reputation}/reputation_pos.gif" border="0" /> {vb:raw threadbit_reputation.positive} <img src="{vb:stylevar imgdir_reputation}/reputation_balance.gif" border="0" /> {vb:raw threadbit_reputation.neutral} <img src="{vb:stylevar imgdir_reputation}/reputation_neg.gif" border="0" /> {vb:raw threadbit_reputation.negative}</span> </vb:if>
{vb:raw insert_reputation_var}