YAFLogo

Zero2Cool
  • Zero2Cool
  • 100% (Exalted)
  • YAF Leader Topic Starter YAF Version: YAF 3.1.16
11 years ago
Would it be possible to show whom edited the post?

Edited by Zero2Cool rather than Edited by user



Sponsor

squirrel
11 years ago
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
  • bbobb
  • 100% (Exalted)
  • YAF Developer
11 years ago
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
  • Zero2Cool
  • 100% (Exalted)
  • YAF Leader Topic Starter YAF Version: YAF 3.1.16
11 years ago
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
  • Zero2Cool
  • 100% (Exalted)
  • YAF Leader Topic Starter YAF Version: YAF 3.1.16
11 years ago
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
  • bertb
  • 64.4% (Friendly)
  • YAF Camper
11 years ago
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!"
YAF Logo Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved
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