dutchbb Well-known member Jun 25, 2012 #101 chrishill said: You could make this install automatically with TMS. Do you think you will be supporting it soon? Click to expand... I'm not a coder so.. maybe we can help you if you show what you did.
chrishill said: You could make this install automatically with TMS. Do you think you will be supporting it soon? Click to expand... I'm not a coder so.. maybe we can help you if you show what you did.
Sportsoutlaw Active member Apr 4, 2013 #102 Brogan said: <xen:if is="{xen:helper ismemberof, $user, 1}"></xen:if> That will apply to all members in user group 1, primary or secondary. Click to expand... I ended up having to use this conditional statement rather than the one that was in the instructions to add a usergroup other than admin or mod. Not sure why, but the one in the instructions simply wouldn't work for me.
Brogan said: <xen:if is="{xen:helper ismemberof, $user, 1}"></xen:if> That will apply to all members in user group 1, primary or secondary. Click to expand... I ended up having to use this conditional statement rather than the one that was in the instructions to add a usergroup other than admin or mod. Not sure why, but the one in the instructions simply wouldn't work for me.
I indica Member Nov 4, 2016 #103 I've done the edits but it appears this only works with user groups, not ranks/title ladder?
Brandon K Active member Mar 19, 2021 #104 Code: <!-- Start User Ranks --> <xen:if is="{$user.is_admin}"> <span class="userrank">Administrator</span> </xen:if> <xen:if is="{$user.is_moderator} AND !{$user.is_admin}"> <span class="userrank">Moderator</span> </xen:if> <xen:if is="{$user.user_group_id} == 5"> <span class="userrank">Your_custom_usergroup_name</span> </xen:if> <!-- End User Ranks --> How would one go about making this work in XF2.1+?
Code: <!-- Start User Ranks --> <xen:if is="{$user.is_admin}"> <span class="userrank">Administrator</span> </xen:if> <xen:if is="{$user.is_moderator} AND !{$user.is_admin}"> <span class="userrank">Moderator</span> </xen:if> <xen:if is="{$user.user_group_id} == 5"> <span class="userrank">Your_custom_usergroup_name</span> </xen:if> <!-- End User Ranks --> How would one go about making this work in XF2.1+?