XF 2.1 Adding code into post macros

DaveL

Well-known member
Morning everyone,

I'm looking at adding this bit of code into the post_macros template

Code:
<xf:macro name="stat_pair" arg-user="!">
    <xf:if is="property('bdMedal_showStatPair')">
        <dl class="pairs pairs--rows pairs--rows--centered fauxBlockLink">
            <dt>{{ phrase('bdmedal_medal_entities') }}</dt>
            <dd>
                <a href="{{ link('members/medals', $user) }}" data-xf-click="overlay"
                   class="fauxBlockLink-linkRow u-concealed">
                    {$user.medal_count|number}
                </a>
            </dd>
        </dl>
    </xf:if>
</xf:macro>

I want it to display how many awards a user has won on the forum. I've managed to get it to show within the custom user fields area, however would prefer it to show underneath the userbanner area. Any idea where abouts I would need to post it?
 
Back
Top Bottom