Sorry if this has already been reported but I couldn't find it in the forums by searching.
I'm using YAF.Net 1.9.6.1 at
forums.lumie.com , and users' email addresses are being shown in the 'Last 10 Posts' (LastPosts.ascx) control on the 'Post Reply' page (postmessage.ascx) because the display names have not been stored against the messages in the DB. I assume this is to do with the fact that imported the user accounts from an old database and I've not set something correctly - but I can't see anything unusual about these users in the DB.
To try to fix this I saw the line in yaf_post_list_reverse10:
UserName = IsNull(a.UserName,b.Name)
a=Message, b=User
Gets the email address (b.Name) rather than the display name which should have been set as the UserName on the message.
I've tried to fix this temporarily by using:
UserName = IsNull(b.DisplayName,b.Name)
But this doesn't seem to be the SP that's actually used. I'd rather not change the yaf_post_list SP - but I guess I'll have to for now?
Anyone know why the UserName isn't being set on the Messages?
Thanks very much.
Edited by user
10 years ago
|
Reason: Not specified