##############################################################
## MOD Title: 123 Flash Chat Server Integrated Mod
## MOD Author: 123fcserver < hide@address.com > (Daniel Jiang) http://www.123flashchat.com
## MOD Description: Realtime Chat Mod for users to use 123 Flash chat Server(a java chat server with flash client).
## MOD Version: 6.8.0 (For 123 flash chat server version 6.8 and Invision Power Board 1.3 Final)
##
## Installation Level: Intermediate
## Installation Time: 5 Minutes
## Files To Edit:
## skin/s1/skin_boards.php
## skin/s1/skin_global.php
## lang/en/lang_global.php
## index.php
##
## Included Files:123flashchat.php
## Includes/functions_chat.php
## style_images/1/123flashchat.gif
## style_images/1/icon_123flash_chat.gif
##
##
##############################################################
## Notes:
##
## IMPORTANT!!!!
## Before you install this mod, please download 123 Flash Chat Server software from
## http://www.123flashchat.com/download.html
## to get the lastest free demo version of 123 flash chat server software
##
## Please read the Readme.txt, there is
## IMPORTANT & NECESSARY installation information
##
## IPB mod for 123 flash chat server demo: http://demo.123flashchat.com/ipb/
##
## Get support from : http://www.123flashchat.com/support.html
## We provide online form support, email support, online live support, and phone support etc.
##
## Good luck, have a nice day!
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ COPY ]------------------------------------------
# Before starting the Mod installation,
# please make sure you have copied
# 2 files:123flashchat.swf,client.xml
# and 3 directories : help,lang and skin to the relevant destination
# as we mentioned in the readme.txt.
# if not,please refer the readme.txt
#
copy 123flashchat.php to 123flashchat.php
copy Includes/functions_chat.php to includes/functions_chat.php
copy style_images/1/123flashchat.gif to style_images/1/123flashchat.gif
copy style_images/1/icon_123flash_chat.gif to style_images/1/icon_123flash_chat.gif
#
#-----[ OPEN ]------------------------------------------
#
includes/functions_chat.php
#
#-----[ FIND ]------------------------------------------
#
$chat_data_path = "C:/Program Files/123FlashChatServer5.1/server/data/default";
#
#-----[ REPLACE WITH ]----------------------------------
#
# if you installed the 123 flash chat server software in /your_123_flash_chat_server_installed_dir
# then you can set the parameter of "chat_data_path" to "/your_123_flash_chat_server_installed_dir/server/data/default"
# If your system is unix,
# please make sure your php can read and write the /your_123_flash_chat_server_installed_dir/server/data/default/online.txt file,
#
$chat_data_path = "/your_123_flash_chat_server_installed_dir/server/data/default/";
#
#-----[ OPEN ]------------------------------------------
#
skin/s1/skin_boards.php
#
#-----[ FIND ]------------------------------------------
#
global $ibforums;(Ln 102)
#
#-----[ AFTER, ADD ]------------------------------------------
#
// 123 flash chat server --- begin
$var = getchatters();
$listvar = getChatterList();
if ($listvar == "")
$listvar=$ibforums->lang['flashchat_listnone'];
$chatstr = $ibforums->lang['flashchat_thereare']." <b>".$var['connections']."</b> ".$ibforums->lang['flashchat_connection']."<br>\n";
$chatstr .= $ibforums->lang['flashchat_thereare']." <b>".$var['logon_users']."</b> ".$ibforums->lang['flashchat_users']."<br>\n";
$chatstr .= $ibforums->lang['flashchat_thereare']." <b>".$var['room_numbers']."</b> ".$ibforums->lang['flashchat_roomnumbers']."<br>\n";
$chatstr .= $ibforums->lang['flashchat_liststr']." <b>".$listvar."</b>";
// 123 flash chat server --- end
#
#-----[ FIND ]------------------------------------------
#
<td class='row4' width='95%'><b>$total</b> $birth_lang<br />$birthusers</td>
</tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- 123 flash chat server integration begin -->
<tr>
<td class='pformstrip' colspan='2'>{$ibforums->lang['flashchat_stats']}</td>
</tr>
<tr>
<td class='row2' width='5%' valign='middle'><a href="http://www.123flashchat.com" onclick="openChat();return false;" onmouseover="window.status='{$ibforums->lang['flashchat']}';return true;"><img src="{$ibforums->vars['img_url']}/123flashchat.gif" border="0" alt="" /></td>
<td class='row4' width="95%" align='left'>{$chatstr}</td>
</tr>
<!-- 123 flash chat server integration end -->
#
#-----[ OPEN ]------------------------------------------
#
skin/s1/skin_global.php
#
#-----[ FIND ]------------------------------------------
#
<a href='{$ibforums->base_url}' title='Board Home'><img src='{$ibforums->vars['img_url']}/logo4.gif' alt='Powered by Invision Power Board' border="0" /></a>
</div>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- 123 flash chat server begin -->
<script language="Javascript" type="text/javascript">
<!--
function openChat()
{
window.open('123flashchat.php', '_123flashchat', 'HEIGHT=476,resizable=yes,WIDTH=634');;
}
//-->
</script>
<!-- 123 flash chat server end -->
#
#-----[ FIND ]------------------------------------------
#
<img src="{$ibforums->vars['img_url']}/atb_help.gif" border="0" alt="" /> <a href='{$ibforums->base_url}act=Help'>{$ibforums->lang['tb_help']}</a>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
<!-- 123 flash chat server begin -->
<img src="{$ibforums->vars['img_url']}/icon_123flash_chat.gif" border="0" alt="" /> <a href="javascript:openChat();">{$ibforums->lang['flashchat']}</a>
<!-- 123 flash chat server end -->
#
#-----[ OPEN ]------------------------------------------
#
index.php
#
#-----[ FIND ]------------------------------------------
#
require ROOT_PATH."sources/functions.php";
#
#-----[ AFTER, ADD ]------------------------------------------
#
require ROOT_PATH."Includes/functions_chat.php";
#
#-----[ OPEN ]------------------------------------------
#
lang/en/lang_global.php
#
#-----[ FIND ]------------------------------------------
#
log_in => "Log In",
#
#-----[ AFTER, ADD ]------------------------------------------
#
// 123 Flash Chat Server Software language begin
flashchat => "Chat",
flashchat_stats => "Chat Statistics",
flashchat_thereare => "There are",
flashchat_connection => " user connected to the chat server",
flashchat_users => " logon chatters",
flashchat_roomnumbers => " Chat rooms",
flashchat_liststr => "Chatting users:",
flashchat_listnone => "None",
// 123 Flash Chat Server Software language end
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM