CamChat 3.6 Documentation

I. Server Requirements

Please make sure that your server meets the following configuration.
If you are unsure, contact your hosting company / server administrator for
confirmation.

II. Installation and Configuration Instructions

1. Create a new MySQL database. Don't forget to assign a database user to it.

2. Edit /upload/config.php and change the following database info (database that you have created at step 1):

Database Host (usually in most cases it is 'localhost' by default)
$dbhost = 'localhost';
Database User
$dbuser = 'dbuser';

Database Password
$dbpass = 'dbpass';
Database Name

$dbname = 'dbname'

3. Edit /upload/chat.html (you can rename it to whatever you want) and change:

The title of your web page
<title>Your Chat Title Here</title>

4 . Copy all files and folders from/upload (only its contents, without itself) to the desired directory on your web server, preferably the root directory (/public_html on Linux)

5. Run the following queries in your database (usually with phpMyAdmin) to populate it with its structure:

CREATE TABLE `sessions` (
`id` varchar(255) NOT NULL COMMENT 'Adobe Stratus ID',
`sex` varchar(1) NOT NULL COMMENT 'The sex of the user',
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`spare` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

CREATE TABLE `talks` (
`sId` varchar(255) NOT NULL,
`dId` varchar(255) NOT NULL,
`msg` text NOT NULL,
`sSex` varchar(1) DEFAULT NULL,
`dSex` varchar(1) DEFAULT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`created_at`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

6. Note: The "clean.php" is not called at any time from the Chatrousel application. We've created a cron job on our web server that runs the clean script once a day. The script takes care to remove records that didn't clean correctly during normal operation. It is not a requirement to call clean.php regularly, it's merely a recommendation to keep the size of the database as small as possible. If you're unsure how to set up a cron job for your environment, please contact your hosting services provider.

7. Replace logo.png with your own logo image

8. Replace background.jpg with your own background image. Edit the CSS code of the body class in the header of chat.html to customize the appearance of the background (repeat-x, no-repeat, etc).

9. Access your chat at http://www.yousite.com/chat.html

III. Upgrading

Upgrading from 3.5: Upload camchat.swf from the CamChat 3.6 distribution to your server, overwriting the old file.

Upgrading from 3.1: Upload camchat.swf and chat.html (or only partial code) from the CamChat 3.5 distribution to your server, overwriting the old files.

Upgrading from 3.0: Upload camchat.swf and langConfig.xml from CamChat 3.1 distribution to your server, overwriting the old files.

Upgrading from 2.0: Upload camchat.swf and langConfig.xml from CamChat 3.1 distribution to your server, overwriting the old files.

IV. Adding / Editing Languages

To add a new language, edit langConfig.xml, copy everything from <language langId="English" to /> (basically one language block), paste it below (as a new language block) and translate it. Name the language in langId="English".

To change the default language, place the block (<language ..... />) of the desired language at the top of the langConfig.xml file (where English is by default).

V. Inserting Ads / Banners

Edit chat.html (or the file containing the chat if you have renamed it), insert the top ad/banner code between:

<div id="banner-top">
<!-- Insert Top Banner code below -->

<!-- End Top Banner code -->
</div>

and bottom ad/banner code between:

<div id="banner-bottom">
<!-- Insert Bottom Banner code below -->

<!-- End Bottom Banner code -->
</div>

VI. Customer Support

If you need help installing or configuring your CamChat application, we offer professional installation service for a flat-fee of $19. Please contact us at office@camchatscript.com or using the online form.


Website: http://www.camchatscript.com