Hi,
I want to disable the "RecentChanges" special page on my Mediawiki 1.16 version even for user that are logged in. I have tried two different methods:
1. Using Lockdown extension I added the following in my LocalSettings.php require_once( "$IP/extensions/Lockdown/Lockdown.php" ); $wgSpecialPageLockdown['RecentChanges'] = array('sysop'); $wgSpecialPageLockdown['Export'] = array('sysop'); With the above I was able to disable the "Export" special page but not the RecentChanges special page.
2. As per [1] I did the following in my LocalSettings.php: function disableSomeSpecialPages(&$list) { unset($list['RecentChanges']); unset($list['Export']); return true; } $wgHooks['SpecialPage_initList'][]='disableSomeSpecialPages';
but even that does not help. Any ideas?
Thanks!
[1] http://www.mediawiki.org/wiki/Manual:Special_pages#Disabling_Special:UserLog...
On Sun, Nov 21, 2010 at 9:21 PM, Tech Geek techgeek12345@gmail.com wrote:
- Using Lockdown extension I added the following in my LocalSettings.php
require_once( "$IP/extensions/Lockdown/Lockdown.php" ); $wgSpecialPageLockdown['RecentChanges'] = array('sysop'); $wgSpecialPageLockdown['Export'] = array('sysop'); With the above I was able to disable the "Export" special page but not the RecentChanges special page.
The casing on special pages is a bit of a gotcha. You actually need $wgSpecialPageLockdown['Recentchanges'] = array('sysop');
On Sun, 21 Nov 2010, Benjamin Lees wrote:
On Sun, Nov 21, 2010 at 9:21 PM, Tech Geek techgeek12345@gmail.com wrote:
- Using Lockdown extension I added the following in my LocalSettings.php
require_once( "$IP/extensions/Lockdown/Lockdown.php" ); $wgSpecialPageLockdown['RecentChanges'] = array('sysop'); $wgSpecialPageLockdown['Export'] = array('sysop'); With the above I was able to disable the "Export" special page but not the RecentChanges special page.
The casing on special pages is a bit of a gotcha. You actually need $wgSpecialPageLockdown['Recentchanges'] = array('sysop');
Since I the the drupal authorization extension, I've been wanting to disable the User Login page on the wiki--I want people to log in securely through Drupal, which has modules that handle this well.
So I assume the above with 'Userlogin' ?
Thanks!
On Sun, Nov 21, 2010 at 11:00 PM, David Benfell benfell@parts-unknown.org wrote:
Since I the the drupal authorization extension, I've been wanting to disable the User Login page on the wiki--I want people to log in securely through Drupal, which has modules that handle this well.
So I assume the above with 'Userlogin' ?
Lockdown will let you make Special:Userlogin inaccessible easily enough, but it won't hide links to it, and you'll probably want to customize the error message it gives.
mediawiki-l@lists.wikimedia.org