Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > forum username View modes: 
User avatar
Member
Member
andrejg - 2/26/2009 4:10:01 AM
   
forum username
Hi,
I'd like to change the forum code to display the user's full name as their nick name instead of their username - we use Kentico as our intranet site, and with Windows authentication enabled the usernames take a form of domain\username, which is is not nice.

In 3.1a you'd just change txtUserName.Text=cui.UserName to txtUserName.Txt=cui.FullName in ForumNewPost.ascx.cs - in 4.0 I can't seem to find the relevant code...

Any help would be appreciated.

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 3/3/2009 6:28:57 AM
   
RE:forum username
Hello,

You can change following line (345 by default) in ~\CMSModules\Forums\Controls\NewPost.ascx.cs file:

txtUserName.Text = UserName;

Best Regards,

Martin Dobsicek

User avatar
Member
Member
andrejg - 3/3/2009 1:09:58 PM
   
RE:forum username
Hi,
thanks for the tip - I got it working.

Regards,
Andrej