Extension:ChatLogin
|
|
This page is a candidate for deletion. The given reason is: Has just been copied from Extension:CgiIrcLogin. SVG 17:47, 5 February 2012 (UTC)
This notice should remain for a minimum of 1 week after it was placed on the page. If discussion is still ongoing, it should remain until a consensus is reached, after which the page will either be deleted or this notice removed. If you disagree with its deletion, please discuss your reasons on this page or on its associated talk page, as applicable. Remember to check if anything links here and the page history before deleting. Last edit by SVG (talk · contrib) · Last edited on Sun, 05 Feb 2012 17:47:36 +0000 |
|
ChatLogin Release status: stable |
|
|---|---|
| Implementation | User interface |
| Description | Provides a small textbox to login automatically in Chat |
| Author(s) | Laximilian scokenTalk |
| Last version | 1.0 |
| License | No license specified |
| Download | see below |
|
Check usage (experimental) |
|
ChatLogin provides a small textbox to login automatically in a Chat.
Contents |
[edit] Usage
Just add the following line to any page.
<chat>http://example.com/irc</chat>
Make sure you put the right url to your irc
[edit] Download instructions
Please cut and paste the code found below and place it in $IP/extensions/Chat.php. .
[edit] Installation
To install this extension, add the following to LocalSettings.php:
require_once("$IP/extensions/Chat.php");
[edit] Code
[edit] Chat.php
<?php // (c) Laximilian scoken 2010 // Chat Login Extension // Version 1.0 $wgExtensionCredits['parserhook'][] = array( 'name' => 'ChatLogin', 'version' => '1.0', 'author' => 'Laximilian scoken', 'url' => 'http://de.bakugan.wikia.com/', 'description' => 'Fuegt den Tag <nowiki><chat></chat></nowiki> hinzu.', 'descriptionmsg' => 'chat-desc', ); $dir = dirname(__FILE__) . '/'; $wgExtensionMessagesFiles['Chat'] = $dir . 'Chat.i18n.php'; $wgExtensionFunctions[] = "wfChatExtension"; function wfChatExtension() { global $wgParser; $wgParser->setHook( "chat", "printchat" ); } function printchat( $input, $argv ) { global $wgParser; $wgParser->disableCache(); $output = "<form action=\"$input\" method=\"post\">". "Nickname: <input name=\"Nickname\" type=\"text\" value=\"\" />". "<input name=\"Channel\" type=\"hidden\" value=\"#mediawiki\" />". "<input name=\"format\" type=\"hidden\" value=\"default\" />". "<input name=\"interface\" type=\"hidden\" value=\"ie\" />". "<input type=\"submit\" value=\"Chat\">". "</form>"; return $output; }
[edit] Chat.i18n.php
<?php /* Internationalisation file for ChatLogin extension */ $messages = array(); /** English(Englisch) * @author Laximilian scoken */ $messages['en'] = array( 'chat-desc' => 'Add the Tag <nowiki><chat></chat></nowiki>.', ); /** German (Deutsch) * @author Laximilian scoken */ $messages['de'] = array( 'chat-desc' => 'Fuegt den Tag <nowiki><chat></chat></nowiki> hinzu.', );
| Language: | English • Deutsch |
|---|
