XF 1.5 Username + User Title above avatar

Tattooed Theist

Active member
Hey guys, did a search on this, found several threads but they seem to be for older versions and were non-functioning!

Could someone send me instruction on how to move the username and usergroup above the avatar in 1.5?

Thanks!
 
Edit template message_user_info. Find
Code:
    <xen:hook name="message_user_info_avatar" params="{xen:array 'user={$user}', 'isQuickReply={$isQuickReply}'}">
       <div class="avatarHolder">
           <span class="helper"></span>
           <xen:avatar user="$user" size="m" img="true" />
           <xen:if is="{$user.isOnline}"><span class="Tooltip onlineMarker" title="{xen:phrase online_now}" data-offsetX="-22" data-offsetY="-8"></span></xen:if>
           <!-- slot: message_user_info_avatar -->
       </div>
   </xen:hook>
move that block near end of file before
Code:
    <span class="arrow"><span></span></span>
 
You got me started, so thank you!

For whatever reason what I ended up having to do was take this code

Code:
<center>
<xen:username user="$user" itemprop="name" rich="true" />
            <xen:if hascontent="true"><em class="userTitle" itemprop="title"><xen:contentcheck>{xen:helper userTitle, $user, 1, 1}</xen:contentcheck></em></xen:if>
            </center>

the < center > code was added by me to center the information

And place it right below here
Code:
<div class="messageUserInfo" itemscope="itemscope" itemtype="http://data-vocabulary.org/Person">  
<div class="messageUserBlock {xen:if $user.isOnline, online}">


Thanks man!
 
Last edited by a moderator:
Back
Top Bottom