if member is .. Syntax Help

tafreehm

Well-known member
I tried to look it up here, but did not found possible solution.
I have members ranks code setup to display user rank ribbons, which looks like this

Code:
<xen:if hascontent="true">
<ul class="ranks">
<xen:contentcheck>
    <xen:if is="{xen:helper ismemberof, $user, 3}">
        <div class="admin"></div>
 
    <xen:elseif is="{xen:helper ismemberof, $user, 69}" />
        <div class="coadmin"></div>
 
    <xen:elseif is="{xen:helper ismemberof, $user, 90}" />
        <div class="manager"></div>
 
    <xen:elseif is="{xen:helper ismemberof, $user, 78}" />
        <div class="banned"></div>
 
    </xen:if>
</xen:contentcheck>
</ul>
</xen:if>

Now I wanna add two more ranks for two specific users. I know their userid/username. But I cannot seems to add any more if condition . I tried the following query but it ended up giving that ribbon to all users.

Code:
        <xen:if is="{$visitor.user_id} == 28240" />
        <div class="Designer"></div>

Can someone please guide.


Thanks
 
Back
Top Bottom