User:Austin J. Che/Extensions/WikiChat: Difference between revisions

From OpenWetWare
Jump to navigationJump to search
(New page: This extension enables chat on the wiki using [http://www.phpfreechat.net phpfreechat]. A special page is added at Special:Chat. Also, all pages have an extra chat tab added that automatic...)
 
No edit summary
 
(One intermediate revision by one other user not shown)
Line 12: Line 12:
==Source==
==Source==
<syntax type="php" file="http://austinche.name/mediawiki/WikiChat.php.txt">Source not found</syntax>
<syntax type="php" file="http://austinche.name/mediawiki/WikiChat.php.txt">Source not found</syntax>
[[Category:Extensions]]

Latest revision as of 14:52, 17 November 2007

This extension enables chat on the wiki using phpfreechat. A special page is added at Special:Chat. Also, all pages have an extra chat tab added that automatically takes people into a room of the given name.

Setup

A global object $wgWikiChat is defined. Variables that can be set:

  • $wgWikiChat->phpfreechat: relative location of the phpfreechat.class.php file. This will be included by php so should be relative to the php search path. Default is "phpfreechat/src/phpfreechat.class.php".
  • $wgWikiChat->defaultrooms: array of default rooms to have all users enter. The default is array("Lounge").
  • $wgWikiChat->params: array of params for phpfreechat (read the manual for phpfreechat). Default parameters are set for most parameters from wiki parameters. For example, the chat nick name for a user is the same as their user name on the wiki. Two parameters that probably need to be set or checked at least are the "theme_default_url" and the "data_public_url" which should be urls that point to the right places in the phpfreechat source directories.

To change the help text that appears under the chat window, edit MediaWiki:Wikichat-text.

Source

<syntax type="php" file="http://austinche.name/mediawiki/WikiChat.php.txt">Source not found</syntax>