YAFLogo

IanGrainger
  • IanGrainger
  • 50.2% (Neutral)
  • YAF Forumling Topic Starter
11 years ago
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
  • IanGrainger
  • 50.2% (Neutral)
  • YAF Forumling Topic Starter
11 years ago
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
11 years ago
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
  • IanGrainger
  • 50.2% (Neutral)
  • YAF Forumling Topic Starter
11 years ago

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.

Originally Posted by: bbobb 

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
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
11 years ago

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.

Originally Posted by: IanGrainger 

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?

Originally Posted by: bbobb 

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

http://yafnet.codeplex.com/SourceControl/BrowseLatest 

And Compile YAF Yourself in Visual Studio.

IanGrainger
  • IanGrainger
  • 50.2% (Neutral)
  • YAF Forumling Topic Starter
11 years ago
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! 😉