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

Add avatar in navigation_visitor_tab

Steve F

Well-known member
#2
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.png


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

Steve F

Well-known member
#3
Also, if your navTabs has a height higher than the default you can adjust the width and height of the image to suite.