Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Display Full Name Instead of User Name on Forums View modes: 
User avatar
Member
Member
agerace-ag.state.oh - 11/12/2009 3:46:20 PM
   
Display Full Name Instead of User Name on Forums
Is there a way to display the full Name instead of the User Name on the forums?

User avatar
Kentico Developer
Kentico Developer
kentico_ondrejv - 12/2/2009 11:31:47 AM
   
RE:Display Full Name Instead of User Name on Forums
Hello,

Yes, it's possible. You might need to adjust behavior of new forum post form. You can open the NewPost control here: ~\CMSModules\Forums\Controls\NewPost.ascx.cs. Please find line about 367 and change the text which will pre-fill the user name textbox, you can do it like this:

txtUserName.Text = CMSContext.CurrentUser.FullName;

This way you enforce inserting Full Name for post.

Another thing is changing appearance in already created posts. This is necessary to do directly in database in Forums_ForumPost table. You might create some script for this purpose if you want to.

Best regards
Ondrej Vasil

User avatar
Member
Member
stephen.turley-terradon - 7/12/2012 8:30:05 AM
   
RE:Display Full Name Instead of User Name on Forums
How would this be accomplished in version 6?

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 7/14/2012 1:09:37 PM
   
RE:Display Full Name Instead of User Name on Forums
Hi,

in version 6.0 you can the code in file:

~/CMSModules/Forums/Controls/Posts/PostEdit.ascx

you need to change line (423):

editPi.PostUserName = TextHelper.LimitLength(txtUserName.Text, POST_USERNAME_LENGTH, "");

Best regards,
Ivana Tomanickova