PHP Code:
<if condition="$doesparticipate[karma]">
<a name="karma"></a>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td colspan="2" align="center" class="tcat">$vbphrase[userrating]</td>
</tr>
<tr><td class="alt2" align="right">$vbphrase[userrating_average]: </td>
<td class="alt1" align="left">$averating</td></tr><tr>
<td class="alt2" align="right">$vbphrase[userrating_totalvote]:</td>
<td class="alt1" align="left">$ratinginfo[totalvotes]</td></tr>
<if condition="$ratinginfo['totalvotes']"><tr><td class="alt2" align="right">$vbphrase[userrating_lastrated]:</td>
<td class="alt1" align="left">$ratinginfo[dateline]</td></tr></if>
<if condition="$hasvotedvote!=''"><tr><td class="alt1 smallfont" align="center" colspan="2">$vbphrase[karma_you_have_voted] $hasvotedvote</td></tr></if>
<if condition="$userrating['showform']">
<tr><td colspan="2" align="center" class="thead">$vbphrase[userrating_options]</td>
</tr>
<tr><td class="alt1" align="center" colspan="2">$ratingform</td></tr></if>
<tr><td class="alt2" align="center" colspan="2">
<a href="karma_stats.php">
<phrase 1="$vbphrase[karma_title]">$vbphrase[x_statistics]</phrase>
</a></td>
</tr>
<if condition="is_member_of($bbuserinfo, 6)">
<tr>
<td colspan="2" align="center" class="tcat"><a href="#top" onclick="return toggle_collapse('karma_details')" style="float:$stylevar[right]"><img alt="" border="0" id="collapseimg_karma_details" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_karma_details].gif" /></a>$vbphrase[userrating_detail]</td>
</tr>
<tr id=collapseobj_karma_details>
<td class="alt1" align="left" colspan="2">
$ratingdetail
</td>
</tr>
</if>
</table>
</if>