Topbar
Topbar
Sign in
|
Join
|
Client Center
Home
Products
Client Center
Contact
Purchase
Support forums
»
Products
»
Cute Live Support
»
Re: cant get this working -- Operator console does not connect
Re: cant get this working -- Operator console does not connect
04-23-2010, 12:34 AM
Kenneth
Joined on 02-13-2008
Posts 3,886
Re: cant get this working -- Operator console does not connect
Reply
Quote
Hi
xaanix
,
Try
<%@ Application Language=
"VB"
%>
<%@ Import
Namespace
=
"CuteChat"
%>
<script RunAt=
"server"
>
Private
Sub
Application_Start(
ByVal
sender
As
Object
,
ByVal
e
As
EventArgs)
ChatProvider.Instance =
New
AspNetChatProvider()
ChatSystem.Start(
New
AppSystem())
End
Sub
Public
Class
AspNetChatProvider
Inherits
ChatProvider
Public
Overloads
Overrides
Function
GetLogonIdentity()
As
AppChatIdentity
Dim
context
As
HttpContext = HttpContext.Current
'method ToUserId is necessaries
Dim
userid
As
String
= ToUserId(
"orlandoj"
)
Return
New
AppChatIdentity(
"orlandoj"
,
False
, userid, context.Request.UserHostAddress)
End
Function
Public
Overloads
Overrides
Function
FindUserLoginName(
ByVal
nickName
As
String
)
As
String
Return
"orlandoj"
End
Function
Public
Overloads
Overrides
Function
GetUserInfo(
ByVal
loginName
As
String
,
ByRef
nickName
As
String
,
ByRef
isAdmin
As
Boolean
)
As
Boolean
loginName =
"orlandoj"
nickName =
"orlandoj"
isAdmin =
True
Return
True
End
Function
Public
Overloads
Overrides
Function
ValidateUser(
ByVal
username
As
String
,
ByVal
password
As
String
)
As
Boolean
Return
True
End
Function
End
Class
</script>
Regards,
ken
View Complete Thread