• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Admin cp

eransss

Active member
#1
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 ?.
 

borbole

Well-known member
#3
I agree with Chris. That would be much easier than making a mod that will allow the admin to view the online list from within the acp.
 

Chris D

XenForo developer
Staff member
#6
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.
 

eransss

Active member
#13
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 ?
 

James

Well-known member
#14
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>
 

Dodgeboard

Well-known member
#16
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?
 

Dodgeboard

Well-known member
#17
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.