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

Discussion in 'Styling and Customization Questions' started by ForexTalk, May 19, 2015.

  1. ForexTalk

    ForexTalk Member


    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:

    Please guide me on this.

    Thank you.
  2. Andrej

    Andrej Well-Known Member

    In sidebar_visitor_panel template remove:
    <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>
    <xen:else />
    Add an exclamation point to the xen:if so it looks like:
    <xen:if is="!{$visitor.user_id}">
    Save the template.
    ForexTalk likes this.
  3. Amaury

    Amaury Well-Known Member

    @Andrej, wasn't this removed in XenForo 1.2?
  4. DEZero

    DEZero Well-Known Member

    Its the visitor panel @Maru, you could set it to display : none; if you don't want to edit all that
  5. Amaury

    Amaury Well-Known Member

    I realize that, but it's been commented out since XenForo 1.2 by default, I'm pretty sure (though the prefix of this thread is 1.4).
  6. ForexTalk

    ForexTalk Member

    I use XenForo 1.4.7 and it work after I remove the code. Thanks @Andrej
  7. jamalfree

    jamalfree Active Member

    simple way in extra.ccs
    add this
    .sidebar .visitorPanel { display: none !important;

Share This Page