Display Name of this user is generated based on DotNetNuke ....

Last post 05-07-2007, 2:02 PM by Adam. 3 replies.
Sort Posts: Previous Next
  •  07-19-2006, 4:06 PM 21082

    Display Name of this user is generated based on DotNetNuke ....

    By default, when a new user entered the chat room, the Display Name of this user is generated based on DotNetNuke username. You can change it based on user's LastName or user's FirstName.
     
    I want it to be based on user's LastName and user's FirstName.
     
    How do I do that?
  •  07-19-2006, 4:41 PM 21083 in reply to 21082

    Re: Display Name of this user is generated based on DotNetNuke ....

    Hello ,
     
    If you use the DNN intergration code , maybe you can find
     
            Public Function GetUserDisplayName(ByVal useruniquename As String) As String Implements CuteSoft.Chat.IHttpApplicationDataProvider.GetUserDisplayName
                Return GetUser(useruniquename).FirstName
            End Function
     
    In the Global.asax or Global.asax.cutechat.vb .
     
    You can change the implementation to :
     
    Dim user As DotNetNuke.Entities.Users.UserInfo = GetUser(useruniquename)
    return user.FirstName +","+user.LastName
     
    Regards , Terry .
     
     
  •  05-07-2007, 10:41 AM 29258 in reply to 21083

    Re: Display Name of this user is generated based on DotNetNuke ....

    Hi Terry,
     
    I have tried this implementation in Global.asax.cutechat.vb file and it still pulls the username in the chat lobby instead of first name.  Is there anything else that I need to change?
     
    Thanks,
    Sirisha
  •  05-07-2007, 2:02 PM 29284 in reply to 29258

    Re: Display Name of this user is generated based on DotNetNuke ....

    Sirisha,
     
    That's the only step you need.
     
    Have you uploaded the changed file to your server??
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML