Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0hide LastName FirstName in Manage User Credentials pagehide LastName FirstName in Manage User Credentials page
Previous
 
Next
New Post
9/4/2008 1:55 PM
 

Hello experts,

In "Manage User Credentials" page (first loaded page when clicking Manage Profile), is there any ways to make the [Last Name], [First Name] and [Email Address] rows invisble? As a result the "Manage User Credentials" page will show only the [User Name].

Thank you in advance.

Eric

 

 
New Post
9/5/2008 6:46 PM
Accepted Answer 

Without modifying core or creating a custom Manage Profile module you cannot achieve this. 

However, if you are tempted to modify core and risk having to do this again in the future ... the file to edit is located under 

admin\Users\User.ascx.vb and you can achieve this by adding just 3 lines:

Case "firstname", "lastname", "displayname", "email"
                    If IsUser Then e.Editor.Visible = False

Add this to this this part of the file:

''' -----------------------------------------------------------------------------
        Protected Sub UserEditorCreated(ByVal sender As Object, ByVal e As UI.WebControls.PropertyEditorItemEventArgs) Handles UserEditor.ItemCreated
            Dim setting As Object = Nothing

            Select Case e.Editor.Name.ToLower
                Case "firstname", "lastname", "displayname", "email"
                    If IsUser Then e.Editor.Visible = False

                Case "displayname"
                    setting = UserModuleBase.GetSetting(UserPortalID, "Security_DisplayNameformat")
                    If (Not setting Is Nothing) AndAlso (Not String.IsNullOrEmpty(Convert.ToString(setting))) Then
                        If AddUser Then
                            e.Editor.Visible = False
                        Else
                            e.Editor.EditMode = PropertyEditorMode.View
                        End If
                    End If
                Case "email"
                    setting = UserModuleBase.GetSetting(UserPortalID, "Security_EmailValidation")
                    If (Not setting Is Nothing) AndAlso (Not String.IsNullOrEmpty(Convert.ToString(setting))) Then
                        e.Editor.ValidationExpression = Convert.ToString(setting)
                    End If
            End Select
        End Sub

Good luck

 
New Post
9/9/2008 4:23 PM
 

You are awesome! It's 100% the answer I'm looking for. Thank you so much.

Regards,

Eric

 
New Post
2/2/2009 8:40 PM
 

Can anyone tell me how I can do the same thing for a field that is located in the Manage Profile section?  I'd like to make that one invisible as well! 

Thanks

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0hide LastName FirstName in Manage User Credentials pagehide LastName FirstName in Manage User Credentials page


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out