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

XF 1.4 Remove "Signed in as..." sidebar block

#1
Hello,

After logged in there have a block appear first on the sidebar and display the logged-in member info. That block is absolutely unnecessary and I would like to remove it. Screenshot:

remove.jpg
Please guide me on this.

Thank you.
 

Andrej

Well-known member
#2
In sidebar_visitor_panel template remove:
Code:
<div class="section visitorPanel">
    <div class="secondaryContent">
   
        <xen:avatar user="$visitor" size="m" img="true" />
       
        <div class="visitorText">
            <h2>{xen:phrase signed_in_as_x_sidebar, 'name={xen:helper username, $visitor, 'NoOverlay'}'}</h2>       
            <div class="stats">
            <xen:hook name="sidebar_visitor_panel_stats">
                <dl class="pairsJustified"><dt>{xen:phrase messages}:</dt> <dd>{xen:number $visitor.message_count}</dd></dl>
                <dl class="pairsJustified"><dt>{xen:phrase likes}:</dt> <dd>{xen:number $visitor.like_count}</dd></dl>
                <dl class="pairsJustified"><dt>{xen:phrase points}:</dt> <dd>{xen:number $visitor.trophy_points}</dd></dl>
            </div>
            </xen:hook>
        </div>
       
    </div>
</div>

<xen:else />
Add an exclamation point to the xen:if so it looks like:
Code:
<xen:if is="!{$visitor.user_id}">
Save the template.