Extension:Chat

What can this extension do?

 * Adds a Chat tab to every wiki Article that switches to an embedded chatroom with the same name as the article title.


 * Uses PhpFreeChat.


 * Storage is just to the filesystem at the moment.


 * Come to WikiChat.org for more information and to help with the development.


 * This extension is in the early stages of development. I only just got it working. Many more things to do. Come to WikiChat.org for details.

Usage
Once the extension is installed, a 'chat' tab will appear on every article. Clicking on the chat tab will switch to an embedded chatroom for the article.

Installation
Just five easy steps:-
 * 1. Download PhpFreeChat 1.0-beta10 and install it into your wiki somewhere. I have mine under /wiki/phpfreechat.


 * 2. Find the following file: phpfreechat/lib/xajax_0.5_beta1/xajax_core/xajaxResponse.inc.php and replace function getOutput with the function in this article xajaxResponse.inc.php


 * 3. Copy the WikiChat.php code into the extensions directory.


 * 4. Modify the paths at the top of WikiChat.php to point to your PhpFreeChat installation:-

require_once "$IP/phpfreechat/src/pfcglobalconfig.class.php"; require_once "$IP/phpfreechat/src/phpfreechat.class.php";


 * 5. Add this line to the end of LocalSettings.php:-

The chat function should be working now. Please report any issues to Firebreather

Optional Parameters
All the optional parameters are in WikiChat.php. They are parameters to PhpFreeChat. You need to refer to the PhpFreeChat documentation for information about how to change them.

Tip:-

The default setting is to open a new chatroom tab for each article. This is set by the following line in WikiChat.php

$params["channels"] = array($wgTitle->getPrefixedText);

If you would like to have all articles share one room then you need to change that line to something similar to:-

$params["channels"] = array("MyChatRoom");

All articles will now put users entering through the chat tab, into the chatroom named MyChatRoom.

Coming soon

 * A dynamic show whos online control to let all your wiki users know whos online right now. This feature has been developed and is currently being tested on WikiChat.org
 * Currently the chat tab appears on every article. Soon you will be able to select which articles have the chat function enabled.