Hyperion
Active member
Hi.
I imported my forum from vBulletin 3.x to xenForo 1.0 (later updated to 1.1). The only problem I have had so far is properly setting up user groups so that the right rank text and rank image shows up on the thread pages. Here is my rank ladder:
I used the following code (inserted in message_user_info) to get those rank images to display on the thread pages:
The rank image correctly corresponding to the usergroup the member is in shows up on the thread pages, but there are two problems.
First, for some reason anyone who does not have the Administrator or Former Staff rank has the text rank SD Pathogen below her user name, even if she is in a different usergroup and the rank image clearly indicates that she is in a different usergroup, and even if I manually change her primary or secondary usergroup.
Second, if I go into a member's profile, make Registered the primary usergroup, and select one of the custom usergroups shown above as her secondary usergroup, the rank image no longer shows up for that member. I even tried changing the code shown above by adding another conditional for the Registered usergroup, but to no effect.
I am not sure what other information I should be including, so please let me know if there is anything else I should share.
Any idea what the problem may be?
I imported my forum from vBulletin 3.x to xenForo 1.0 (later updated to 1.1). The only problem I have had so far is properly setting up user groups so that the right rank text and rank image shows up on the thread pages. Here is my rank ladder:
I used the following code (inserted in message_user_info) to get those rank images to display on the thread pages:
Code:
<div align="center">
<!-- Start User Ranks -->
<xen:if is="{$user.is_admin}">
<span class="userrank"><img src="enlighten/ranks/stars_orange.gif"></span>
</xen:if>
<xen:if is="{$user.is_moderator} AND !{$user.is_admin}">
<span class="userrank"><img src="enlighten/ranks/stars_red.gif"></span>
</xen:if>
<xen:if is="{$user.user_group_id} == 27">
<span class="userrank"><img src="enlighten/ranks/stars_0.gif"></span>
</xen:if>
<xen:if is="{$user.user_group_id} == 15">
<span class="userrank"><img src="enlighten/ranks/stars_1.gif"></span>
</xen:if>
<xen:if is="{$user.user_group_id} == 16">
<span class="userrank"><img src="enlighten/ranks/stars_1.gif"></span>
</xen:if>
<xen:if is="{$user.user_group_id} == 17">
<span class="userrank"><img src="enlighten/ranks/stars_2.gif"></span>
</xen:if>
<xen:if is="{$user.user_group_id} == 18">
<span class="userrank"><img src="enlighten/ranks/stars_2.gif"></span>
</xen:if>
<xen:if is="{$user.user_group_id} == 19">
<span class="userrank"><img src="enlighten/ranks/stars_3.gif"></span>
</xen:if>
<xen:if is="{$user.user_group_id} == 20">
<span class="userrank"><img src="enlighten/ranks/stars_3.gif"></span>
</xen:if>
<xen:if is="{$user.user_group_id} == 21">
<span class="userrank"><img src="enlighten/ranks/stars_4.gif"></span>
</xen:if>
<xen:if is="{$user.user_group_id} == 22">
<span class="userrank"><img src="enlighten/ranks/stars_4.gif"></span>
</xen:if>
<xen:if is="{$user.user_group_id} == 23">
<span class="userrank"><img src="enlighten/ranks/stars_5.gif"></span>
</xen:if>
<xen:if is="{$user.user_group_id} == 30">
<span class="userrank"><img src="enlighten/ranks/stars_lavender.gif"></span>
</xen:if>
<!-- End User Ranks -->
</div>
First, for some reason anyone who does not have the Administrator or Former Staff rank has the text rank SD Pathogen below her user name, even if she is in a different usergroup and the rank image clearly indicates that she is in a different usergroup, and even if I manually change her primary or secondary usergroup.
Second, if I go into a member's profile, make Registered the primary usergroup, and select one of the custom usergroups shown above as her secondary usergroup, the rank image no longer shows up for that member. I even tried changing the code shown above by adding another conditional for the Registered usergroup, but to no effect.
I am not sure what other information I should be including, so please let me know if there is anything else I should share.
Any idea what the problem may be?