Andrej
Well-known member
I have the following code here (which is added to sidebar_online_users) template. What it should do is to display an user with user ID 3 regardless of his status (online/offline).
For some reason, it is not working. I asume it is because I am using wrong conditional, but if I try <xen:if is="{$visitor.user_id} == 3"> it doesn't work either. I suppose there must be something I forgot, so any help is highly appreciated.
Code:
<!-- block: sidebar_special_users -->
<div class="section staffOnline avatarList">
<div class="secondaryContent">
<h3>Sponsors</h3>
<ul>
<xen:if is="{$user.user_id} == 3">
<li>
<xen:avatar user="$user" size="s" img="true" />
<xen:username user="$user" rich="true" />
<div class="userTitle">{xen:helper userTitle, $user}</div>
</li>
</xen:if>
</ul>
</div>
</div>
<!-- end block: sidebar_special_users -->
For some reason, it is not working. I asume it is because I am using wrong conditional, but if I try <xen:if is="{$visitor.user_id} == 3"> it doesn't work either. I suppose there must be something I forgot, so any help is highly appreciated.