XF 2.2 Show User ID in message_macro

nathanw

Member
Hey All,

I'm wanting to add a custom field to the message_macro template that shows the message posters user_id.

I've tried the code:
HTML:
<dl class="pairs pairs--justified">
    <dt>{{ phrase('user_id') }}</dt>
    <dd>
        <span>{{ $xf.visitor.user_id }}</span>
    </dd>
</dl>
but it only outputs my user_id.

Any ideas?
 
Top Bottom