Thread:Extension talk:Lockdown/Locdown on Special pages as a NS?

Hi I had a huge problem with nameSpaces and thus I an a bit reluctant to experiment. However what I want to do is a general lockdown on all special pages, less those to make a user login, and naturally a special namespace (say NS_Background). (Running 1.8.1)

Perhaps some of you have a suggestion or solution for me to do this?

I tried to lockdown everything, but the Background pages, like below. But I the anonymous user can't read the 'Background:' pages like this... so what did I miss?

$wgGroupPermissions['*' ]['edit']     = false; $wgGroupPermissions['*' ]['read']     = false; $wgNamespacePermissionLockdown[NS_Background]['read'] = array('*'); $wgNamespacePermissionLockdown[NS_Background]['edit'] = array('sysop');

What I really wanted to do is something like adding this, to the above:

$wgNamespacePermissionLockdown[NS_SPECIAL]['read'] = array('sysop'); ## Actually this may work?? $wgWhitelistRead = array ( < the special pages for search etc. > );

Alternately I would wish for at way to do something like this:

$wgWhitelistRead = array ("Background:", "Special:Search") /  array ("Background:*", .....) $wgWhitelistEdit = array ("Discussion") ## Giving permission to discus any readable page.

So I guess I could use some kind of "function call" to build that area something like:

$myWhiteListedNameSpaces = getAllNameSpacesAsAnArray("NS_Background") ## or say getAllCategoryPagesAsAnArray("Background") $wgWhitelistRead = array ("Getting started", $myWhiteListedNameSpaces )