**************************************************************************
** PunBB 1.3.x: 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://punbb.informer.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!                                                                             ##
##                                                                                                                ##
####################################################################################################################



Step 1, Upload module files to your punbb:
	copy folder module/123_flashchat/admin   	to   <punbb installed directory>/
	copy folder module/123_flashchat/extensions   	to   <punbb installed directory>/
	copy folder module/123_flashchat/lang   	to   <punbb installed directory>/

Step 2, Install module:
	1. Open: PunBB Admin Panel -> Extensions
 	2. Install: Select "123 Flash Chat" and click "Install extension"

Step 3, Add 123flashchat mod:
	Language File:
	    Open File:
	    	<punbb installed directory>\lang\English\common.php
	    End Add:
	    	//TopCMM SoftWare 123 Flash Chat
		$lang_common['123_flash_chat'] = "123 Flash Chat";
	    
	    Open File:
	    	<punbb installed directory>\lang\English\index.php
	    End Add
	    	//TopCMM Software
		$lang_index['123_flash_chat_status'] = "Chat Status";
		
	    Open File:
	    	<punbb installed directory>\lang\English\admin_common.php
	    End Add:
	    	//TopCMM Software
		$lang_admin_common['123_flash_chat'] = "123 Flash Chat Setting";
		$lang_admin_common['123_flash_chat_admin_panel'] = "123 Flash Chat Admin Panel";
	
	URL File:
	    Open File:
	    	<punbb installed directory>\include\url\Default\forum_urls.php
	    End Add:
	    	// TopCMM Software
		$forum_url['admin_123flashchat'] = 'admin/123flashchat.php';
		$forum_url['123_flash_chat'] = 'extensions/pun_123flashchat/123flashchat.php';
		$forum_url['123_flash_chat_admin_panel'] = 'extensions/pun_123flashchat/123flashchat_adminpanel.php';

	Navigator Link:
	    Open File:
	    	<punbb installed directory>\include\common_admin.php
	    Find:
		}
		else if (FORUM_PAGE_SECTION == 'management')
	    Before Add:
	    	($hook = get_hook('topcmm_chatlink_ap_url')) ? eval($hook) : null;
	    	
	    Open File:
	    	<punbb installed directory>\include\functions.php
	    Find:
	    	($hook = get_hook('fn_generate_navlinks_end')) ? eval($hook) : null;
	    After Add:
	    	($hook = get_hook('topcmm_index_link')) ? eval($hook) : null;
	    
	    Open File:
	    	<punbb installed directory>\index.php
	    Find:
	    	<?php endif; ($hook = get_hook('in_new_online_data')) ? eval($hook) : null; ?>
		</div>
	    After Add:
	    	<?php	($hook = get_hook('topcmm_index_status')) ? eval($hook) : null;	?>
Step 4, Configure module:
	1. Open: PunBB Admin Panel ->  Settings  ->  123FlashChat Settings;

        2. Configure & save 123 Flash Chat Settings
        
Step 5, Integrate your chat with punbb user database

        Intor: If you choose running on [host mode] or [localhost mode], integration is needed, you may achieve this by following the instructions below.

            1. PunBB Admin Panel -> Settings -> 123 Flash Chat Admin Panel, Log in the Admin Panel of your 123FlashChat server
               OPEN: System Settings -> Integrate Panel
 
            2. Find: DataBase -> SELECT: URL -> edit 
      
            3. Change URL:

                 http://<punbb install directory>/extensions/pun_123flashchat/login_chat.php?username=%username%&password=%password%
            4. Press OK to save your setting.

