Chat Software, Flash Chat, PPV, Site Messenger, Live Chat

Share

Subscribe to 123FlashChat Facebook Twitter
How to add a chat room to MyBB?

How to add a chat room to MyBB?

To add a feature-rich chat room to your MyBB, please refer to the following instructions.

Firstly, please download MyBB chat module, and uncompress the package.

Download MyBB

Then copy files:
1. Copy: folder 123flashchat/
To: <MyBB installed directory>/123flashchat/

2. Copy: /images/toplinks/icon_123flash_chat.gif
To: <MyBB installed directory>/images/toplinks/icon_123flash_chat.gif

Secondly, edit files.
1. Login your website admin panel->Templates & Style -> Templates->Manage Template Sets->Default Templates->Header Templates->header.

Find
<ul>

After add

<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>

2. Login your website admin pane ->Templates & Style -> Templates->Manage Template Sets->Default Templates->Index Page Templates->index_stats

Then please copy the following code, and paste them in the end.

<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>

3. Please open <MyBB installed directory>/index.php

Find:
$lang->load("index");

After Add:

// 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();">Click here to start chatting</a>';
//end 123 flash chat mod >


Thirdly, configure MyBB chat module's running mode.
Please choose the running mode according to your need, and the configuration path is
<MyBB installed directory>/123flashchat/flashchatconf/config.php.

Then configure the following parameters:
$running_mode

Configuration reference:
$running_mode = 1; (only 1 or 2 or 3)

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.

Download 123 Flash Chat

Configuration path:
<MyBB installed directory>/123flashchat/flashchatconf/config_local.php

Configure the following parameters:
$chat_group = "default";
$client_size_width = 634;
$client_size_height = 476;
$chat_data_path = "<123flashchat installed directory>/server/data/default/";
$primary_server_host = "localhost";
$primary_server_port = 51127;
$chat_client_root_path = “http://localhost/client”;
$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 = 634;
$client_size_height = 476;
$client_location = "http://host*.123flashchat.com/hostname/";

3. Chat server is hosted by 123flashchat.com free of charge ($running_mode = 3).
If you prefer free hosting, then you don't have to install 123 Flash Chat server software, we take care the hosting and all you need to do is just pick a room name you want.

123 Flash Chat Free Hosting

Configuration path:
<MyBB installed directory>/123flashchat/flashchatconf /config_free.php

Configure the following parameters:
$room_name = "YourRoomName";

(If you leave $room_name as blank, the default $room_name's value will be your domain's name.)
$client_size_width = 634;
$client_size_height = 476;

Fourthly, integrate your chat with MyBB user database, after doing that, users can auto-login your MyBB chat, it means they won't have to enter their accounts again.If you choose running mode (1) or mode (2), you need to set Auth-URL by following the instructions below.

1. Log in the Chat Admin Panel.

2. Server Settings -> Integration ->DataBase -> SELECT: URL -> edit.

3. Change URL to
http://<MyBB installed directory>/123flashchat/login_chat.php?username=%username%&password=%password%

4. Press OK to save your setting.

5. Restart chat server at Server Management -> Restart.

The following image describes how auth-URL integration works.

The Auth-URL application will perform as the communicating medium of the chat server and the database, i.e.: in fact, when a user logs on a chat server, the server won't connect to the user database directly, instead, it will send the username and password to the Auth- URL. Then the Auth- URL requests the database to authenticate the user. Finally, the Auth- URL will return the feedback to the chat server in a predefined way, whether approved or declined.

Integration done, enjoy your chat.


If you have any questions about chat room, please visit http://www.123flashchat.com/faq.html.
You can also send email to [email protected], we offer free integration service for license buyer and yearly hosting buyer.

Products Chat Software
3rd Party Chat Plug-in & Chat Modules
Dating Software About Us
Flash Chat Software
PPV Chat Software
Web Messenger Software
Live Help Chat Software
PHP Chat Scripts
Facebook Messenger
Online Webcam Chat Software
Site Messenger Software
Java Chat Server
Online Chat Software
Free Video Chat Rooms
WordPress Chat Plugin
phpBB Chat Module
SMF Chat Module
Joomla Chat Module
Mambo Chat Module
IPB Chat Module
TypePad Chat Widget
vBulletin Chat Module
DotNetNuke Chat Module
Drupal Chat Module
Moodle Chat Module
e107 Chat Module
SkaDate Chat Addon
Datingpro Chat Module
Dolphin Chat Module
phpFoX Chat Module
JomSocial Chat
Contact us
Company Blog
Partnership
Affiliate
Forum

Share 123 Flash Chat:

Copyright © TopCMM Software Limited 2001-2013 All Rights Reserved. Privacy policy | Terms of Use | SiteMap | Links