L luutruong Active member Sep 21, 2012 #1 How to add mini avatar (user) in navigation_visitor_tab...I tried some way but not work And i dont want use Addon
How to add mini avatar (user) in navigation_visitor_tab...I tried some way but not work And i dont want use Addon
Steve F Well-known member Sep 21, 2012 #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 Added to the Resource Manager: http://xenforo.com/community/resources/add-avatar-to-visitor-tabs.1032/ Upvote 0 Downvote
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 Added to the Resource Manager: http://xenforo.com/community/resources/add-avatar-to-visitor-tabs.1032/
Steve F Well-known member Sep 21, 2012 #3 Also, if your navTabs has a height higher than the default you can adjust the width and height of the image to suite. Upvote 0 Downvote
Also, if your navTabs has a height higher than the default you can adjust the width and height of the image to suite.