Difference between revisions of "Extension:EmailToWiki"

From Organic Design wiki
(create from template ready for discussion)
 
(notes)
Line 3: Line 3:
 
# - Licenced under LGPL (http://www.gnu.org/copyleft/lesser.html)
 
# - Licenced under LGPL (http://www.gnu.org/copyleft/lesser.html)
 
# - Author: [http://www.organicdesign.co.nz/nad User:Nad]
 
# - Author: [http://www.organicdesign.co.nz/nad User:Nad]
+
# - See http://www.mediawiki.org/wiki/Extension:EmailToWiki for installation and usage details
 +
 
 +
# Rather than relying on WikiD to login and update the wiki,
 +
# it can instead use a simpler Perl script which can be run from the crontab and
 +
# use the SimpleForms extension's content query-string option to append the article.
 +
# Editing in this way can be restricted to particular categories or IP's
 +
 
 
if (!defined('MEDIAWIKI')) die('Not an entry point.');
 
if (!defined('MEDIAWIKI')) die('Not an entry point.');
+
 
 
define('EMAILTOWIKI_VERSION','0.0.0, 2007-05-25');
 
define('EMAILTOWIKI_VERSION','0.0.0, 2007-05-25');
+
 
 
$wgExtensionFunctions[]        = 'wfSetupEmailToWiki';
 
$wgExtensionFunctions[]        = 'wfSetupEmailToWiki';
 
$wgHooks['LanguageGetMagic'][] = 'wfEmailToWikiLanguageGetMagic';
 
$wgHooks['LanguageGetMagic'][] = 'wfEmailToWikiLanguageGetMagic';
+
 
 
$wgExtensionCredits['other'][] = array(
 
$wgExtensionCredits['other'][] = array(
 
'name'        => 'EmailToWiki',
 
'name'        => 'EmailToWiki',
Line 18: Line 24:
 
'version'    => EMAILTOWIKI_VERSION
 
'version'    => EMAILTOWIKI_VERSION
 
);
 
);
+
 
 
# Called from $wgExtensionFunctions array when initialising extensions
 
# Called from $wgExtensionFunctions array when initialising extensions
 
function wfSetupEmailToWiki() {
 
function wfSetupEmailToWiki() {
 
}
 
}
+
 
 
?>
 
?>

Revision as of 02:01, 28 May 2007

<?php

  1. Extension:EmailToWiki
Info.svg These are the MediaWiki extensions we're using and/or developing. Please refer to the information on the mediawiki.org wiki for installation and usage details. Extensions here which have no corresponding mediawiki article are either not ready for use or have been superseded. You can also browse our extension code in our local Subversion repository or our GitHub mirror.

Template:PhpCategory:Extensions created with Template:Extension

  1. - Licenced under LGPL (http://www.gnu.org/copyleft/lesser.html)
  2. - Author: User:Nad
  3. - See http://www.mediawiki.org/wiki/Extension:EmailToWiki for installation and usage details
  1. Rather than relying on WikiD to login and update the wiki,
  2. it can instead use a simpler Perl script which can be run from the crontab and
  3. use the SimpleForms extension's content query-string option to append the article.
  4. Editing in this way can be restricted to particular categories or IP's

if (!defined('MEDIAWIKI')) die('Not an entry point.');

define('EMAILTOWIKI_VERSION','0.0.0, 2007-05-25');

$wgExtensionFunctions[] = 'wfSetupEmailToWiki'; $wgHooks['LanguageGetMagic'][] = 'wfEmailToWikiLanguageGetMagic';

$wgExtensionCredits['other'][] = array( 'name' => 'EmailToWiki', 'author' => 'User:Nad', 'description' => 'Allows emails to be sent to the wiki and added to an existing or new article', 'url' => 'http://www.mediawiki.org/wiki/Extension:EmailToWiki', 'version' => EMAILTOWIKI_VERSION );

  1. Called from $wgExtensionFunctions array when initialising extensions

function wfSetupEmailToWiki() { }

?>