Fixed Blank joined date for visitors in posts

Jon W

Well-known member
This might be as designed because it seems like it has been specifically left out, but if you have it set in Style Properties to show a user's registration date in their post bit, then guest posts will show a blank entry:
upload_2013-7-26_15-29-42.png

To fix, replace the following in the template message_user_info:
HTML:
                <xen:if is="@messageShowRegisterDate">
                    <dl class="pairsJustified">
                        <dt>{xen:phrase joined}:</dt>
                        <dd>{xen:date $user.register_date}</dd>
                    </dl>
                </xen:if>
with:
HTML:
                <xen:if is="@messageShowRegisterDate AND {$user.user_id}">
                    <dl class="pairsJustified">
                        <dt>{xen:phrase joined}:</dt>
                        <dd>{xen:date $user.register_date}</dd>
                    </dl>
                </xen:if>
 

Mike

XenForo developer
Staff member
Fixed - I don't know why that one was missed compared to all of the other checks.
 

Jon W

Well-known member
My thoughts exactly. Thought it must have been intentional but couldn't work out why on earth that would be the case.
 
Top