Earlier: Is there a way to change the current, contemporaneous default for ALL subsequent visitors, including registered and unregistered visitors?
Response: ... we have manually set user preferences for both new and existing users using a SQL REPLACE() statement combined with LocalSettings defaults. This in effect brings every user to the same settings... use an UPDATE... REPLACE SQL query to bring all existing users to the same settings.
Peter Blaise responds: I'm always happy to learn more about the inner workings of the support programs for MediaWiki software. What would such a query look like, how about an example? How about putting it somewhere at http://www.MediaWiki.org/ and linking to it? Thanks!
Peter
I saw the earlier reply from Dan, below:
"Also there is a maintenance/ script specifically for tweaking user preferences without the need for constructing potentially messy SQL by hand."
Whilst I am not aware of the maintenance script (it would be somewhat helpful to mention it when referring to it) I defer to Dan as I was not aware there was one. I assume it is the userOptions.php script?
Rob himself has quite recently pointed out that at least one maintenance script should not be relied on to provide a known outcome. Several of the maintenance scripts appear not to have much text describing their use or what exactly they do to the database. So, for my very specific requirements I will stick with SQL (the non-messy variety!) as for the last year it has served me flawlessly and enabled me to become far more knowledgeable in terms of the core database and to have flexibility that I would otherwise not have had through a maintenance script.
Paul
On 10/25/07 10:49 AM, "Monahon, Peter B." Peter.Monahon@USPTO.GOV wrote:
Earlier: Is there a way to change the current, contemporaneous default for ALL subsequent visitors, including registered and unregistered visitors?
Response: ... we have manually set user preferences for both new and existing users using a SQL REPLACE() statement combined with LocalSettings defaults. This in effect brings every user to the same settings... use an UPDATE... REPLACE SQL query to bring all existing users to the same settings.
Peter Blaise responds: I'm always happy to learn more about the inner workings of the support programs for MediaWiki software. What would such a query look like, how about an example? How about putting it somewhere at http://www.MediaWiki.org/ and linking to it? Thanks!
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
I was wondering, if I wanted to make modifications on initialization, where would I put the code? Is there an "Wiki Initialize" hook? What is the very first hook that gets called?
Kimon
I think you would add require_once(path to your code) into LocalSettings.php. This is how MediaWiki learns about your extensions, be it special pages, hooks or whatever. So there is no point in having an initialization hook - during initialization you would tell MediaWiki about the hook that should be called during intitialization - why not just run your initialization code right away. Marko
On 10/26/07, KAndreou@rccl.com KAndreou@rccl.com wrote:
I was wondering, if I wanted to make modifications on initialization, where would I put the code? Is there an "Wiki Initialize" hook? What is the very first hook that gets called?
Kimon _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org