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

XF 1.1 How I can move sidebar (not all)

Chris D

XenForo developer
Staff member
#2
Hi this is the sidebar_visitor_panel

This is the code:

Code:
<xen:if is="{$visitor.user_id}">
 
<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 />
 
<div class="section loginButton">
<div class="secondaryContent">
<label for="LoginControl" id="SignupButton"><a href="{xen:link login}" class="inner">{xen:if $xenOptions.registrationSetup.enabled, {xen:phrase sign_up_now}, {xen:phrase log_in}}</a></label>
</div>
</div>
 
</xen:if>
Where are you wanting to move it to?
 
#7
My code:
PHP:
<xen:hook name="ad_header" />
<div style="float: right; width: 300px; position: relative; top: 0px;">
 
<xen:if is="{$visitor.user_id}">
 
<div class="section visitorPanel">
<h2>Bienvenue {xen:helper username, $visitor, 'NoOverlay', white, center}</h2>
<xen:avatar user="$visitor" size="s" img="true" />
{xen:number $visitor.message_count} {xen:phrase messages}
{xen:number $visitor.like_count} {xen:phrase likes}
{xen:number $visitor.trophy_points} {xen:phrase points}
<div class="visitorText">
<div class="stats">
<xen:hook name="sidebar_visitor_panel_stats">
</div>
</xen:hook>
</div>
 
</div>
 
<xen:else />
 
</xen:if>
</div>
1. How I can align Message count, like count, trophy count near my avatar?
2. How I can add a background black (fieldset arround)
3. It's all :/

Thanks for advance,
Ali
 

Attachments