Page 1 of 1

How To Add Ajax Chat (includes adding as shoutbox)

PostPosted: Fri May 29, 2009 4:53 pm
Author: .QUACK.Major.Pain
Ok, wasn't so hard. Took a little playing with, but got it working great.

Demo:

(Portal page) http://bindepot.net/forum/portal.php
(Forum page) http://bindepot.net/forum/index.php

This chat automatically logs you in with your forum name.

[size=99px]yoursite.com[/i]/forum/chat/install.php"
4. Delete the install file.
5. Open and edit the file "/chat/lib/config.php"

Find:

// Database username:
$config['dbConnection']['user'] = null;
// Database password:
$config['dbConnection']['pass'] = null;
// Database name:
$config['dbConnection']['name'] = null;

Edit:

Replace all the above "null" values with your database username, database password & database name

Save & Close

6. Open url "http://www.yoursite.com/forum/chat/index.php"
7. Welcome to your chat!!!!!!

Note: You can edit your "chat/lib/config.php" and adjust your setting as you see fit.
Myself, I turned off the nickname change feature.

[size=99px]yoursite.com[/i]/forum/chat/" scrolling="NO" width="100%" height="500" frameborder="0" marginheight="0" marginwidth="0" allowtransparency="true"></iframe>

Save & Close

2. (For portal page) Goto ACP>IM Portal>Blocks Management>Home Page(or whatever you called it)
Disable the existing Shoutbox
Create a new block and name it whatever you want.
Set it to "center"
Add the following line:

<iframe></iframe>

Turn on borders and such if you use any of the options.
Save/Submit


That's about it.

Enjoy.....