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

Admin cp

Discussion in 'XenForo Questions and Support' started by eransss, Mar 29, 2013.

  1. eransss

    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 ?.
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    I would suggest hiding the "Who is online" block from the sidebar from all but the Admins group or all but your own account. You can do this with template conditionals.
     
    Jake Bunce and borbole like this.
  3. borbole

    borbole Well-Known Member

    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.
     
  4. eransss

    eransss Active Member

    How to make it ?
     
  5. eransss

    eransss Active Member

    Can't we just add some code to here (image ) says guest =
    Members=
    ?
     

    Attached Files:

  6. Chris D

    Chris D XenForo Developer Staff Member

    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.
     
  7. eransss

    eransss Active Member

    Did it ,, but no changes
     

    Attached Files:

  8. Brogan

    Brogan XenForo Moderator Staff Member

    If you have changed the user group IDs, you can also use <xen:if is="{$visitor.is_admin}">
     
  9. eransss

    eransss Active Member

    Sorry ,, I didn't understand , do I need to add this to what I already did ?
     
  10. eransss

    eransss Active Member

    I also did revert template and nothing happened ,, hmm
     
  11. eransss

    eransss Active Member

    Any one can check it for me by going in the admin cp ?
     
  12. Brogan

    Brogan XenForo Moderator Staff Member

    Send me the login details and I will sort it.
     
  13. eransss

    eransss Active Member

    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 ?
     
  14. James

    James Well-Known Member

    You already have the code...
    <xen:if is="{$visitor.is_admin}">
    //
    </xen:if>
     
  15. eransss

    eransss Active Member

    Sorry , I didn't anderstand , I have the code but I still see th who is on line on the taiga chat not on the forum
     
  16. Dodgeboard

    Dodgeboard Well-Known Member

    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?
     
  17. Dodgeboard

    Dodgeboard Well-Known Member

    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.
     

Share This Page