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.
Please open your Global.asax and find the following code:
Public Function GetUserDisplayName(ByVal useruniquename As String) As String
Implements CuteSoft.Chat.IHttpApplicationDataProvider.GetUserDisplayName
Return GetUser(useruniquename).Username
End
Function
Change it to
Public Function GetUserDisplayName(ByVal useruniquename As String) As String
Implements CuteSoft.Chat.IHttpApplicationDataProvider.GetUserDisplayName
Return GetUser(useruniquename).FirstName
End
Function
Find the following code:
Public Function SearchUserUniqueNameByDisplayName(ByVal userDisplaName As
String) As String() Implements
CuteSoft.Chat.IHttpApplicationDataProvider.SearchUserUniqueNameByDisplayName
userDisplaName =
userDisplaName.ToLower()
Dim names As New
System.Collections.ArrayList
For Each user As DotNetNuke.UserInfo
In New DotNetNuke.UserController().GetUsers(CurrentPortal().PortalId, "")
Dim prop As String =
user.Username
If
prop.ToLower().IndexOf(userDisplaName) <> -1 Then
names.Add(user.UserID.ToString())
End If
Next
Return
CType(names.ToArray(GetType(String)), String())
End Function
Change it to
Public Function SearchUserUniqueNameByDisplayName(ByVal userDisplaName As
String) As String() Implements
CuteSoft.Chat.IHttpApplicationDataProvider.SearchUserUniqueNameByDisplayName
userDisplaName =
userDisplaName.ToLower()
Dim names As New
System.Collections.ArrayList
For Each user As DotNetNuke.UserInfo
In New DotNetNuke.UserController().GetUsers(CurrentPortal().PortalId, "")
Dim prop As String =
user.FirstName
If
prop.ToLower().IndexOf(userDisplaName) <> -1 Then
names.Add(user.UserID.ToString())
End If
Next
Return
CType(names.ToArray(GetType(String)), String())
End Function