**************************************************************************
** PHP-Fusion: 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.php-fusion.co.uk/news.php                                 **
**                                                                      **
** Requires at least: 7.01                                              **
** Tested up to: 7.02.05  ,7.01.06                                      **
** Stable tag: 2.0.1                                                    **
**                                                                      **
**************************************************************************
==================================================================================
|                                                                                |
|    This program is free software: you can redistribute it and/or modify        |
|    it under the terms of the GNU Affero General Public License as              |
|    published by the Free Software Foundation, either version 3 of the          |
|    License, or (at your option) any later version.                             |
|                                                                                |
|    This program is distributed in the hope that it will be useful,             |
|    but WITHOUT ANY WARRANTY; without even the implied warranty of              |
|    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               |
|    GNU Affero General Public License for more details.                         |
|                                                                                |
|   You should have received a copy of the GNU Affero General Public License     |
|    along with this program.  If not, see <http://www.gnu.org/licenses/>.       |
|                                                                                |
==================================================================================
|-----------------------------------------+
| PHP-Fusion
| Copyright ?2002 - 2010 Nick Jones
| http://www.php-fusion.co.uk/
|-----------------------------------------+



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!                                                                            
                                                                                                               


GENERAL:
-----------------
Step 1, Install module files to your PHP-Fusion:


        File Copy 

            copy files/123flashchat.php     to      <PHP-Fusion installed directory>/123flashchat.php
            copy files/login_chat.php       to      <PHP-Fusion installed directory>/login_chat.php
            copy files/infusions/chat_panel      to    <PHP-Fusion installed directory>/infusions/chat_panel



Step 2, Configure chat module's running mode:
        
        1). Please choose the running mode according to your needs.
             
            Configuration path:                       <PHP-Fusion installed directory>/infusions/chat_panel/flashchatconf/config.php

            Configure the following parameters:
                                                      $running_mode
            Configuration reference:
                                                      $running_mode = 1; (only 1 or 2 or 3)


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


            1. Chat server is hosted by your own ($running_mode = 1).
            
                 Please download and install 123FlashChat first: http://www.123flashchat.com/download.html,

               Configuration path:     <PHP-Fusion installed directory>/infusions/chat_panel/flashchatconf/config_local.php

               Configure the following parameters:
                                                  
                                                      $chat_group
                                                      $chat_data_path
                                                      $primary_server_host
                                                      $primary_server_port
                                                      $chat_client_root_path
                                                      $swf_file_name (modification is not recommended)
                            
               Configuration reference:
                                                      $chat_group            =  "default";
                                                      $chat_data_path        =  "<123flashchat install directory>/server/data/default/"; 
                                                      $primary_server_host   =  "localhost";
                                                      $primary_server_port   =  51127;
                                                      $chat_client_root_path =  "http://www.123flashchat.com/";
                                                      $swf_file_name         =  "123flashchat.swf";  



             2. Chat server is hosted by 123flashchat.com ($running_mode = 2).

                 For paid host, please set the Chat Client Location like this, for example: http://host71200.123flashchat.com/wordpress/, Buy host(http://www.123flashchat.com/host.html); 
		For trial host, please setup Chat Client Location like this: http://trial.123flashchat.com/yourhostname Just replace "yourhostname" to the real one when you applied, Apply trial host(http://www.123flashchat.com/host/apply.php)
               
               Configuration path:                    <PHP-Fusion installed directory>/infusions/chat_panel/flashchatconf/config_host.php

               Configure the following parameters:

                                                      $chat_group 
                                                      $primary_server_host
                                                      $primary_server_port 
                                                      $swf_file_name (Modification is not recommended)

               Configuration reference:
                                                      $chat_group            =  "default";
                                                      $primary_server_host   =  "host***.123flashchat.com";
                                                      $primary_server_port   =  21127;
                                                      $swf_file_name         =  "123flashchat.swf";  
 
             3. Chat server is hosted by 123flashchat.com free of charge ($running_mode = 3).

                 This chat server mode aims at testing the basic functions, only supported 1 room, no video chat function, and also you don't have the administrator permission of entering this chat room, you can select the mode 1 or 2 to get the full functions and control your chat room.
            
               Configuration path:                    <PHP-Fusion installed directory>/infusions/chat_panel/flashchatconf/config_free.php

               Configure the following parameters:

                                                      $room_name 

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







Step 3, Install the module in the admin panel

            1. OPEN: Admin Panel -> Find: System Admin ->  Find: Panels -> new panel;
               (Panel name could be "chat","123flashchat" or any words you want to add)

            2. OPEN: panel filename -> SELECT: chat_panel -> save panel;

            3. "Enable" this panel in panel option.







Step 4, Integrate your chat with PHP-Fusion 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: Server Settings -> Integration
 
            2. Find: DataBase -> SELECT: URL -> edit 
      
            3. Change URL:
                 http://<PHP-Fusion install directory>/login_chat.php?username=%username%&password=%password%

            4. Press OK to save your setting.



SUPPORT
--------					
http://www.123flashchat.com                                            

