Last modified: 2011-07-09 01:47:55 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T24689, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 22689 - Commons __HIDDENCAT__ (change the default setting for logged-in users)
Commons __HIDDENCAT__ (change the default setting for logged-in users)
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Site requests (Other open bugs)
unspecified
All All
: Low enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
: shell
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-03-02 00:34 UTC by User:Docu
Modified: 2011-07-09 01:47 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description User:Docu 2010-03-02 00:34:35 UTC
Following the discussion at http://commons.wikimedia.org/w/index.php?title=Commons:Village_pump&oldid=36042358#Hidden_categories:_change_the_default_setting_for_logged-in_users 
please change the default configuration for Commons to display "Hidden Categories" (categories marked with __HIDDENCAT__ ) by default to all logged-in users. Users that don't want to view them may de-select this in User preferences.
Comment 1 Foroa 2011-06-14 11:57:20 UTC
Quite important for contributors to Commons.
Comment 2 Bawolff (Brian Wolff) 2011-06-17 19:26:56 UTC
(For reference, the preference in question is 'showhiddencats')

I'm unsure if this is a simple shell request. To make it be shown for everyone by default is easy - $wgDefaultUserOptions['showhiddencats'] = 1; However I don't think there is a config option to make it on by default for logged in users, and off by default for logged out users.
Comment 3 User:Docu 2011-06-19 05:45:02 UTC
I put the summary back to "Commons __HIDDENCAT__ (change the default setting for logged-in users) " from "Have 'showhiddencats' option set to on by default for logged in users, but off for logged out users "

It might be easier to change the stylesheets at Commons for logged-in users and just display these categories.
Comment 4 User:Docu 2011-06-19 10:43:55 UTC
I left a note at [[Commons:MediaWiki_talk:Common.css#mw-hidden-cats-user-shown]]. That might be the better forum for this.
Comment 5 Sam Reed (reedy) 2011-07-09 00:45:51 UTC
Setting


+'wgDefaultUserOptions' => array(
+    'commonswiki' => array( 'showhiddencats' => true ),
+),

With true/1, we get

Global default '' is invalid for field math
Backtrace:
#0 /usr/local/apache/common-local/php-1.17/includes/Preferences.php(1154): Preferences::getPreferences(Object(User))
#1 /usr/local/apache/common-local/php-1.17/includes/specials/SpecialPreferences.php(70): Preferences::getFormObject(Object(User))
#2 /usr/local/apache/common-local/php-1.17/includes/SpecialPage.php(578): SpecialPreferences->execute(NULL)
#3 /usr/local/apache/common-local/php-1.17/includes/Wiki.php(251): SpecialPage::executePath(Object(Title))
#4 /usr/local/apache/common-local/php-1.17/includes/Wiki.php(63): MediaWiki->handleSpecialCases(Object(Title), Object(OutputPage), Object(WebRequest))
#5 /usr/local/apache/common-local/php-1.17/index.php(114): MediaWiki->performRequestForTitle(Object(Title), NULL, Object(OutputPage), Object(User), Object(WebRequest))
#6 /usr/local/apache/common-local/live-1.5/index.php(3): require('/usr/local/apac...')
#7 {main}


which isn't much use....
Comment 6 Bawolff (Brian Wolff) 2011-07-09 01:37:29 UTC
Presumably that's overriding the entire array, which is unsetting all the other defaults, which causes problems. Most of the other code in InitialiseSettings.php seem to do $wmgSomething = 'blah'; and then in CommonSettings.php $wgDefaultUserOptions['something'] = $wmgSomething;
Comment 7 Sam Reed (reedy) 2011-07-09 01:47:55 UTC
(In reply to comment #6)
> Presumably that's overriding the entire array, which is unsetting all the other
> defaults, which causes problems. Most of the other code in
> InitialiseSettings.php seem to do $wmgSomething = 'blah'; and then in
> CommonSettings.php $wgDefaultUserOptions['something'] = $wmgSomething;

<logmsgbot> !log reedy synchronized php-1.17/wmf-config/InitialiseSettings.php  'Testing showhiddencats for commons'
<morebots> Logged the message, Master
<logmsgbot> !log reedy synchronized php-1.17/wmf-config/CommonSettings.php  'Testing showhiddencats for commons'
<morebots> Logged the message, Master

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links