Extension talk:WebChat

Error: Cannot access database after loading Extension:WebChat

edit

I loaded Extension:WebChat in my LocalSettings.php. My wiki is now inaccessible. $wgShowExceptionDetails set to 'true' reveals that (Cannot access database) is the issue. However, this issue has never happened before loading Extension:WebChat. I am sure I configured something incorrectly.

I proceeded to remove the WebChat directory from /mediawiki/extensions and remove the $wfLoadExtension( 'WebChat' ); from my LocalSettings.php file in the hopes this would bring me to a blank slate, but this did nothing to improve the state of affairs. Restarted MariaDB multiple times. I am perfectly able to access the database from the backend, so I know it is not down. Status is 'running'.

What gives? If anyone has come across this before, do tell. I am fine with not having a chatbox page; it was mostly an experiment, so if in the end the wiki is functional without WebChat, I would be more than happy. AIter Schwede (talk) 03:19, 12 November 2023 (UTC)Reply


May I see an example configuration for the wiki global variables?

edit

--Informationalwikigroup 21:27, 8 August 2009 (UTC)Reply


No files in downloadarea

edit

Any chance of putting them up there again? Thanks. Extension looks great!

Mibbit ignores a fixed-width wiki

edit

It really makes this extension unusable if you have a wiki which is set ot a fixed or max width. This extension seems to only work at 100% so if you have say a 1200 width wiki and view this extension on a 1900x1200 screen it makes it impossible to use.

This is really annoying. Any work around or way to make the IRC applet a fixed width?
My solution

Look at the end of the file 'WebChat_body.php' You have to comment this line:

    /*	'onLoad'    => 'webChatExpand( this )',*/

The you would choose width and height above. Otherwise, try to modify function webChatExpend bellow.

have fun, ZafX

Made a change to page

edit

Someone left a comment at the end of the first paragraph saying that the extension didnt work with freenode. Ive removed that sentence replaced it with what needs done to get it to work with freenode - ie Install it as described taking account of an ambiguity in the instructions where freenode is concerned. Its just the servername thats blank, not the channel too, this must be set to a channel that is already set up on freenode.

timestamp

edit

is there a way to add timestamps to the chat? --gahoo

Username

edit

Is it possible to make usernames always like this: "Wikiname-Username" instead of "Username" ? Thanks, 94.208.4.89 11:58, 6 December 2009 (UTC)Reply

Just spent a long time working it out, but yes you can. In "extensions/WebChat/WebChat_body.php", find this line
case '$$$nick$$$':
if ( $wgUser->isLoggedIn() ) $value = str_replace( ' ', '_', $wgUser->getName() );
and change " $wgUser->getName() " to " 'wikname-' . $wgUser->getName() "

Is there any way to log these chats?

edit

Tisane 22:11, 2 April 2010 (UTC)Reply

Might be doable by adding an on-wiki config or another global. Not too hard. If you know a little PHP, please give it a try and submit a patch in bugzilla:. siebrand 14:43, 21 April 2010 (UTC)Reply

Cannot

edit

Why do not gives ? I put all it and do not gives, why ? 201.43.187.177 14:01, 24 August 2010 (UTC)Reply

bad English. I have no idea what you want. Adamtheclown 15:42, 5 December 2010 (UTC)Reply

Encoding

edit

I need russian charset windows-1251. How can I switch it on?

Erroneous Nickname

edit

On: translatewiki:Special:WebChat

I get the error: $$$nick$$$ Erroneous Nickname

http://gyazo.com/134ed15c67b2e69577a623beac74a043.png

Adamtheclown 15:43, 5 December 2010 (UTC)Reply

It appears like translatewiki does not have the username and password like strategywiki,
http://strategywiki.org/wiki/Special:WebChat
thus the error. Adamtheclown 15:46, 5 December 2010 (UTC)Reply
I get the same error on http://strategywiki.org/wiki/Special:WebChat
It is a placeholder that PHP replaces with the wikiUsername if logged in. However when logged out it leaves it as it, which results in an error as that is not a valid IRC name. If I recall correctly there is some kind of magic character that you can use that will make Mibbit choose an available nickname for you (# or *, whatever). So you'd let PHP, if logged-out replace '$$$nick$$$' with "{$wgSitename}-Guest-###"). That way people that aren't techsavvy can actually click Special:WebChat and join the channel without having to figure out what $$$nick$$$ means and how to get around the error. Krinkle 00:38, 30 September 2011 (UTC)Reply
@Krinkle: Has this issue ever been figured out so an IP user can login to a project channel. I guess I'm hoping for a change "Y" to "X" fix.

Implementation of discussion forum

edit

I would like to know how to imple3ment a discussion forum using wiki like in a social networking site

Hi, have a look at the extension WikiForum. Cheers --[[kgh]] 06:51, 13 May 2011 (UTC)Reply

Hi thanks for your help. i am getting the following error "You are not allowed to install WikiForum. Admin rights required. Make sure that you are logged-in and added the correct rights into LocalSetting.php file of MediaWiki. The following lines of code needs to be added in LocalSetting.php: "...please help which file should i be modifying to get the privelages. I have the username with me

It looks like you are on some wikifarm. The best way is to ask the system administrator, do not confuse him with the wiki administrator, for help. Cheers --[[kgh]] 11:49, 13 May 2011 (UTC)Reply

Per $_GET['server'] or something similar

edit

On the configuration, replace

$wgWebChatChannel = '#{WHATEVER}';

with

if ((!empty($_GET['server'])) && (!is_null($_GET['server']))) {
  $wgWebChatChannel = '#' . $_GET['server'];
} else {
  $wgWebChatChannel = '#{WHATEVER}';
}

It works by checking if the URL contains a &server={WHATEVER} or ?server={WHATEVER} so on your pages, you can use [{{FULLURL:Special:Webchat|server={WHATEVER}} chat on channel {WHATEVER}] to link to it. Maybe this could implement some REGEX to make sure the server name is valid...

  • NOTE: You MUST use the {{FULLURL:{WHATEVER}}} parser function as this adds get variables.
    • This edit URL is /w/index.php?title=Extension_talk:WebChat&action=edit
    • If I try /wiki/Extension_talk:WebChat&action=edit, Mediawiki will try to load the page Extension_talk:WebChat&action=edit and that does not exist...

Just thought I'd through it out there. --Colejohnson66 01:52, 8 September 2011 (UTC)Reply

is_null is redundant with empty(). You probably meant 'channel' instead of 'server'. Perhaps something like this:
if ( isset( $_GET['channel'] ) && $_GET['channel'] !== '' ) {
  $wgWebChatChannel = '#' . strtolower( trim( $_GET['channel'] ) );
} else {
  $wgWebChatChannel = '#{WHATEVER}';
}
Krinkle 00:44, 30 September 2011 (UTC)Reply

Download isn't working :(

edit

Can anyone provide a download link, because Mediawikki is dropping a error when im trying to download it. THANK YOU :) --Markus

Mibbit Chat Client isn't working

edit

To me it was not enough to set $wgWebChatClient = 'Mibbit'; in LocalSettings.php

I had to change the url in /exteinsions/WebChat/WebChat.php.

'url' => 'http://embed.mibbit.com/index.html' should be replaced withhttps://widget00.mibbit.com/index.html or https://widget01.mibbit.com/index.html .

1.3.0 update

edit

The update is not advancing the version number, just a poke :) Mlpearc (open channel) 16:45, 23 March 2016 (UTC)Reply

HTTPS Support?

edit

Is there going to be support for wiki websites with HTTPS?

Return to "WebChat" page.