Jeremy,
Do you have a diff of this hack into statistics.module? I believe that if we can get Rahul to import the diff (either with diff or editing the file manually) his problem would be solved?
Regards,
Kobus
jazepstein@gmail.com 7/15/2005 10:38:08 AM >>>
Hi Rahul,
A hit counter for the front page of your site is possible, using statistics.module and a bit of custom code. Have a look at the front page of my site for an example of this. My hit counter is accurate, because I've hacked statistics.module to record hits only for unique IP's per page, and because the SQL to get the hit count groups the hits by IP.
However, what I've done is little more than a messy hack job, not official code. Also, the price for a hit counter like mine is (as Kobus pointed out) longer page loads, due to the extra database querying.
Jeremy Epstein www.greenash.net.au
On 7/14/05, Rahul Benegal rahulbenegal@gmail.com wrote:
I do have the statistics module configured. a) However, it does not give me a total for hit across the site. b) Also, if a person comes to front page only and doesnt go further, i dont think the stats would show that.
What i mean by (a) is that if person A clicks on item 1 and person B clicks on item 2, i get 1 read in each item. But is that 2 people or 1 (the same person who clicked on two items). Also, in this case i would have to go to each item and manually total the "reads" to get a figure of hits. And "reads" doesnt correspond to IP's.
So i think a block saying how many hits on the front page would still be required.
Someone here suggested a means of doing so. I shall try, if anyone else makes it, please post me.
thanks for all the help, rahul benegal.
-- [ Drupal support list | http://lists.drupal.org/ ]