**************************************************************************
** Joomla: 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.joomla.org/                                               **
**                                                                      **
**************************************************************************



####################################################################################################################
## 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 email support, online live support, and phone support                     		              ##
##     etc.                                                                                                       ##
##                                                                                                                ##
####################################################################################################################


Step 1, Install the module in the Joomla admin panel

            OPEN: Admin panel -> Extensions -> Extension Manager -> Upload Package File:
                    upload com_chat.zip
                    upload mod_chat.zip

Step 2, Enable mod_chat:

	    Open: Admin panel -> Extensions -> Module Manager:
		      
			  1.Find "123 Flash Chat", and enable it.
			  
			  2.Click "123 Flash Chat" and go to page:Module Manager: Module mod_chat.
			  
			  3.Find "Postion" field and click "Select position", find position-7 and select it. 
			  
			  4.Find "Module Assignment" field and select on all pages.
			  
			  5.Click Save.

Step 3, Configure chat module's running mode:
        
            1.OPEN: Admin Panel -> Components -> 123 Flash Chat -> Chat Settings
             
            2.CONFIG: Configure your chat setting
			
Step 4, 1.Visit http://<Your Joomla root URL>/index.php?option=com_chat&view=login&username=%username%&password=%password% , Replace %username% and %password% with admin account.
		
		2.If there is no return to 5( if it returns to 5, please skip and see Step 5) , Please open http://<Your Joomla root URL>/components/com_chat/views/login/view.html.php
		
		3.Open your joomla database, Find table table_pre . "users", select usertype from table_pre . "users" where username = adminusername.
		
		4.Find:The code "if ($row['usertype'] == ADMIN_TYPE || $row['usertype'] == 'deprecated')", change it with:"if ($row['usertype'] == ADMIN_TYPE || $row['usertype'] == 'deprecated' || $row['usertype'] == 'the select usertype value')"

Step 5, Integrate your chat with Joomla user database

        If you choose running own server or host service, integration is needed, you may achieve this by following the instructions below.

            1.OPEN: Admin Panel -> Components -> 123 Flash Chat -> Chat Admin Panel
                    Click "Login" to login in Chat Admin Panel
               
            2.OPEN: Server Settings -> Integration
              FING: DataBase -> SELECT: URL -> edit 
              EDIT: Change URL:
                    http://<Your Joomla root URL>/index.php?option=com_chat&view=login&username=%username%&password=%password%
              SAVE: Press OK to save your setting.
           
		   3.Restart chat server at Server Management -> Restart
            
Integration done, enjoy your chat:), if you have any question related chat room,please visit http://www.123flashchat.com/faq.html or contact our online supporter at http://www.123flashchat.com
