**************************************************************************
** IPB: 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!!!!                                                                                              ##
##     1Only under these two circumstances will you have the right to use this mod.                             ##
##	  If you purchase our 123 Flash Chat software with this module, you can use it.                           ##
##        If not, you must be our host buyer.                                                                     ##
##     2When You have finished the installation for this MOD. Upload all changed files to your website.         ##
##        If the installation went bad, simply restore your backed up files.                                      ##
##                                                                                                                ##
##     3 If your 123 Flash Chat server is stopped or the server address is incorrectly filled in,               ##
##         the module will not work, if you meet this problem, please contact us.                                 ##
##                                                                                                                ##
##     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 IPB, You Should Backup All The Files Related To This MOD                        ##
####################################################################################################################



Step 1, Install the module

        1. File Copy: 
			Copy folder: /post_123flashchat  to %IPB installed directory%/post_123flashchat 

 	

Step 2, Edit File

	OPEN file:  %IPB installed directory%/index.php

        FIND:  ipsController::run();

	Add the following code before the line:
	
		include_once 'post_123flashchat/123flashchat_postnotifier.php';



Step 3 Configure the parameters of Post Notifier Moudle in /post_123flashchat/config.php :
    

               $enable_module : if you want to enable the module, please set the value of this parameter 'yes';
               			default: $enable_module = 'yes';

               $enable_reply  : if you want to listen the "repaly" action in your forum or cms, please set the value of this parameter 'yes';
               			default: $enable_reply = 'yes';

               $enable_post   : ifo you want to listen the "post" action in your forum or cms, please set the value of this parameter 'yes';
               			default: $enable_post = 'yes';

               $enable_edit   : if you want to listen the  "edit" action in your forum or cms, please set the value of this parameter 'yes';
               			default: $enable_edit = 'yes';

               $host_url      : please fill in with your 123 Flash Chat software installed server port. 
         		        if you are 123flashchat.com host payment user please fill in with blank
               			Default:
			        Host payment user -> http://host718.123flashchat.com/yourgroupname/
			        Software User -> localhost

               $host_port     : please fill in with your 123 Flash Chat software installed server port. 
         		        if you are 123flashchat.com host payment user please fill in with blank. 
                                default:  $host_port = '35555';

               $host_id      : If you are an 123 Flash Chat Pro Software user, please fill with it.
                               default:  $host_id = 'default'; (not pro user)

	       $apipwd       : Please fill in with your notifier API password. It is for protect your API messager transfer.

               $effect_room  : Please fill in with your chat room id. If you want more than one rooms to get post notifier, please use "," to split rooms.
              		       You can get room id from 123 Flash Chat Software Admin Panel.
                               default: $effect_room = '1';

               $text_color   : Display color in the chat room. 
                               default: $text_color = '#000000';

               $post_text_message  : Edit "post message" for dispalying in effective rooms.
                                     default: $post_text_message = 'New post article from IPB: %SUBJECT% %URL%';

               $reply_text_message : Edit "reply message" for dispalying in effective room.
                                     default: $reply_text_message = 'New reply article from IPB: %SUBJECT% %URL%';
               $edit_text_message  : Edit "eidt message" for dispalying in effective room.
                                     default: $edit_text_message = 'New edit article from IPB: %SUBJECT% %URL%';


               Message instruction: %SUBJECT%: Subject of IPB post article
                                    %CONTENT%: Content of IPB post article
                                    %URL%: URL of IPB post article
               e.g:
               $post_text_message =  'New post article from IPB: %SUBJECT% %URL%';
               $reply_text_message =  'New reply article from IPB: %SUBJECT% %URL%';
               $edit_text_message =  'New edited article from IPB: %SUBJECT% %URL%';

	       $max_word           : Allow max words to be shown in a chat window,if number is not integer values or small than 10 words, it will auto change to 260 . 

done
                                                                