#1
Would it be possible to show whom edited the post?

Edited by Zero2Cool rather than Edited by user



Topic Starter
  • Zero2Cool
  • Rank: YAF Leader
  • Reputation:
    Exalted
    100%
  • Medals:
    Medal of Honor for the Support Knight: Given to a community member who has assisted lots and lots of people!
  • Joined: 26/04/2011
  • Posts: 1,073
  •  Man  United States
  • Location: in a van down by the river
  • Thanks: 243 times
  • Was thanked: 101 time(s) in 92 post(s)
#2
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 
  • squirrel
  • Rank: YAF Leader
  • Reputation:
    Exalted
    100%
  • Medals:
    YAF.NET Supporter: Loves YAF.NET!YAF.NET Supporter: Supports the YAF.NET project with a contribution.YAF.NET Purple Supporter: Purple heart for being an Asset to the YAF.NET Community.YAF.NET Supporter: Supports our efforts. Thank you.Medal of Honor for the Support King: A huge help to the YAF.NET community!
  • Joined: 14/01/2010
  • Posts: 925
  • Thanks: 249 times
  • Was thanked: 169 time(s) in 160 post(s)
#3
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.


  • bbobb
  • Rank: YAF Developer
  • Reputation:
    Exalted
    100%
  • Medals:
    Medal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.Medal of Honor for a YAF Database Key Player: Holds the key to YAF database. Bow down!Medal of Honor for the Support King: Given for answering tons of support questions and generally helping the community.Medal of Honor for the Support Knight: Given to a community member who has answered lots of support questions.
  • Joined: 21/10/2008
  • Posts: 1,558
  •  Man  Russian Federation
  • Location: Moscow
  • Thanks: 51 times
  • Was thanked: 287 time(s) in 253 post(s)
#4
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.
Topic Starter
  • Zero2Cool
  • Rank: YAF Leader
  • Reputation:
    Exalted
    100%
  • Medals:
    Medal of Honor for the Support Knight: Given to a community member who has assisted lots and lots of people!
  • Joined: 26/04/2011
  • Posts: 1,073
  •  Man  United States
  • Location: in a van down by the river
  • Thanks: 243 times
  • Was thanked: 101 time(s) in 92 post(s)
#5
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.

Topic Starter
  • Zero2Cool
  • Rank: YAF Leader
  • Reputation:
    Exalted
    100%
  • Medals:
    Medal of Honor for the Support Knight: Given to a community member who has assisted lots and lots of people!
  • Joined: 26/04/2011
  • Posts: 1,073
  •  Man  United States
  • Location: in a van down by the river
  • Thanks: 243 times
  • Was thanked: 101 time(s) in 92 post(s)
#6
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!"
  • bertb
  • Rank: YAF Camper
  • Reputation:
    Friendly
    64.4%
  • Joined: 29/05/2008
  • Posts: 25
  • Thanks: 2 times
  • Was thanked: 6 time(s) in 5 post(s)
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