Admin cp

eransss

Active member
First ,, happy Easter
I want to know if I can see who is on line on the admin cp
Wich member is on or guests
I removed the "who is on line "from the side bar cos I don't want it ,
But can I see who is on line on admin cp ?.
 
No, it's not that simple. It would require an add-on to pass the correct data to the template.

The easiest solution is to just show the information to admins only by wrapping the online users block in the sidebar in a conditional.

To do that, return the sidebar_online_users template back to normal. Then find:

Code:
<xen:if is="{$onlineUsers.records}">

Change it to:

Code:
<xen:if is="{$onlineUsers.records} AND {xen:helper ismemberof, $visitor, 3}">

That will ensure the block will only show to admins.
 
Ok so brogan helped me with this , Ty brogan .
Code:
<xen:if is="{$visitor.is_admin}">
<xen:include template="sidebar_online_users" />
</xen:if>
Now only admin can see members online now ,
So now I want to do the same in the taiga chat , I want member. To see who is in the chat but not who is online now .
Any one can help ?
 
Ok so brogan helped me with this , Ty brogan .
Code:
<xen:if is="{$visitor.is_admin}">
<xen:include template="sidebar_online_users" />
</xen:if>
Now only admin can see members online now ,
So now I want to do the same in the taiga chat , I want member. To see who is in the chat but not who is online now .
Any one can help ?
You already have the code...
<xen:if is="{$visitor.is_admin}">
//
</xen:if>
 
forum_list template

Find: <xen:hook name="dark_taigachat" />
Change to:

<xen:if is="{$visitor.is_admin}">
<xen:hook name="dark_taigachat" />
< /xen:if>

I'm guessing from instructions here. I don't have TaigaChat installed.


EDIT: Scratch that - that would disable the whole chatbox for all but admins. Isn't there a permissions for this in your chatbox permissions?
 
For future reference, his widget framework contained a separate staff block template so Staff Online was appearing twice. I deleted the contents of that template. Also, he wanted the Online Members block gone to members but not to admins, so I moved the conditional from Forumlist to sidebar_online_users wrapping around the Online Members portion of the template.
 
Top Bottom