XF 1.2 Member Online / Staff Online

Enguerran A

Well-known member
Hello,

I added some of my member as staff member to test something but I'm facing a problem.
My users are displayed both times, one in the Staff block from Xenporta and an other time in the online member list. Is there a way to remove the double nicknames?

http://puu.sh/4GBHB.png
 
Edit sidebar_online_users, find:
HTML:
                        <xen:if is="{$user.user_id}">
                            <a href="{xen:link members, $user}"
                                class="username{xen:if '!{$user.visible}', ' invisible'}{xen:if {$user.followed}, ' followed'}">{$user.username}</a><xen:if is="{$i} < {$onlineUsers.limit}">,</xen:if>
                        <xen:else />

Replace:
HTML:
                        <xen:if is="{$user.user_id} AND !{$user.is_staff}">
                            <a href="{xen:link members, $user}"
                                class="username{xen:if '!{$user.visible}', ' invisible'}{xen:if {$user.followed}, ' followed'}">{$user.username}</a><xen:if is="{$i} < {$onlineUsers.limit}">,</xen:if>
                        <xen:else />
 
Oops, misread that. here you go:
Replace it with this:
HTML:
<xen:if is="!{$user.is_staff}">
                        <xen:if is="{$user.user_id}">
                            <a href="{xen:link members, $user}"
                                class="username{xen:if '!{$user.visible}', ' invisible'}{xen:if {$user.followed}, ' followed'}">{$user.username}</a><xen:if is="{$i} < {$onlineUsers.limit}">,</xen:if>
                        <xen:else />

Right after <xen:else /> you'll find the guest HTML and another </xen:if>. You need to add a second </xen:if> after it.
 
Back
Top Bottom