Add avatar in navigation_visitor_tab

luutruong

Active member
How to add mini avatar (user) in navigation_visitor_tab...I tried some way but not work
And i dont want use Addon
 
Here you go

In template navigation_visitor_tab

Find:
Code:
<a href="{xen:link account}" class="navLink accountPopup" rel="Menu"><strong>{$visitor.username}</strong></a>

Replace with:
Code:
<a href="{xen:link account}" class="navLink accountPopup" rel="Menu"><img src="{xen:helper avatar, $visitor, s}" class="miniMe" /><strong>{$visitor.username}</strong></a>

Add this to EXTRA.css:
Code:
.navTab .accountPopup img
{
float: left;
width: 20px;
height: 20px;
margin-right: 5px;
margin-top: 3px;
border-radius: 2px;
}

Result

avatar-in-tab.webp


Added to the Resource Manager: http://xenforo.com/community/resources/add-avatar-to-visitor-tabs.1032/
 
Back
Top Bottom