On Thu, Apr 25, 2013 at 4:54 PM, Marcus (OOo) <marcus.m...@wtnet.de> wrote: > Hi Rob, > > it's great that you keep our download counter up-to-date. > > Because it's showing the numbers an a few webpages, IMHO it makes sense to > centralize the core number, so that only one location has to be updated and > no every webpage for itself. > > I could give you this little present. ;-) >
The thought has entered my mind. But I haven't come up with a great solution so far. The "master" value is whatever is in the 3rd column of the last row of this data file: http://www.openoffice.org/stats/aoo34-downloads.txt We'd need to extract that, divide by 1 million and truncate to get a value like "47". Then I assume it could be either put into its own Javascript file or processed by the CMS perl logic. The downside of having it be dynamic at runtime is when Google indexes the home page it will not execute the Javascript. Not a big deal perhaps? But idealyl we'd have this be a CMS build-time action, so the numbers are in the static pages and the pages is correct for users with Javascript disbaled. Ideally ideally the aoo34-downloads.txt would also be updated automatically based on calling the SourceForge REST API. Of course, this wouldn't be so bad if users didn't keep on downloading AOO 3.4.1 a million times every week. That's the real problem here! ;-) Regards, -Rob > Ciao > > Marcus > > > > Am 04/25/2013 03:47 PM, schrieb robw...@apache.org: > >> Author: robweir >> Date: Thu Apr 25 13:47:34 2013 >> New Revision: 1475768 >> >> URL: http://svn.apache.org/r1475768 >> Log: >> update download count >> >> Modified: >> openoffice/ooo-site/trunk/content/index.html >> >> Modified: openoffice/ooo-site/trunk/content/index.html >> URL: >> http://svn.apache.org/viewvc/openoffice/ooo-site/trunk/content/index.html?rev=1475768&r1=1475767&r2=1475768&view=diff >> >> ============================================================================== >> --- openoffice/ooo-site/trunk/content/index.html (original) >> +++ openoffice/ooo-site/trunk/content/index.html Thu Apr 25 13:47:34 2013 >> @@ -136,9 +136,9 @@ >> >> >> <div class="campaign"> >> -<h2>Over 44 million downloads of AOO 3.4</h2> >> +<h2>Over 47 million downloads of AOO 3.4</h2> >> >> - <p><em>31 March 2013:</em> Apache OpenOffice 3.4 was released in >> May. Downloads now exceed 44 million. We invite you to take a look at >> + <p><em>20 April 2013:</em> Apache OpenOffice 3.4 was released in >> May. Downloads now exceed 47 million. We invite you to take a look at >> <a href="http://stats.openoffice.org/">our interactive charts</a> >> of daily and cumulative downloads.</p> >> </div> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org > For additional commands, e-mail: dev-h...@openoffice.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org For additional commands, e-mail: dev-h...@openoffice.apache.org