I activated the new config framework and tests confirm it works in Konqueror, Firefox 2.0.0.4 Linux, IE7 Windows, and Safari Windows. If you refresh your browser cache you'll see a new config item in the ''misc'' tab of [[Special:Preferences]], you can toggle and save, and see how you can make the "Subpages" link in the toolbox vanish. If this is confirmed to be working (really make sure your caches are cleared and wait about half an hour before reporting a bug, I had similar problems as some people on the list today) we can add more config options and make more tools configurable.
Right now the options are stored in cookies, but you can also set options in your monobook.js if you want them more permanent.
On 7/5/07, Dschwen lists@schwen.de wrote:
Right now the options are stored in cookies, but you can also set options in your monobook.js if you want them more permanent.
I'm implementing a version that stores that settings to the wiki. I have already implemented an interface to save stuff to the wiki, see [[MediaWiki:EditPage.js]].
Bryan
I'm implementing a version that stores that settings to the wiki. I have already implemented an interface to save stuff to the wiki, see [[MediaWiki:EditPage.js]].
Interesting, let me propose the following: Let's just use your EditPage interface to generate a .js page with a certain name as a subpage to the current users userpage, i.e. User:Blah/jsconfig_settings.js Create the page such that it contains executable javascript which sets the variables correctly, i.e. JSconfig.keys['blah'] = 'blubb'; etc.. To restore the saved value we'll just includePage() this page by default. Should give decent performance.
The easiest thing to do would use JSconfig.keys.toSource(), and then wrap it into some some function:
page.save('JSconfig.readFromObject(' + JSconfig.keys.toSource() + ');')
Or maybe we should cache the config in a cookie, and only includePage the config in case a certain cookie is not set?
Bryan
On 7/5/07, Dschwen lists@schwen.de wrote:
I'm implementing a version that stores that settings to the wiki. I have already implemented an interface to save stuff to the wiki, see [[MediaWiki:EditPage.js]].
Interesting, let me propose the following: Let's just use your EditPage interface to generate a .js page with a certain name as a subpage to the current users userpage, i.e. User:Blah/jsconfig_settings.js Create the page such that it contains executable javascript which sets the variables correctly, i.e. JSconfig.keys['blah'] = 'blubb'; etc.. To restore the saved value we'll just includePage() this page by default. Should give decent performance. -- [[:en:User:Dschwen]] [[:de:User:Dschwen]] [[:fr:User:Dschwen]] [[:commons:User:Dschwen]]
Commons-l mailing list Commons-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/commons-l