WhitelistReadNamespace

WhitelistReadNamespace is a Mediawiki Extension which allow anonymous read permission for all specified namespaces. It is very simple to install and use. It works only if this option is set in LocalSettings.php:

$wgGroupPermissions['*']['read'] = false;

Install

To install the extension you’ll need Subversion":http://subversion.tigris.org, because there is no package for this extension. Execute the commands following:

cd /path/to/your/mediawiki
cd extensions
svn export http://svn.milk-it.net/open/whitelistreadnamespace/trunk/WhitelistReadNamespace.php

Using

To use the WhitelistReadNamespace is very simple, just add the following line to LocalSettings.php:

require_once("extensions/WhitelistReadNamespace.php");

Configuring

The WhitelistReadNamespace adds support to $wgWhitelistReadNamespace variable, which works the same way as $wgWhitelistRead. In $wgWhitelistReadNamespace you inform an array with the id of namespaces. See the example:

$wgWhitelistReadNamespace = array( 100, 101 );

Now, with this configure the namespaces with id 100 and 101 are allowing anonymous read.