YAFLogo

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

Edited by Zero2Cool rather than Edited by user

Sponsor
squirrel
12 years ago

Would it be possible to show whom edited the post?

Edited by Zero2Cool rather than Edited by user

Originally Posted by: Zero2Cool 

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
12 years ago

Would it be possible to show whom edited the post?

Edited by Zero2Cool rather than Edited by user

Originally Posted by: Zero2Cool 

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
12 years ago

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 🙂

Originally Posted by: squirrel 

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

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.

Originally Posted by: bbobb 

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
12 years ago

Would it be possible to show whom edited the post?

Edited by Zero2Cool rather than Edited by user

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 🙂

Originally Posted by: Zero2Cool 

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
12 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!"