How would I display something only if the user is online?
something like
?Code:<xen:if is="{$visitor.online} == 1">Code for online users</xen:if>
Not if the person who is viewing it is online, but if the user is online?
<xen:if is="{$visitor.user_id}">Code</xen:if>
Thanks, but I kinda mean differently.If you mean "online" as in "logged in", then you can use
Code:<xen:if is="{$visitor.user_id}">Code</xen:if>
Thanks, but I kinda mean differently.
Sort of how the banners for online and offline work in that mod over at xenforo.com, where they show if a user is online or offline with ribbons?
<xen:if is="{xen:helper ismemberof, $user, x} AND {$user.is_admin} OR {$user.is_moderator}">
Try this, obviously replacing x with the group id#What is wrong with this?
<xen:if is="{xen:helper ismemberof, $user, x} AND ({$user.is_admin} OR {$user.is_moderator})">
<xen:if is="{xen:helper ismemberof, $user, x}
The style.php or css.php is loaded in the header somwhere,
you can wrap this around a conditional and load a different style id, I believe.