To add a feature-rich chat room to your Skadate, please refer to the following instructions.
Firstly, please download Skadate chat module, and uncompress the package.
Then copy the following files.
1. Copy: folder 123flashchat/
To: <Skadate installed directory>/123flashchat/
This file is very essential to your Skadate chat room.
2. Copy: admin/templates/123flashchat_service.html
To: <Skadate installed directory>/admin/templates/123flashchat_service.html
Secondly, edit files.
1. Open <Skadate installed directory>/components/NavigationMenuMain.cmp.php
Find
$main = SK_Navigation::menu('main');
After Add
array_push($main,array('label'=>"Chat",'href'=>SITE_URL.'123flashchat/123flashchat.php" target="_blank','active'=>'','sub_menu'=>array()));
2. Open <Skadate installed directory>/admin/inc.admin_menu.php
Find
'services' => array
(
'autocrop' => array
(
'href' => URL_ADMIN.'services.php?service=autocrop',
'label' => 'FaceJuggle'
),
'chuppo' => array
(
'href' => URL_ADMIN.'services.php?service=chuppo',
'label' => 'Chuppo'
)
),
Change To:
'services' => array
(
'autocrop' => array
(
'href' => URL_ADMIN.'services.php?service=autocrop',
'label' => 'FaceJuggle'
),
'chuppo' => array
(
'href' => URL_ADMIN.'services.php?service=chuppo',
'label' => 'Chuppo'
),
'123flashchat' => array
(
'href' => URL_ADMIN.'services.php?service=123flashchat',
'label' => '123 Flash Chat'
)
),
3. Open <Skadate installed directory>/admin/services.php
Find
switch ( $active_tab )
{
case 'autocrop':
case 'chuppo':
$template = $active_tab.'_service.html';
break;
default:
$template = 'autcrop_service.html';
break;
}
Change To:
switch ( $active_tab )
{
case 'autocrop':
case 'chuppo':
case '123flashchat':
$template = $active_tab.'_service.html';
break;
default:
$template = 'autcrop_service.html';
break;
}
Thirdly, configure Skadate chat module's running mode.
Please login Skadate admin panel -> click "addons" -> click "123 Flash Chat" tab, and then choose the running mode according to your need, and configure the following
parameters:
Hosting mode
1. Chat server is hosted by your own
If your chat is hosted by your own, 123FlashChat server software should be installed at first, please download 123FlashChat.
Then configure the following parameter:
Client location: http://<your website URL>/client/
2. Chat server is hosted by 123flashchat.com
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.
Then configure the following parameter:
Client location: http://host*.123flashchat.com/hostname/
3. Chat server is hosted by 123flashchat.com free of charge
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.
Configure the following parameter:
Chat room name: YourRoomName
(If you leave "Chat room name" as blank, the default "Chat room name" value will be your domain's name.)
Fourthly, integrate your chat with Skadate user database, after doing that, users can single sign-on your Skadate 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://<Skadate 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 support@123flashchat.com, we offer free integration service for license buyer and yearly hosting buyer.