if member is .. Syntax Help


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

<xen:if hascontent="true">
<ul class="ranks">
    <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>

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.

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

Can someone please guide.

Top Bottom