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

XF 1.4 Disable/move visitor panel AND free the space?

#1
Hi,

For some reason I lost track of how to do this. I need to use the full width of the boxed layout, but the visitor panel is in the way, forcing the images out of bounds. How do I move the visitor panel, or disable it, AND use the empty space created?

Right now I have a visitor panel in the nav bar, AND underneath. I don't need both.

c737b6d90e84add07be90d3970f9c08a.png

Thanks!

Andre
 
Last edited:
#5
I see, ok, will have to check tomorrow, I'm fried and going to bed for now. No idea where to look... When I find out, if I do, I will share here.

Cheers!
 

Deceptive

Active member
#7
I see, ok, will have to check tomorrow, I'm fried and going to bed for now. No idea where to look... When I find out, if I do, I will share here.

Cheers!
Okay, so I very quickly did this and by no means is this perfect. I got the following code from the sidebar_visitor_panel template:
Code:
<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>
I added the above code to the navigation_visitor_tab template. In the visitor_tab template I added the above code right after the following code:
Code:
<xen:if hascontent="true"><div class="muted"><xen:contentcheck>{xen:helper usertitle, $visitor}</xen:contentcheck></div></xen:if>
The result:
Code:
<div class="Menu JsOnly" id="AccountMenu">
            <div class="primaryContent menuHeader">
                <xen:avatar user="$visitor" size="m" class="NoOverlay plainImage" title="{xen:phrase view_your_profile}" />
           
                <h3><a href="{xen:link members, $visitor}" class="concealed" title="{xen:phrase view_your_profile}">{$visitor.username}</a></h3>
           
                <xen:if hascontent="true"><div class="muted"><xen:contentcheck>{xen:helper usertitle, $visitor}</xen:contentcheck></div></xen:if>
           
                <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>
           
                <ul class="links">
                    <li class="fl"><a href="{xen:link members, $visitor}">{xen:phrase your_profile_page}</a></li>
                </ul>
            </div>


So that's what you do but a lot better. Like I said though, this was an example and if I wanted it in the visitor tab, I would do a better job. However, to achieve it you still edit the navigation_visitor_tab template.
 
Last edited: