Zero2Cool
  • Posts: 1082
  • Joined: 26/04/2011
Would it be possible to show whom edited the post?

Edited by Zero2Cool rather than Edited by user



Sponsor
squirrel
  • Posts: 925
  • Joined: 14/01/2010
Originally Posted by: Zero2Cool 

Would it be possible to show whom edited the post?

Edited by Zero2Cool rather than Edited by user





I think it only reads "user" when the user personally edits the message. Otherwise it states "Moderator" or "Admin" if you need to pull 'rank' on a post 😉

So unless you let other users edit posts 🙂

If you can't find it using the forum search, try my signature link -- searches this site using Google: Google is my Friend 
bbobb
  • Posts: 1558
  • Joined: 21/10/2008
Originally Posted by: Zero2Cool 

Would it be possible to show whom edited the post?
Edited by Zero2Cool rather than Edited by user


You can click the link and check it. The system allows to avoid displaying useless info if you don't really need it and boost perfomance.
YAF implementation doesn't put the info into post body but stores all the history in a separate table.


Zero2Cool
  • Posts: 1082
  • Joined: 26/04/2011
Originally Posted by: squirrel 

I think it only reads "user" when the user personally edits the message. Otherwise it states "Moderator" or "Admin" if you need to pull 'rank' on a post 😉

So unless you let other users edit posts 🙂



I've pulled rank a few times to fix quote boxes (drives me crazy when its wrong) and it says edited by user. :shrug:


Originally Posted by: bbobb 

You can click the link and check it. The system allows to avoid displaying useless info if you don't really need it and boost perfomance.
YAF implementation doesn't put the info into post body but stores all the history in a separate table.



If it displayed user for only when the user modified the post, that'd be good enough. As it is kind of self explanatory. Maybe I'm in a role that registers as user, but yet has moderator/admin abilities? I'll have to look into this more.
Zero2Cool
  • Posts: 1082
  • Joined: 26/04/2011
Originally Posted by: squirrel 

Originally Posted by: Zero2Cool 

Would it be possible to show whom edited the post?

Edited by Zero2Cool rather than Edited by user





I think it only reads "user" when the user personally edits the message. Otherwise it states "Moderator" or "Admin" if you need to pull 'rank' on a post 😉

So unless you let other users edit posts 🙂



If it said edited by user for when the user edited the post, cool. And then also if it said edited by Moderator, that would be cool.

For some reason, no matter what user role edits the post, it says Edited by user.

bertb
  • Posts: 25
  • Joined: 29/05/2008
This seems to be a bug. The 'IsModeratorChanged' field is not set when loading the post data.

I solved it by adding some lines of code in the MessagePostData class (Yaf.Controls.MessagePostData.cs). The new code starts after editMessage = this.Edited;

if (this.Edited > this.Posted)
{
	editedMessage = this.Edited;

	if (this.DataRow.Table.Columns.Contains("IsModeratorChanged"))
	{
		this.IsModeratorChanged = Convert.ToBoolean(this.DataRow["IsModeratorChanged"]);
	}
}

Never say "OOPS!" always say "Ah, Interesting!"
Users browsing this topic
    Forum Jump  
    • You cannot post new topics in this forum.
    • You cannot reply to topics in this forum.
    • You cannot delete your posts in this forum.
    • You cannot edit your posts in this forum.
    • You cannot create polls in this forum.
    • You cannot vote in polls in this forum.

    About Us

    The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

    Powered by Resharper Donate with PayPal button

    Project Twitter Updates

    Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved