IanGrainger
2012-11-05T17:00:16Z
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.
Sponsor
IanGrainger
2012-11-05T17:20:42Z
I've only just got the yaf_post_list SP to run, and it looks like the DisplayName from that is correct.

So I think the problem is that the LastPosts.ascx isn't using the 'UseDisplayName' setting.

For now I've changed the codeinfront to always use the display name - because my site does... But I assume this is just something that was missed when adding support for display names?
bbobb
  •  bbobb
  • 100% (Exalted)
  • YAF Developer
2012-11-05T18:12:19Z
In reality you can't use display names without exposing real names here and there in your version. Hopefuly, all the remnants were wiped out from YAF. I use display names too by the same reason. All you can do is to try and use the current repository.
IanGrainger
2012-11-08T12:22:24Z
Originally Posted by: bbobb 

In reality you can't use display names without exposing real names here and there in your version. Hopefuly, all the remnants were wiped out from YAF. I use display names too by the same reason. All you can do is to try and use the current repository.



Oh dear - so where else will real names be shown? I use email addresses as the UserName - so showing them anywhere in the interface of the public forum is a big deal...

What do you mean about trying to use the current repository? Are you suggesting I replace the UserNames with the DisplayNames?
tha_watcha
2012-11-08T12:28:22Z
Originally Posted by: IanGrainger 

Originally Posted by: bbobb 

In reality you can't use display names without exposing real names here and there in your version. Hopefuly, all the remnants were wiped out from YAF. I use display names too by the same reason. All you can do is to try and use the current repository.



Oh dear - so where else will real names be shown? I use email addresses as the UserName - so showing them anywhere in the interface of the public forum is a big deal...

What do you mean about trying to use the current repository? Are you suggesting I replace the UserNames with the DisplayNames?



He means you download the latest BETA Source Code of YAF from the Repository on Codeplex

http://yafnet.codeplex.c...urceControl/BrowseLatest 

And Compile YAF Yourself in Visual Studio.


UserPostedImage
IanGrainger
2012-11-08T14:49:34Z
Ah, OK - got you, thanks.

In that case - I'll probably plan to wait for the next release :)

Thanks for the great job, guys, obviously! 😉

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