Cute Chat

Installing Cute Chat/messenger for Snitz Forum

The following guide shows the steps to implement a Cute Chat and Cute messenger into Snitz Forum application. If you haven't downloaded the software, please download the software copy from    http://richscripts.com/download/CuteChatforSnitzForum.zip.

Unzip the zip file and copy CuteChat client files to the Snitz Forum solution.


CuteSoft_Client folder and all file it contains should be deployed to SNITZ_FOLDER\.
bin folder and all file it contains should be deployed to SNITZ_FOLDER\.
global.asax should be deployed to SNITZ_FOLDER\.
RedirectForumToChat.aspx should be deployed to SNITZ_FOLDER\.
web.config should be deployed to SNITZ_FOLDER\.


Display the screenshot of this step

What does SNITZ_FOLDER mean to my forum?


If your forum is installed under a virtual directory, like abc.com/forums, you should copy files to the virtual directory (abc.com/forums/...).

If your forum is located at the root of your subdomain, like forums.abc.com, you should copy files to the root of your subdomain (forums.abc.com/...).

If your forum is located at the root of your domain, like abc.com, you should copy files to the root of your domain (abc.com/...).

Execute SQLScripts\CuteChat5.sql against your Snitz Forum database

  • Open your SQL Server Query Analyzer from within Enterprise Manager.
  • Once you have successfully connected to your SQL Server within query analyzer, open and execute the Chat SQL file(SQLScripts\CuteChat5.sql) against your Snitz Forum database.
  Display the screenshot of this step

Update the web.config to use your custom connection string.


<add key="ConnectionString" value="server=(local);database=Snitz;uid=test;pwd=test"/>

Add cute chat and messenger to your forum.


If your Snitz forum install is a default install, you can install cute chat and messenger by copying the files.


default.asp should be deployed to SNITZ_FOLDER\.
inc_header.asp should be deployed to SNITZ_FOLDER\.


If not, please following click here:

a. Add messenger link (please open inc_header.asp file)

Copy/paste the code below in line 231.

Response.Write "<script language=""JavaScript"" type=""text/javascript"" src=""CuteSoft_Client/CuteChat/IntegrationUtility.js.aspx""></script>"

Find the Home page link (about line 473) , copy/paste the code below after the Home Page link:

Response.Write("<a  tabindex=""-1"" href='JavaScript:Chat_OpenMessenger()'" & dWStatus("Login to web messenger...") & "><img src='CuteSoft_Client/CuteChat/images/icon_invite.gif' align=absMiddle border=0><acronym title=""Web Messenger..."">Messenger</acronym></a> | ")


b. Add chat link (please open default.asp file)

You have two options to add chat room to your forum:

One room for all forum

Copy/paste the following code to the location where you want to show the chat room. Just make sure the value of ForumId does exist in your snitz forum.

<a target=_blank href='RedirectForumToChat.Aspx?ForumId=1'><img src='CuteSoft_Client/CuteChat/images/icon_conversation2.gif' align=absMiddle border=0>Chat</a>


One chatroom per forum

Copy/paste the code below in line 309:

 "               <td align=""center"" bgcolor=""" & strHeadCellColor & """ nowrap valign=""top""><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strHeadFontColor & """>Chat</font></b></td>" & vbNewline & _
         
In line 508 , change colspan from 4 to 5
Response.Write " colspan=""5"""
 
In line 522,  Copy/paste the code below after "if ForumFType = 0 then":

Response.Write      "                <td bgcolor=""" & strForumCellColor & """ align=""center"" valign=""top""><font face=""" & strDefaultFontFace & """ color=""" & strForumFontColor & """ size=""" & strDefaultFontSize & """><a target=_blank href='RedirectForumToChat.Aspx?ForumId=" & ForumID & "'><img src='CuteSoft_Client/CuteChat/images/icon_conversation2.gif' align=absMiddle border=0>Chat</a></font></td>" & vbNewline