Brad Padgett
Well-known member
There's a tutorial I found on how to have ranks based on trophy points by AzzidReign.
It shows the code below:
While reading this tutorial I found out it was also possible to base ranks on the post count and also the number of likes a user has.
You would simply use:
Is this the correct code for the posts? If so, how should I place it for the amount of likes a user has.
Instead of using the amount of trophy points, I've been wanting to have a custom made rep bar for likes and also some stars for posts.
This is very educational for other members to see so if you don't mind pointing me towards the correct code to use I would appreciate it a lot. Many members can learn from this.
Thanks guys.
Regards,
TheXboxCloud
It shows the code below:
Code:
<xen:if is="{$user.trophy_points} >= 130">
<a href="{xen:link members/trophies, $user}" class="concealed OverlayTrigger"><img src="[path_to_image]" class="Tooltip" title="{xen:phrase trophy_points}: {$user.trophy_points}" /></a>
<xen:elseif is="{$user.trophy_points} >= 85" />
<a href="{xen:link members/trophies, $user}" class="concealed OverlayTrigger"><img src="[path_to_image]" class="Tooltip" title="{xen:phrase trophy_points}: {$user.trophy_points}" /></a>
<xen:elseif is="{$user.trophy_points} >= 50" />
<a href="{xen:link members/trophies, $user}" class="concealed OverlayTrigger"><img src="[path_to_image]" class="Tooltip" title="{xen:phrase trophy_points}: {$user.trophy_points}" /></a>
<xen:elseif is="{$user.trophy_points} >= 30" />
<a href="{xen:link members/trophies, $user}" class="concealed OverlayTrigger"><img src="[path_to_image]" class="Tooltip" title="{xen:phrase trophy_points}: {$user.trophy_points}" /></a>
<xen:elseif is="{$user.trophy_points} >= 15" />
<a href="{xen:link members/trophies, $user}" class="concealed OverlayTrigger"><img src="[path_to_image]" class="Tooltip" title="{xen:phrase trophy_points}: {$user.trophy_points}" /></a>
<xen:elseif is="{$user.trophy_points} >= 5" />
<a href="{xen:link members/trophies, $user}" class="concealed OverlayTrigger"><img src="[path_to_image]" class="Tooltip" title="{xen:phrase trophy_points}: {$user.trophy_points}" /></a>
<xen:elseif is="{$user.trophy_points} >= 0" />
<a href="{xen:link members/trophies, $user}" class="concealed OverlayTrigger"><img src="[path_to_image]" class="Tooltip" title="{xen:phrase trophy_points}: {$user.trophy_points}" /></a>
</xen:if>
While reading this tutorial I found out it was also possible to base ranks on the post count and also the number of likes a user has.
You would simply use:
Code:
{$user.posts}
Is this the correct code for the posts? If so, how should I place it for the amount of likes a user has.
Instead of using the amount of trophy points, I've been wanting to have a custom made rep bar for likes and also some stars for posts.
This is very educational for other members to see so if you don't mind pointing me towards the correct code to use I would appreciate it a lot. Many members can learn from this.
Thanks guys.
Regards,
TheXboxCloud