Skip to content

Cute Chat / Web Messenger Developer's Guide - General Installation Instructions

Cute Chat / Web Messenger Developer's Guide Prev Page Prev Page
FAQ
Embed mode
Localization
Oracle and Access
Cute Chat and Cute Web Messenger

General Installation Instructions

  • Step 1: Install the Cute Chat database

  • Step 2: Deploy the Cute Chat assembly and license file

  • Step 3: Deploy the Cute Chat client files

  • Step 4: Add the chat rooms in your web pages

  • Step 5: Add the chat admin button in your web pages

  • Step 6: Add the messenger button in your web pages



    Step 1: Install the Cute Chat database


    Open your client copy of SQL Server Query Analyzer from within Enterprise Manager. Once you have successfully connected to your SQL Server or MSDE database within query analyzer or other query tool, open and execute the following SQL files: 

          SQLScripts\cutechat3.sql

    Step 2: Deploy the Cute Chat assembly and license file


    Copy the CuteSoft.Chat.dll, CuteChat.lic, CuteMessenger.lic and CuteLiveSupport.lic to the project \bin directory.

     

    Step 3: Deploy the Cute Chat client files


    CuteSoft_Client folder and all file it contains should be deployed to Project_FOLDER\. 
    Global.asax file should be deployed to Project_FOLDER\.

     

    Step 4: Add the chat rooms in your web pages


    Get the chat rooms collection from the database, then databind the results to a DataGrid/imagesList/Reapter server control in your web page.

    To get the chat rooms collection:

    C#:

       ArrayList lobbies=new ArrayList();
       foreach(CuteChatLobby lobby in ChatApi.GetLobbyArray())
       {
           if(lobby.IsHidden)
              continue;

           lobbies.Add(lobby);
       }

       VB:

    Dim lobbies As New ArrayList()
    For Each CuteChatLobby as lobby In ChatApi.GetLobbyArray()
         If Not lobby.IsHidden Then
              lobbies.Add(lobby)
         End If
    Next
        

    Step 5: Add the chat admin button in your web pages

    <%if (CuteSoft.Chat.ChatWebUtility.CurrentIdentityIsAdministrator)
    {%>
     <Asp:HyperLink runat=server NavigateUrl="~/CuteSoft_Client/CuteChat/Admin/" ID="Hyperlink1" NAME="Hyperlink1">Chat Admin</Asp:HyperLink>
    <%} %>

     

    Step 6: Add the messenger button in your web pages

        <%="<"%><%="script"%><%=" src='"%><%=resolveurl("~/CuteSoft_Client/CuteChat/IntegrationUtility.js.aspx")%><%="'"%><%=">"%><%="<"%><%="/script"%><%=">"%>
       <img src="<%=resolveurl("~/CuteSoft_Client/CuteChat/images/icon_invite.gif")%>" align=absmiddle><a href="###" onclick="JavaScript:Chat_OpenMessenger()" >Messenger</a>