Thank you Martok. I'm not sure that we will implement this. I tend to agree with your opinion on activity, but a few members have asked about this ability as opposed to hiding their online visibility.You can do this with a conditional statement. See this guide for more information.
Conditional Statements
As a note, I used to do this but now show members online to everyone. I thought it was better to show the site was active, guests expect to see who is online from other forum software.
That's not the right way to do it at all, especially using display: none. Also your code would only make it available to administrators, the OP wants to hide it from guests only.template sidebar_visitor_panel
<xen:if is="!{$visitor.is_admin}">
<style> .membersOnline {display:none} </style>
</xen:if>
put this code top
<xen:include template="ad_sidebar_below_visitor_panel" />
That's not the right way to do it at all, especially using display: none. Also your code would only make it available to administrators, the OP wants to hide it from guests only.
This is the correct code.
1. How can I show content just to logged in members and hide it from guests?
<xen:if is="{$visitor.user_id}">
This content will show to logged in members
</xen:if>
We use essential cookies to make this site work, and optional cookies to enhance your experience.