**************************************************************************
** Mambo: Web Portal System                                             **
** Module for 123 Flash Chat Server software                            **
** ==============================================                       **
**                                                                      **
** Copyright (c) by TopCMM 					        **
** Daniel Jiang (support@123flashchat.com)          			**
** http://www.topcmm.com						**
** http://www.123flashchat.com                                          **
** http://www.mamboserver.com/                                          **
**                                                                      **
**************************************************************************



####################################################################################################################
## Notes:                                                                                                         ##
##                                                                                                                ##
##     IMPORTANT!!!!                                                                                              ##
##     If you need to use the chat service on a local machine, before installing this module, please              ##
##     download 123FlashChat Server software first from this page:                                                ##
##     http://www.123flashchat.com/download.html                                                                  ##
##     You may get the latest free demo version of 123 flash chat server software at there.                       ##
##                                                                                                                ## 
##     And get professional support from: http://www.123flashchat.com/support.html                                ##
##     We provide online forum support, email support, online live support, and phone support                     ##
##     etc.                                                                                                       ##
##                                                                                                                ##
##     Good luck and have a nice day!                                                                             ##
##                                                                                                                ##
####################################################################################################################
## Before Adding This MOD To Your mambo, You Should Backup All The Files Related To This MOD                      ##
####################################################################################################################


Step 1, Install module files to your mambo:


        File Copy 

            copy 123flashchat.php                     to                  <mambo installed directory>/123flashchat.php
            copy login_chat.php                       to                  <mambo installed directory>/login_chat.php
            copy mysql4.php                           to                  <mambo installed directory>/mysql4.php
            copy folder chat/                         to                  <mambo installed directory>/folder chat/



Step 2, Install the module in the admin panel

            1. OPEN: Admin Panel -> Installs -> Universal  -> Upload Package File: mod_chat.zip;



Step 3, Configure chat module's running mode:
        
        1). 1.OPEN: Admin Panel -> Module-> Site Module
             
            2.Click "Chat",configure your chat setting there

            3.Please choose the running mode according to your needs.

              Configure the following parameters:
                                                      Chat server is hosted by


        2). Configure the parameters of the running mode you chose.


            1. Chat server is hosted by your own.
            
                 Intor: If your chat is hosted by your own, 123FlashChat server software should be installed at first, 
                 please download 123FlashChat:  http://www.123flashchat.com/download.html. 

               Configure the following parameters:
                                                  
                                                      Chat group
                                                      Chat size width
                                                      Chat size height
                                                      Chat data path
                                                      Primary server host
                                                      Primary server port
                                                      Chat Chat root path
                                                      Chat swf's name (modification is not recommended)
                            
               Configuration reference:
                                                      Chat group            =  "default";
                                                      Chat size width       =  634;
                                                      Chat size height      =  476;
                                                      Chat data path        =  "<123flashchat install directory>/server/data/default/"; 
                                                      Primary server host   =  "localhost";
                                                      Primary server port   =  51127;
                                                      Chat Chat root path   =  "http://www.123flashchat.com/";
                                                      Chat swf's name       =  "123flashchat.swf";  



             2. Chat server is hosted by 123flashchat.com.

                 Intor: If your chat is hosted by 123Flashchat.com, no 123FlashChat server software is needed to be installed; 
                 you may connect to your host chat room directly.

               Configure the following parameters:

                                                      Chat group 
                                                      Chat size width
                                                      Chat size height
                                                      Primary server host
                                                      Primary server port
                                                      Chat Chat root path (Not Necessary)
                                                      Chat swf's name (Modification is not recommended)

               Configuration reference:
                                                      Chat group            =  "default";
                                                      CHAT size width       =  634;
                                                      Chat size height      =  476;
                                                      primary server host   =  "www.123flashchat.com";
                                                      primary server port   =  51128;
                                                      Chat Chat root path   =  "";
                                                      Chat swf's name       =  "123flashchat.swf";  
 
             3. Chat server is hosted by 123flashchat.com free of charge .

                 Intor: If you need to use this service, no 123FlashChat server software is needed to be installed, 
                 we will provide you free chat room, and you can choose the room name as you want.
            

               Configure the following parameters:

                                                      chat room name 

               Configuration reference:
                                                      chat room name         =  "YourRoomName";
                                                      (If you leave room name as blank, the default room name value will be your domain's name.)






Step 4, Integrate your chat with mambo user database

        Intor: If you choose running mode 1 or mode 2, integration is needed, you may achieve this by following the instructions below.

            1. Log in the Admin Panel of your 123FlashChat server
               OPEN: System Settings -> Integrate Panel
 
            2. Find: DataBase -> SELECT: URL -> edit 
      
            3. Change URL:
                 http://<mambo install directory>/login_chat.php?username=%username%&password=%password%

            4. Press OK to save your setting.
   
