XF 1.5 Customs ccs for user ranks/ladder/title

indica

Member
New to xenforo. So far, so good. Very impressed. What I'm trying to figure out is an easy way to have custom css for each user rank/title/ladder thing. I've found some code and css that sets a different style https://xenforo.com/community/resources/user-ranks-in-css.430/ but this only seems to work on user groups. Like so:
<xen:if is="{$user.is_admin}">
<span class="userrank">Administrator</span>
</xen:if>

I would like the styles to change based on user number of posts or ladder/rank title.

Is there a template var in xenforo or something I could use (php) to do this easily? Something along the lines of:
<xen:if is="{$user.is_userPost >500}">
do blah
<span class="userTitle">Member Title</span>
</xen:if>

or similar?

Thanks.
 
Top Bottom