پلاگين خوبي هست. فايل را از
اينجا دانلود كنيد .
و مراحل نصبش هم كه توي فايل readme قرار داده شده است .
Step 1, Install module files to your MYBB:
File Copy
copy 123flashchat/ to
<MYBB installed directory root>/123flashchat/
copy /images/toplinks/icon_123flash_chat.gif to
<MYBB installed directory root>/images/toplinks/icon_123flash_chat.gif
Step 2, Navigate to ACP->Templates & Style -> Templates->Manage Template Sets->Default Templates->Header Templates->header, and past the following string
after <ul>
<script language="javascript" src="{$mybb->settings['bburl']}/123flashchat/chatwinsize.php"></script>
<li><a href="javascript:openChat();"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/icon_123flash_chat.gif" alt="" title="" />Chat</a></li>
Step 3, Navigate to ACP->Templates & Style -> Templates->Manage Template Sets->Default Templates->Index Page Templates->index_stats and past the following at
the end of the template
<tr><td class="tcat"><span
class="smalltext"><strong>Chat</strong></span></td></tr>
<tr>
<td class="trow1">
<span class="smalltext">
{$chat_info['connections']}
{$chat_info['logon_users']}
{$chat_info['room_numbers']}
{$chat_list}
</span>
</td>
</tr>
Step 4, Edit file: <Mybb install directory>/index.php
FIND:
$lang->load("index");
ADD AFTER
// begin 123 flash chat mod include
require_once MYBB_ROOT."123flashchat/functions_chat.php";
$chat_info = getChatters();
$chat_list = getChatterList();
if ( $running_mode != 3){
$chat_info['room_numbers'] = 'There are <b>'.$chat_info['room_numbers'].'</b> rooms<br>';
$chat_info['connections']= 'There are <b>'.$chat_info ['connections'].' </b> connections<br>';
}
$chat_info['logon_users']= 'There are <b>'.$chat_info['logon_users'].' </b> logon users<br>';
$chat_list = 'User list: <b>'.$chat_list.' </b> <br><br><a href="javascript:openChat();">Chat now</a>';
//end 123 flash chat mod >
Step 5, Configure chat module's running mode:
1). Please choose the running mode according to your needs.
Configuration path:
<MYBB installed directory>/123flashchat/flashchatconf/config.php
Configure the following parameters:
$running_mode
Configuration reference:
$running_mode = 1; (only 1 or 2 or 3)
2). Configure the parameters of the running mode you choose.
1. Chat server is hosted by your own ($running_mode = 1).
If your chat is hosted by your own, 123FlashChat server software should be installed at first,
please download 123FlashChat:
http://www.123flashchat.com/download.html.
Configuration path:
<MYBB installed directory>/123flashchat/flashchatconf/config_local.php
Configure the following parameters:
$chat_group
$client_size_width
$client_size_height
$chat_data_path
$primary_server_host
$primary_server_port
$client_location
$swf_file_name (modification is not recommended)
Configuration reference:
$chat_group = "default";
$client_size_width = 634;
$client_size_height = 476;
$chat_data_path = "<123flashchat install directory>/server/data/default/"; (repalce to real URL)
$primary_server_host = "localhost";
$primary_server_port = 51127;
$client_location = "http://YOUR REAL CLIENT FOLDER URL/client/"; (repalce to real URL)
$swf_file_name = "123flashchat.swf";
2. Chat server is hosted by 123flashchat.com ($running_mode = 2).
If your chat is hosted by 123Flashchat.com, no 123FlashChat server software is needed to be installed;
you may connect to your host chat room directly.
Configuration path:
<MYBB installed directory>/123flashchat/flashchatconf/config_host.php
Configure the following parameters:
$client_size_width
$client_size_height
$client_location
Configuration reference:
$client_size_width = 634;
$client_size_height = 476;
$client_location = "http://host*.123flashchat/your host ID/"; (repalce to real URL)
3. Chat server is hosted by 123flashchat.com free of charge ($running_mode = 3).
If you need to use this service, no 123FlashChat server software is needed to be installed,
we will provide you free chat room, and you can choose the room name as you want.
Configuration path:
<MYBB installed directory>/123flashchat/flashchatconf/config_free.php
Configure the following parameters:
$room_name
$client_size_height
$client_location
Configuration reference:
$room_name = "YourRoomName";
$client_size_width = 800;
$client_size_height = 700;
(If you leave $room_name as blank, the default $room_name's value will be your domain's name.)
Step 6, Integrate your chat with MYBB user database
If you choose running mode 1 or mode 2, integration is needed, you may achieve this by following the instructions below.
1. Log in the Admin Panel of your 123FlashChat server
OPEN: System Settings -> Integrate Panel
2. Find: DataBase -> SELECT: URL -> edit
3. Change URL:
http://<MYBB install directory>/123flashchat/login_chat.php?username=%username%&password=%password%
4. Press OK to save your setting.