Re: ChatProvider examples

  •  06-03-2010, 9:47 PM

    Re: ChatProvider examples

    Hi kjell.ek,

    Do you have a ChatProvider example for that (VB)? 
    1. <%@ Application Language="VB" %>   
    2. <%@ Import Namespace="CuteChat" %>   
    3.   
    4. <script RunAt="server">   
    5.     Private Sub Application_Start(ByVal sender As ObjectByVal e As EventArgs)   
    6.         ChatProvider.Instance = New AspNetChatProvider()   
    7.         ChatSystem.Start(New AppSystem())   
    8.     End Sub  
    9.        
    10.     Public Class AspNetChatProvider   
    11.         Inherits ChatProvider   
    12.        
    13.         Public Overloads Overrides Function GetLogonIdentity() As AppChatIdentity   
    14.             Dim context As HttpContext = HttpContext.Current   
    15.             'method ToUserId is necessaries   
    16.             Dim userid As String = ToUserId("orlandoj")   
    17.             Return New AppChatIdentity("orlandoj"False, userid, context.Request.UserHostAddress)   
    18.         End Function  
    19.        
    20.         Public Overloads Overrides Function FindUserLoginName(ByVal nickName As StringAs String  
    21.             Return "orlandoj"  
    22.         End Function  
    23.            
    24.         Public Overloads Overrides Function GetUserInfo(ByVal loginName As StringByRef nickName As StringByRef isAdmin As BooleanAs Boolean  
    25.             loginName = "orlandoj"  
    26.             nickName = "orlandoj"  
    27.             isAdmin = True  
    28.             Return True  
    29.         End Function  
    30.        
    31.         Public Overloads Overrides Function ValidateUser(ByVal username As StringByVal password As StringAs Boolean  
    32.             Return True  
    33.         End Function  
    34.              
    35.            
    36.     End Class  
    37.   
    38.           
    39. </script>  
    In Membership Database Integration i use the code from "Add web messenger button into web pages", but i have JavaScript error and nothing happens when I click on the link.
     
    Please post  the full error message here.
     
    In Membership Database Integration i use the code from "Add chat admin button into web pages". I cannot find the folder (Admin) of "
    CuteSoft_Client/CuteChat/"
     
    admin folder in CuteChat is "CuteSoft_Client/CuteChat/ChatAdmin/"
    If you still can not find it. Please download the package below, you can find all folders you need.
     
     
     
    In Membership Database Integration i use the code from "Add chat rooms into web pages" but the ArrayList is emty?
     
    Make sure you have already created some chat rooms. By default CuteChat does not contain a default chat room.
     
    Regards,
     
    ken
View Complete Thread