**************************************************************************
** Skadate: 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                                          **
**************************************************************************



####################################################################################################################
## 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 Skadate, You Should Backup All The Files Related To This MOD                    ##
####################################################################################################################


Step 1, Install module files to your skadate:


        Files to copy (create chat folder in skadate installed directory)


            copy folder  123flashchat/                                        to                  <skadate installed directory root>/123flashchat/
	    copy file    admin/templates/123flashchat_service.html            to                  <skadate installed directory root>/admin/templates/123flashchat_service.html
           

Step 2, Files to Edit ( Do forget to backup)


      1). OPEN: <skadate installed directory>/components/NavigationMenuMain.cmp.php

       FIND:
----------------------------------------------------------------------------------------------------------------------------------
$main =  SK_Navigation::menu('main');
----------------------------------------------------------------------------------------------------------------------------------


       ADD THE FOLLOING AFTER THIS LINE

----------------------------------------------------------------------------------------------------------------------------------
array_push($main,array('label'=>"Chat",'href'=>SITE_URL.'123flashchat/123flashchat.php" target="_blank','active'=>'','sub_menu'=>array()));
----------------------------------------------------------------------------------------------------------------------------------



      2). OPEN: <skadate installed directory>/admin/inc.admin_menu.php

       FIND:
----------------------------------------------------------------------------------------------------------------------------------
	'services'	=> array
	(
		'autocrop'	=> array
		(
			'href'	=> URL_ADMIN.'services.php?service=autocrop',
			'label'	=> 'FaceJuggle'
		),
		'chuppo'	=> array
		(
			'href'	=> URL_ADMIN.'services.php?service=chuppo',
			'label'	=> 'Chuppo'
		)
	),
----------------------------------------------------------------------------------------------------------------------------------


       Change To

----------------------------------------------------------------------------------------------------------------------------------
	'services'	=> array
	(
		'autocrop'	=> array
		(
			'href'	=> URL_ADMIN.'services.php?service=autocrop',
			'label'	=> 'FaceJuggle'
		),
		'chuppo'	=> array
		(
			'href'	=> URL_ADMIN.'services.php?service=chuppo',
			'label'	=> 'Chuppo'
		),
		'123flashchat'	=> array
		(
			'href'	=> URL_ADMIN.'services.php?service=123flashchat',
			'label'	=> '123 Flash Chat'
		)
	),
----------------------------------------------------------------------------------------------------------------------------------




      3). OPEN: <skadate installed directory>/admin/services.php

       FIND:
----------------------------------------------------------------------------------------------------------------------------------
           switch ( $active_tab )
           {
        	case 'autocrop':
	        case 'chuppo':
		$template = $active_tab.'_service.html';
		break;
		default:
		$template = 'autcrop_service.html';
		break;		
            }
----------------------------------------------------------------------------------------------------------------------------------


       Change To

----------------------------------------------------------------------------------------------------------------------------------
           switch ( $active_tab )
           {
        	case 'autocrop':
	        case 'chuppo':
	        case '123flashchat':
		$template = $active_tab.'_service.html';
		break;
		default:
		$template = 'autcrop_service.html';
		break;		
            }
----------------------------------------------------------------------------------------------------------------------------------



Step 3, Configure chat module's running mode:
        
        Login skadate admin panel -> click "addons" -> click "123 Flash Chat" tab
 

        1). Please choose the running mode according to your needs.
             
            Configure the following parameters
                                                      Hosting mode

        2). Configure the parameters of the Hosting mode you choosed.

             1. Chat server is hosted by 123flashchat.com free of charge.

                 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; 


             2. Chat server is hosted by 123flashchat.com

                 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
                                                    
                                                      Client location (host address URL)

               Configuration reference
                                                    
                                                      Client location: http://host7120.123flashchat.com/phpchat
						    
		


            3. Chat server is hosted by your own 
            
                 If your chat is hosted by your own, 123FlashChat server software should be installed at first, 
                 please download 123FlashChat  httpwww.123flashchat.comdownload.html. 

           

               Configure the following parameters
                                                  
                                                     
                                                      Client location (local client URL)

                                                    
                            
               Configuration reference

                                                      Client location  http://your website url/client


Step 4, Integrate your chat with skadate user database

        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://<skadate install directory>/123flashchat/login_chat.php?username=%username%&password=%password%

            4. Press OK to save your setting.
   