XF 2.0 Adding Rank in User Info

Legende

Member
Hi

I'm moving from vBulletin and would like to have Image Ranks for Users with certain Posts. Let's say a user has:

0-5 Posts = Image1
6-25 Posts = Image2
26-100 = Image3

This should be in the template message_macros. What would be the right conditional to display this image to users who have that amount of posts?

Regards
 
Ok got it ;) Thanks anyway

<xf:if is="{$user.message_count} > 1000">
1
<xf:elseif is="{$user.message_count} > 500" />
2
<xf:elseif is="{$user.message_count} > 250" />
3
<xf:else />
4
</xf:if>
 
Back
Top Bottom