Hi,
I wonder if there is an extension or a way so that it makes it easy to 'copy - paste' images in mediawiki ? I have to make a few work instructions with a lot of images and I would gain significant time if I can copy-paste the pictures instead of uploading them. Regards, Philippe Dhont.
Howdy,
I'm trying to reset the values on the Special:Statistics page to 0. After banging my head against the Mediawiki website and google for an answer I have not been able to find a way. The maintenance script "clear_stats.php" says it resets the values, but when I run it they are not changed. I also tried initStats.php, but nothing changed with that either.
I believe clear_stats.php is what should work since it is described as "Resets statistics in the Special:Statistics page", which sounds like exactly what I need, yet nothing happens when I run it. In the script it says it removes all statistics tracking from memcached, which is probably not the same as resetting the values to 0.
The initStats.php is described within the script as "re-initialize or update the site statistics table", which I assume means to flush the cache to update the table. So this probably is not what I need either.
Anyone know of a way to reset the statistics to 0? I guess I could go into the DB and do it manually, but I'd rather avoid that if possible.
Thanks for any advice in advance... -Jim
On Fri, Jul 16, 2010 at 2:15 PM, Sullivan, James (NIH/CIT) [C] sullivan@mail.nih.gov wrote:
Howdy,
Hi!
[snip]
I believe clear_stats.php is what should work since it is described as "Resets statistics in the Special:Statistics page", which sounds like exactly what I need, yet nothing happens when I run it. In the script it says it removes all statistics tracking from memcached, which is probably not the same as resetting the values to 0.
clear_stats.php is only useful for Memcached. Slightly counter-intuitive I'm sure :)
The initStats.php is described within the script as "re-initialize or update the site statistics table", which I assume means to flush the cache to update the table. So this probably is not what I need either.
No. initStats.php is designed to rebuild it and recount it.
Anyone know of a way to reset the statistics to 0? I guess I could go into the DB and do it manually, but I'd rather avoid that if possible.
The only way to *reset* them to 0 (as in, you don't want any of your current pages counted, etc) would be to update the site_stats table and set all the values (there's only 1 row) to 0. Note that deleting the row would make it regenerate all the stats, not force them to recount, so you have to set the numbers to 0.
-Chad
Philippe Dhont wrote:
Hi,
I wonder if there is an extension or a way so that it makes it easy to 'copy - paste' images in mediawiki ? I have to make a few work instructions with a lot of images and I would gain significant time if I can copy-paste the pictures instead of uploading them. Regards, Philippe Dhont.
There are some programs able to upload images in batches (eg. communist) You could also upload them all to the server and import them with the importImages script.
mediawiki-l@lists.wikimedia.org