[Mediawiki-l] Changing default preferences for users / enforc ing default prefer ences

Alistair Johnson JohnsonA at rembrandt.co.nz
Wed Dec 22 22:15:41 UTC 2004


Thanks Brion, the database option may be the best for us as I don't really
want the support hassles of people changing the defaults.  Do you know if
there's a data dictionary I can reference for the preferences blob, or
should I just examine the code (any idea which script file to look at)?

Cheers,

al.

-----Original Message-----
From: Brion Vibber [mailto:brion at pobox.com]

On Dec 22, 2004, at 12:49 PM, Alistair Johnson wrote:
> I'd like to enforce preferences for my user base - for example the 
> template used & the areas searched in (I need to include Images in the 
> default search).

In 1.4 you can override the defaults in $wgDefaultUserOptions. This (or 
the defaults in Language.php) will be used for those not logged in and 
newly created accounts.

You cannot override users' actual settings unless you go through and 
change them in the database or change the User code to discard certain 
fields.



More information about the MediaWiki-l mailing list