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

XF 1.3 prifile content block

Russ

Well-known member
#6
Fusion gamer has something similar but it takes a decent amount of work to get it up there Proutie, not just a simply one line change. I'd personally** post in the request area to see if you can't get someone to help with it.


This may get you started on it actually:

Replace ad_header with:

Code:
<xen:hook name="ad_header" />

<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:if>

In extra.css:

Code:
#logoBlock .section.visitorPanel {
color: #000;
float: right;
margin-top: 29px;
width: 250px;
}
#logoBlock .avatar {
float: left;
padding-right: 10px;
}
It'll need responsive fixes and adjusting without a doubt, but it's a start.
 
Last edited:

Brad P

Active member
#7
Fusion gamer has something similar but it takes a decent amount of work to get it up there Proutie, not just a simply one line change. I'd personally** post in the request area to see if you can't get someone to help with it.


This may get you started on it actually:

Replace ad_header with:

Code:
<xen:hook name="ad_header" />

<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:if>

In extra.css:

Code:
#logoBlock .section.visitorPanel {
color: #000;
float: right;
margin-top: 29px;
width: 250px;
}
#logoBlock .avatar {
float: left;
padding-right: 10px;
}
It'll need responsive fixes and adjusting without a doubt, but it's a start.
ive sent you a PM Russ