Extension talk:Chat

Great Idea
This extension will be very interesting when be done. It's really an amazing idea, thanks for developing it and let mediawiki better and better. Lleoliveirabr 18:59, 29 March 2007 (UTC)

Ideas
I think the chat page could have all people that are browsing all pages, and not be separated by article. So in the chat will appear the user name of people and what "article" pages they are browsing. I don't know if is a good idea store all chats in discussion page. i think it's a lot of information. The idea of show in top of pages how many people is browsing the page is an excellent idea. But i think the way the message appear could be easily customized. Lleoliveirabr 03:00, 31 March 2007 (UTC)

Keeping Chat off of public pages
I run a members only wiki, so I have a few public pages but the rest is private. In LocalSettings, I use $wgGroupPermissions and $wgWhitelistRead to keep guests out of the members area. With this extension, it puts a chat tab on every page. Despite the above settings in my LocalSettings, guests can still bring up the chat screen. I don't want this. In the future, it looks like there will be an option to include the tab only on certain pages.

I don't know php, but modified WikiChat.php from:

function onUnknownAction($action, $article) { global $wgOut, $wgSitename, $wgCachePages, $wgUser, $wgTitle; $wgCachePages = false; if($action == 'chat') { if($wgUser->isAnon) { $nick = "Guest";

to:

function onUnknownAction($action, $article) { global $wgOut, $wgSitename, $wgCachePages, $wgUser, $wgTitle; $wgCachePages = false; if($action == 'chat') { if($wgUser->isAnon) { return true;

I know someone just cringed, but it seems to work as guests cannot now chat. They are taken to a MediaWiki error page about a bad URL. I've never seen that error come up before, so I changed the error message to something like "You must be a member to chat".

Does anyone have something better I could stick there to keep guests from getting into chat? David Shenk 19:51, 30 May 2007 (UTC)
 * I would do something like:

function onUnknownAction($action, $article) { global $wgOut, $wgSitename, $wgCachePages, $wgUser, $wgTitle; $wgCachePages = false; if($action == 'chat') { if($wgUser->isAnon) { $wgOut->addWikiText('Anonymous Users are not allowed into this chatroom'); return false; --Firebreather 09:01, 6 June 2007 (UTC)


 * In fact I just added an option to disallow anonymous users and display a message to login. See the ChangeLog for version 0.2, review the Optional Parameters section and download/install the new version from WikiChat.php --Firebreather 09:57, 6 June 2007 (UTC)

Thanks Firebreather, I'll try the newest version. Thank you for your work on this extension! David Shenk 09 Sep 2007

Special Page Version error
After adding Chat (and it works great!) I'm getting the following error when I try to view the Version page, it won't come up at all:

Catchable fatal error: Object of class WikiChat could not be converted to string in domain.com/wiki/includes/SpecialVersion.php on line 241

Any ideas?
 * I've had that before on some of my extensions too and found a fix which I've added to WikiChat, try downloading again and see if it's fixed. --Nad 07:30, 2 June 2007 (UTC)
 * I also applied a fix about 2 weeks ago for a problem that caused the Special:Version page to crash, so should hopefully be all sorted now. Please post a comment if not. --Firebreather 08:19, 6 June 2007 (UTC)

Can't add the tab
Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\wiki\extensions\WikiChat.php:1) in C:\xampp\htdocs\wiki\includes\WebResponse.php on line 10

This might have to do something with the fact that I already have an extra tab (Extension:Attribute) although I can't find any special page for chat in Specialpages either. 354d 17:59, 20 August 2007 (UTC)

Multiple Chat Room Problems
I have a problem using the "$params["channels"] = array($wgTitle->getPrefixedText);" setting. It seems that whenever I go to the WIKI after manually clearing the cache ( or reinstalling) - I get the chatroom created for the first page I try the chat tab from. It will not create separate rooms for each page. Any thoughts?

MediaWiki 1.11 - using MYSQL container