kentico_davidb2
-
2/13/2014 1:58:49 AM
RE:How to show user name in message board
If you set the property of Message board's Show "Name" field to false, then the name is not being submitted.
If you do not want to enable users to change their name, but want to show their name at the same time, please enable this property and use the following customization:
In \CMSModules\MessageBoards\Controls\Messages\MessageEdit.ascx, around the line 30, there is a definition for the name textbox, please change it to:
<cms:CMSTextBox ID="txtUserName" runat="server" CssClass="TextBoxField" EnableViewState="false" MaxLength="250" ProcessMacroSecurity="false" Enabled="false"/>
It may be a good idea to clone both the webpart and associated controls, so that you still preserver the old behavior if you need it elsewhere.
|