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)