Difference between revisions of "Mediawiki installation, customization and operation"

From Madagascar
Jump to navigation Jump to search
Line 1: Line 1:
 
==Defense against spammers and vandals==
 
==Defense against spammers and vandals==
 +
===Allowing only registered users to edit the wiki===
 +
This is a measure that was deemed necessary after two years of daily undo-and-block warfare against spammers.
 +
To set or unset it,
 +
===Disabling registration of new users===
 +
This is a temporary measure, to be used as a stopgap against large attacks, until a permanent effective measure has been found.
 +
===Disabling media uploads===
  
 
==Customization==
 
==Customization==

Revision as of 20:09, 16 April 2011

Defense against spammers and vandals

Allowing only registered users to edit the wiki

This is a measure that was deemed necessary after two years of daily undo-and-block warfare against spammers. To set or unset it,

Disabling registration of new users

This is a temporary measure, to be used as a stopgap against large attacks, until a permanent effective measure has been found.

Disabling media uploads

Customization

Footer

To insert the images/links to the Ohloh, Sourceforge and Cafepress, edit includes/Skin.php to replace the default function getPoweredBy() with:

<php>

       function getPoweredBy() {
               global $wgStylePath;
               $ohloh = '<script type="text/javascript" src="http://www.ohloh.net/p/348236/widgets/project_thin_badge.js"></script>';
               $sf1='<a href="http://sourceforge.net/projects/rsf">';
               $sf2='<img src="http://sflogo.sourceforge.net/sflogo.php?group_id=162909&type=13" width="120" height="30" border="0" ';
               $sf3='alt="Get Madagascar at SourceForge.net. Fast, secure and Free Open Source software downloads"/></a> ';
               $sourceforge = $sf1.$sf2.$sf3;
               $url = htmlspecialchars( "$wgStylePath/common/images/poweredby_mediawiki_88x31.png" );
               $banner = htmlspecialchars( "/wikilocal/style/store.png" );
               $store = '<a href="http://www.cafepress.com/m8r">
               <img src="'.$banner.'" width="88" height="31" border="0" alt="Madagascar Store" /></a> ';
               $img = $ohloh.$sourceforge.$store.'<a href="http://www.mediawiki.org/"><img src="'.$url.'" alt="MediaWiki" /></a>';
               return $img;
       }

</php>