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.webp

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>
 
Back
Top Bottom