I'm aware of that, I'm saying within the post. It states it was last edited by a Moderator, I'm wanting to have it show who edited it.You can check the moderator log
<xf:if is="$post.last_edit_date">
<xf:else />
{{ phrase('last_edited_by_moderator:') }} <xf:date time="{$post.last_edit_date}" />
<a href="{{ link('https://www.yourdomain.tld/members/') }}{{$post.last_edit_user_id}}">{{ phrase('last_edited_by_moderator:') }} <xf:date time="{$post.last_edit_date}" />...</a>
But it still will not show their username within the post.@xf 2.1.7
You have to change the template: post_macros (in xf 2.1.7 Defaultstyle)
Find lineNumber ~119:goto lineNumber ~123:Code:<xf:if is="$post.last_edit_date">
and after this:Code:<xf:else />
change lineNumber ~124:, from this:
to this:Code:{{ phrase('last_edited_by_moderator:') }} <xf:date time="{$post.last_edit_date}" />
Code:<a href="{{ link('https://www.yourdomain.tld/members/') }}{{$post.last_edit_user_id}}">{{ phrase('last_edited_by_moderator:') }} <xf:date time="{$post.last_edit_date}" />...</a>
If a post is changed by a moderator/admin, after the editing time, a clickable link appears that refers to the profile of the corresponding moderator/admin.
save & enjoy
hth
But it still will not show their username within the post.
Because I don't want it set up like that. I'd rather have the name of the moderator in the post.Displaying the name directly in the post means a lot of overhead.
Why is it not enough to click the resource-saving link and then see the name of the mod?
You can also invest time and convert my example so that the name appears directly in the post.
You can also invest time and convert my example so that the name appears directly in the post.
user_id
, and there's no relation to either said user or the history record.As I said before. Too much overhead just to display the name.Not without custom development. The last edit username isn't stored with the post like theuser_id
, and there's no relation to either said user or the history record.
We use essential cookies to make this site work, and optional cookies to enhance your experience.