Nevermind, I jumped the gun on that one.   Not all of the options are listed
in under $wgDefaultUserOptions.  In my case, to hide the ability to search
all namespaces or select namespaces to search in, this did the job:

$wgHiddenPrefs = array
(
        'searcheverything',
        'searchnamespaces'
);

Hope that helps someone else too.

Regards,
Sal

-----Original Message-----
From: Sal Quintanilla [mailto:[email protected]] 
Sent: Monday, December 05, 2011 4:07 PM
To: 'MediaWiki announcements and site admin list'
Subject: RE: [Mediawiki-l] Custom Namespace hidden from search

Actually I take back "perfect" a little.   $wgHiddenPrefs seems to be the
right thing to use, but there's no documented support for hiding the ability
to hide the "Advanced options" box under "Search options".  Looking at
includes/Preferences.php doesn't show any code that would respond to
$wgHiddenPrefs in that way either.  Am I stuck editing Preferences.php?

-----Original Message-----
From: Sal Quintanilla [mailto:[email protected]] 
Sent: Thursday, December 01, 2011 7:02 PM
To: 'MediaWiki announcements and site admin list'; '[email protected]'
Subject: RE: [Mediawiki-l] Custom Namespace hidden from search

Perfect, thanks Dan

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Daniel Barrett
Sent: Thursday, December 01, 2011 6:19 PM
To: [email protected]; MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] Custom Namespace hidden from search

Add some JavaScript to MediaWiki:Common.js that hides the items on
Special:Preferences that you don't want shown.

If you have a later Mediawiki, you can use the $wgHiddenPrefs array to hide
specific areas of Special:Preferences.

DanB


_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to