YAFLogo

wanzelbin
  • wanzelbin
  • 54.8% (Neutral)
  • YAF Forumling Topic Starter
2018-04-15T17:32:50Z
Hi

Long story but I'm creating accounts using RoleMembershipHelper.CreateForumUser(user, displayName, 1) rather than directly within the forum's own registration functions.

All is working except that though I can see the DisplayName field in the yaf_User table is being populated, when you look at the forum pages, everyone is referenced via their username rather than the DisplayName. Is this a flags thing? Or UserStyle? Bit stumped and any help much appreciated.

Thanks

David

Sponsor
wanzelbin
  • wanzelbin
  • 54.8% (Neutral)
  • YAF Forumling Topic Starter
2018-04-15T19:16:15Z
So I dug around the source code, and it seems there's a Registry item called "EnableDisplayName" that controls this. I added a record into the yaf_Registry table with Name "enabledisplayname" and Value of 1. Then had to use the "Restart App" link under "Admin" - "Maintenance" which cleared the cache, and it's all working.