Manual talk:$wgDefaultUserOptions

Missing variables ?
Hi! Is there an updated list? e.g., i cant find options for "Add pages I create to my watchlist, Add pages I edit to my watchlist, and "Notify per maail for changes on articles on my watch list". --Nyks 11:36, 24 November 2006 (UTC)

Hallo! The list seems to be a litttle out of date :) I think you can use every parameter which are stored in the user_options field of the user table in the database. Tried to add extra search namespace with $wgDefaultUserOptions ['searchNs102'] = 1; and it worked. The paramter rcdays for the last x days of recent changes worked also fine and is not documented here. To index the wgDefaultUserOptions array, I just simply use the terms I saw in user_options field of the database.

Recent update
I've just updated the default values with the values explicitly set in DefaultSettings.php for 1.8.0. I am in the process of checking later versions, and as I do so I will document any changes to this default set that have occurred.

I am a little unsure as to how the various default preference settings interact, and how this has changed between versions (as far as I know the only structural change happened in 1.8.0). For example, it appears that in earlier versions, each language defined all settings, and $wgDefaultUserOptions was empty in DefaultSettings.php, allowing you to override the language defaults in LocalSettings.php. However in 1.8.0 this was changed so that the languages are now considered 'overrides' for this default array. However, the code that gets the defaults still gives $wgDefaultUserOptions precedence, so I'm not sure how quickbar settings (for example) can vary between languages. Also, I'm not sure what happens if something is not defined either in the language or in the config setting - is there a hard-coded default that is used?

Anyway, the update is good as far as it goes - I would appreciate any suggestions about how to make this page more complete/accurate (aside from bringing the default values up to date, which I will do). A large part of this is understanding how this setting is used. What the page shouldn't do is give defaults set in the language files, otherwise it will become huge - it might be appropriate to link to SVN for that though?

Note that the settings which I removed from the big table were apparently checked (by me) against HEAD, but I'm not sure what version we were on then. I'm currently thinking that the values as set in DefaultSettings.php are what we should be showing here, as they are the bits that won't change depending on language. If needed, the previous version can be seen here.

--HappyDog 22:46, 17 December 2007 (UTC)


 * Also, I'm not sure how $wgNamespacesToBeSearchedDefault fits into this. Anecdotally, $wgDefaultUserOptions seems to take precedence, but looking at the code (albeit very briefly) it appears that it is the other way round.  Hmmmm.... --HappyDog 22:52, 17 December 2007 (UTC)