XF 1.5 Last edited by....

ainwood

New member
The "message" template has this condition:

Code:
<xen:if is="{$message.user_id} == {$message.last_edit_user_id}">
                {xen:phrase last_edited}: <xen:datetime time="{$message.last_edit_date}" />
            <xen:else />
                {xen:phrase last_edited_by_moderator}: <xen:datetime time="{$message.last_edit_date}" />
            </xen:if>
I'd like to change the last_edited_by_moderator to give the name of the moderator who edited the post. I see that the condition checks the user_id of the message vs that of the last person to edit it, and uses this to determine that it was a moderator who edited the message. It therefore follows that if I can turn the user_id into the user_name, then I can get the name of the person who last edited the post, into the post.

However, I'm not sure how to do this (I'm relatively new to xenforo). Can anyone help?
 

Brogan

XenForo moderator
Staff member
I don't believe the user name of who edited the post is available in the $message array, so it would require custom development to pull the name.
 
Top