Cute Chat

Installing Cute Chat/messenger for SharePoint

The following guide shows the steps to implement a Cute Chat and messenger into SharePoint application. If you haven't downloaded the software, please download the software copy from here.

1. Unzip the zip file and copy CuteChat client files to the root of SharePoint.

The following files/folder should be deployed to the root of SharePoint.

2. Deploying the DLLs and license file

The following files should be deployed to \bin directory of SharePoint installation.

3. Execute SQLScripts\CuteChat5.sql against SharePoint database
4. Copy ChatRoomList.ascx to CuteSoft_Client\CuteChat folder.
5. Modify web.config file
6. Add Chat rooms to webpart part library of sharepoint

"Site Actions"->"Site Settings"->"Web Parts"->"Upload"->"Upload Document"-"Browse"->select Chat.dwp/EmbedChat.dwp/Messenger.dwp->"OK"->"OK" After these steps are followed, visit the "Edit Page" in SharePoint,click "Add a Web Part", and then select web part "Chat.dwp","Messenger.dwp", and "EmbedChat.dwp".

7. Add chat administrator console "Chat Admin"
  1. Open web.config, add the following code to node "PageParserPaths":

    <PageParserPath VirtualPath="/sites/test/_catalogs/masterpage/default.master" CompilationMode="Always" AllowServerSideScript="true" />

    Make sure you set correct VirtualPath, if your website url is  "http://ken-c89834a9dbe:xxxx/sites/test/", you should set VirtualPath to "/sites/test/_catalogs/masterpage/default.master"

    After you add "PageParserPaths", it should look like this

    <PageParserPaths>
       <PageParserPath VirtualPath="/sites/test/_catalogs/masterpage/default.master" CompilationMode="Always" AllowServerSideScript="true" />
    </PageParserPaths>

  2. Open sharepoint website->"Site Actions"->"Site Settings"->"Master pages"(Galleries)
  3. Locate "default.master"->right click->select "Edit in Microsoft Office SharePoint Designer"
  4. "default.master" will be opened in Microsoft Office SharePoint Designer. Search

    <tr>
     <td class="ms-globallinks">
     <SharePoint:DelegateControl ControlId="GlobalSiteLink1" Scope="Farm" runat="server"/></td>
     <td class="ms-globallinks">
     <SharePoint:DelegateControl ControlId="GlobalSiteLink2" Scope="Farm" runat="server"/></td>
    </tr>

    Change it to:

    <tr>
     <td class="ms-globallinks">
     <SharePoint:DelegateControl ControlId="GlobalSiteLink1" Scope="Farm" runat="server"/></td>
     <td class="ms-globallinks">
     <SharePoint:DelegateControl ControlId="GlobalSiteLink2" Scope="Farm" runat="server"/></td>
     <td class="ms-globallinks">
     <%
                 string currentSiteURL="http://" + HttpContext.Current.Request.Url.Host + HttpContext.Current.Request.ApplicationPath;
                       using (SPSite mSite = new SPSite(currentSiteURL))
                     {
                         SPWeb rootWeb = mSite.RootWeb;
                         SPUser mSPUser = rootWeb.CurrentUser;
                         if (mSPUser.IsSiteAdmin)
                        {%><asp:HyperLink ID="ChatAdmin" runat="server" NavigateUrl="~/CuteSoft_Client/CuteChat/ChatAdmin">Chat Admin</asp:HyperLink>
                        <% }
                    }
                     %>
     </td>
    </tr>