YAFLogo

Andre
  • Andre
  • 51.8% (Neutral)
  • YAF Forumling Topic Starter
15 years ago
In cp_editbuddies, all three lists use UserID in the User column. As a consequence, the second tab incorrectly shows the current user name in all rows. For that table, FromUserID should be used, so that the user that is sending the request is shown.

As a quick workaround, I changed line 34 in BuddyList.ascx. UserID is now:


<YAF:UserLink ID="UserProfileLink" runat="server" UserID='<%# CurrentUserID == Convert.ToInt32(Eval("UserID")) ? Eval("FromUserID") : Eval("UserID") %>' />

That is, if the user ID is the current ID, use FromUserID instead, otherwise use UserID.

Sponsor