Share

Subscribe to 123FlashChat Facebook Twitter
How to add a chat room to your PHP-Nuke

How to add a chat room to your PHP-Nuke

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

Firstly,please download PHP-Nuke chat module, and uncompress the package.

Download PHP-Nuke chat module


Then copy the following files.

1. Copy: blocks/block-123_Flash_Chat_Server.php
To: <PHP-Nuke installed directory>/blocks/block-123_Flash_Chat_Server.php
This file is very essential to your PHP-Nuke chat room.

2. Copy: folder modules/123flashchat/
To: <PHP-Nuke installed directory>/modules/123flashchat/


Secondly, configure PHP-Nuke chat module's running mode.

1. Please choose the running mode according to your need.

Configuration path:
<PHP-Nuke installed directory>/modules/123flashchat/flashchatconf/config.php

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

123 Flash Chat Free Download

Configuration path:
<PHP-Nuke installed directory>/modules/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;
$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:
<PHP-Nuke installed directory>/modules/123flashchat/flashchatconf /config_host.php

Configure the following parameters:

Configuration reference:
$chat_group = "default";
$client_size_width = 634;
$client_size_height = 476;
$primary_server_host = "www.123flashchat.com";
$primary_server_port = 51128;
$chat_client_root_path = "http://host*.123flashchat.com/hostname/";
$swf_file_name = "123flashchat.swf";


(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:
<PHP-Nuke installed directory>/modules/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.)


Thirdly, install the module in the admin panel

Please enter your PHP-Nuke website admin panel -> Blocks -> Add a New Block -> configure as following:

Install the module in the admin panel


Fourthly, integrate your chat with PHP-Nuke user database, after doing that, users can single sign-on your PHP-Nuke 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 System Settings -> Integrate Panel ->DataBase -> SELECT: URL -> edit

System Settings -> Integrate Panel ->DataBase -> SELECT: URL -> edit

3 Change URL to
http://<PHP-Nuke installed directory>/modules.php?name=123flashchat&op=login&username=%username%&password=%password%

 Change URL

4 Press OK to save your setting.

5 Restart chat server at System Management -> Restart

The following image describes how auth-URL integration works.

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.

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 support@123flashchat.com, we offer free integration service for license buyer and yearly hosting buyer.

About Us | Contact us | Company Blog | Partnership | Affiliate | Forum | Privacy policy | Terms of Use | SiteMap | Links

Call Sales Now! USA 408-728-6398, UK +44-20-3286-1986, HK +852-8121-1988

Share 123 Flash Chat:

Copyright © TopCMM Software Limited 2001-2014 All Rights Reserved.