son et lumiere
Member
I'm trying to create a reputation bar to display on my forum, but to do so I need to check the total rep value of a user. Unfortunately it returns a null value.
Ideas?
This is the syntax, by the way:
It's currently only meant to show a blob for positive, negative and neutral rep. I will add the rest later, but for now I can't even get it to check the variable for a numeric value.
$user.xf_bdreputation_given is always NULL
Ideas?
This is the syntax, by the way:
Code:
<xen:if is="{$user.xf_bdreputation_given} > 0">
<div class="RepBarPositive"><img src="https://i.imgur.com/Rf60SHQ.png" alt="Mountain View" style="width:8px;height:11px;"></div>
<xen:elseif is="{$user.xf_bdreputation_given} < 0">
<div class="RepBarNegative"><img src="https://i.imgur.com/Uxa9TBg.png" alt="Mountain View" style="width:8px;height:11px;"></div>
<xen:else />
<div class="RepBarNeutral"><img src="http://i.imgur.com/V5bYENo.png" alt="Mountain View" style="width:8px;height:11px;"></div>
</xen:if>
It's currently only meant to show a blob for positive, negative and neutral rep. I will add the rest later, but for now I can't even get it to check the variable for a numeric value.
$user.xf_bdreputation_given is always NULL