**************************************************************************
** Vbulletin: Web Portal System                                         **
** Module for 123 web messenger software                                **
** ==============================================                       **
**                                                                      **
** Copyright (c) by TopCMM 					        **
** Daniel Jiang (support@123flashchat.com)          			**
** http://www.topcmm.com						**
** http://www.123flashchat.com                                          **
** http://www.vbulletin.com/                                            **
**                                                                      **
**************************************************************************




Step 1, Install module files to your vbulletin:


        File Copy 

            copy wm_get_userinfo.php                  to                  <vbulletin installed directory>/wm_get_userinfo.php
            copy wm_config.php                        to                  <vbulletin installed directory>/wm_config.php
	    copy login_chat.php                       to                  <vbulletin installed directory>/login_chat.php



Step 2, Configure  wm_config.php.


Step 3, Install the module in the admin panel

        OPEN: OPEN: Admin Panel -> Styles & Templates ->  Click on: Style Manager -> Edit Templates (in All Style Options) -> Find: "footer" (double click);




        Add the following code into the last: 
---------------------------------------------------------------------------------------------------------------------------------
<script language="javascript" src="<vbulletin install directory>/wm_get_userinfo.php"></script>
<script language="javascript" src="<123webmessenger client directory>/js/123webmessenger_fb.js"></script>
----------------------------------------------------------------------------------------------------------------------------------
    
Note: Replace <vbulletin install directory> and <123webmessenger client directory> with the real URL.

 



Step 4, Integrate your chat with vbulletin user database

        If you want integrate whit your vbulletin database, you may achieve this by following the instructions below.

            1. Log in the Admin Panel of your 123webmessenger server
               OPEN: System Settings -> Integrate Panel
 
            2. Find: DataBase -> SELECT: URL -> edit 
      
            3. Change URL:
                 http://<vbulletin install directory>/login_chat.php?username=%username%&password=%password%

            4. Press OK to save your setting.
   