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

XF 1.3 Staff Online Block

Discussion in 'XenForo Questions and Support' started by DaveM, Aug 20, 2014.

  1. DaveM

    DaveM Well-Known Member

    How do I hide the User Title for the staff online as in admin showing here

  2. WoodiE

    WoodiE Well-Known Member

    Edit the sidebar_online_users template and remove this bit of code:

    <!-- block: sidebar_online_staff -->
    <xen:if hascontent="true">
        <div class="section staffOnline avatarList">
            <div class="secondaryContent">
                <h3><a href="{xen:link members, '', 'type=staff'}">{xen:phrase staff_online_now}</a></h3>
                        <xen:foreach loop="$onlineUsers.records" value="$user">
                            <xen:if is="{$user.is_staff}">
                                    <xen:avatar user="$user" size="s" img="true" />
                                    <xen:username user="$user" rich="true" />
                                    <div class="userTitle">{xen:helper userTitle, $user}</div>
    <!-- end block: sidebar_online_staff -->
  3. Martok

    Martok Well-Known Member

    That will remove the whole block which isn't what the OP is asking.

    To remove the user title, remove the line from the above that has userTitle in it.
  4. WoodiE

    WoodiE Well-Known Member

    DOH. I so read that wrong. Thanks for the correction.

    Remove this line from the same template and location:

    <div class="userTitle">{xen:helper userTitle, $user}</div>
  5. DaveM

    DaveM Well-Known Member

    Thanks, strange thing is on my other forum it does not show like this and I have not done any editing at all, I have no idea how I got it like this :p


Share This Page