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

XF 1.2 Show User Banner in Member List and Visitor Panel

#1
I want to show user group banners in members list and notable member lists (all tabs) and registered member lists ,and visitor panel , popup.



Thank you.
 

Brogan

XenForo moderator
Staff member
#2
Try adding this (with some appropriate styling) to the relevant templates: {xen:helper userbanner, $user}

upload_2014-2-3_14-50-52.png
 
#3
Try adding this (with some appropriate styling) to the relevant templates: {xen:helper userbanner, $user}

View attachment 66371
I tried to add to sidebar_visitor_panel but banners still don't appear.

PHP:
<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:helper userbanner, $user}
                        <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>