**************************************************************************
**                                                                      **
** SMF 123 Web Messenger Module                            	            **
** for 123WebMessenger Server Software                                  **
**                                                                      **
** This project is free under the SMF License                           **
** and all users agree to the license.                                  **
**                                                                      **
========================================================================== 
**                                                                      **
** Copyright (c) by TopCMM 	                        	                **
** Daniel Jiang (support@123flashchat.com)          		            **
** http://www.123flashchat.com                                          **
** http://www.simplemachines.org/                                       **
**                                                                      **
**  Version:1.0                                                         **
**  SMF Version : 1.x , 2.x                                             **
**  SMF Test Version : 1.1.3, 2.0.2                                     **
**                                                                      **
**************************************************************************


#######################################################################################################
## Notes:                                                                                            ##
##                                                                                                   ##
##  IMPORTANT!!!!                                                                                    ##
##  If you need to use the chat service on a local server, before installing this module, please     ##
##  download 123 Flash Chat 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 there.                ##
##                                                                                                   ##
##  If you don't have a dedicated server, you may use 123FlashChat hosting service, please access:   ##
##  http://www.123flashchat.com/host.html                                                            ##
##                                                                                                   ##
##  And you can get professional support here: http://www.123flashchat.com/support.html              ##
##  We provide online forum support, email support, etc.                                             ##
##                                                                                                   ##
##  Good luck and have a nice day!                                                                   ##
##                                                                                                   ##
#######################################################################################################


Step 1, Check, We just support MySQL database, if you use postgreSQL or other database,you could not use this module.

Step 2, Locate the installed SMF,
		
	(For 2.x)
	1. Login SMF using an admin account.

	2. Click the ADMIN button on the top navigation bar to enter the control panel.

	3. Left navigation, Main -> Packages Manager, click it.

	4. Package Manager -> Download Packages, here is the place to upload and install the module.

	5. Upload a Package -> Package to Upload, browse to find smf_mod_for_123flashchat.zip, and click Upload.
		
	(For 1.x)
	1. Login SMF using an admin account
		
	2. Click the ADMIN button on the top navigation bar to enter the control panel.
		
	3.Left navigation, Main -> Packages, click it
		
	4.Package -> Download packages, here is the place to upload and install the module.
		
	5. Package to Upload -> Choose file, browse to find smf_mod_for_123flashchat.zip, and click Upload.
		
Step 3, Install module
	
	(For 2.x)
	1. After uploading, you will find "123 Web Messenger Module" list in page, click [Install Mod].

	2. Click "Install Now" button. 

	(For 1.x)
	1. After uploading, you will find "123 Web Messenger Module" list in page, click [Apply Mod].

	2. Click "Install Now" button. 
		
Step 4, Configure module:
		
	1. After the module installation is done, just click "Redirect Now", you will be redirect to chat setting page.
		
	2. Configure and save the chat settings.

Step 5, Integrate your chat with SMF user database

    Intro: For those who chooses running chat on "123WebMessenger Server Host By 123 Flash Chat" or "123WebMessenger Server Host By Your Own", database integration is necessary,
    please follow the instructions below.
		
	1. Chat Management, Log in the Admin Panel of your 123WebMessenger server using chat admin account.

	2. OPEN: Server Settings-> Integration, For DataBase, SELECT: URL, and click "edit"

	3. Change URL to:

         http://<SMF install directory>/LoginChat.php?username=%username%&password=%password%

	4. Press OK and restart chat server to save the setting.

Step 6, Add user profile link in chat room
		
	1. Chat Management, Log in the Admin Panel of your 123FlashChat server using chat admin account.

	2. OPEN: Client Settings ->  User Defined Menu, Check option "Enable custom menu items".
		
	3. Edit default "Profile" Item, change the link URL to http://<SMF install directory>/Sources/WebMessengerProfileProxy.php?user=%USER%
		
	4. Press OK, then Press "save" to save the setting.