Okay, it's done. The collection viewer script now shows the number of people who have viewed the collection.
I've tied this in with the main site counter (seen on the home page
), and have overhauled the whole script (again), to have the ability to count any page (or groups of pages) as required.
The main site counter used to only count "hits" on the HOME page of the site. Any time someone loaded that page (and only that page), the counter was incremented. All other hits/visits were ignored. This was an unsatisfying solution in two different ways: 1) sometimes people hit that page more than once per visit, 2) sometimes (a lot of times) people didn't hit that page at all per visit.
The new (and hopefully final) counter now counts each "visit" (not hit). It will only count you ONCE per visit to the site, no matter how many pages you load while you're here. Notice that hitting your refresh/reload button will not increment any of the counters (although occassionally it may appear to do so since the increment happens at the same time as the viewing... hit the button multiple times in a row to see what I mean).
Finally, since I've moved to this system of counting site visitors as opposed to home page hits, I was able to consult my webstats software for this number, since it maintained an accurate count of site visitors dating back to the beginning in July 2002. The count shown on the home page now shows this value. I find it very disappointing to have passed 100k this way, but it's nice to finally have a decent counter script running.