Will someone please take a look at my site, for some reason it's only half working, viewed here www.707imports.com/vb3 - I don't get it. I've tried this like 10x's! I'd be willing to let someone login and fix it haha.
Elfo King, there is the answer:
Your statistics must be collected.
Quote:
Originally Posted by Olsufr
the code is right.
My hack shows visitor's statistics and indicates real time for it.
For example, if there are sessions in your SESSIONS table in DB only for 1 hour,
this hack shows as you say:
Quote:
Total users last 1h: 49 (34 members and 15 guests)
It is start only.
Later your statistics will be collected more and more hour by hour.
And after 24 hours hack will show statistics for 24 hours (no more).
Ehm, sorry....
Another question:
Where i can change the statistics for collect more hours?
I need to change the value of the Hourly Cleanup #1 and/or Hourly Cleanup #2 ?
I've had it installed for over 36 hours now and its still showing figures for 1h. In fact the figures seem to be all over the place:
Total users last 1h: 109 (94 members and 15 guests)
10 minutes later ...
Total users last 1h: 200 (181 members and 19 guests)
The actual number of active members that have been to the site all day is only 70 so where it is getting these figures from I have no idea. Could it be counting each and every visit by each member maybe?
I've had it installed for over 36 hours now and its stillshowing figures for 1h. In fact the figures seem to be all over theplace:
Total users last 1h: 109 (94 members and 15 guests)
10 minutes later ...
Total users last 1h: 200 (181 members and 19 guests)
The actual number of active members that have been to the site all dayis only 70 so where it is getting these figures from I have no idea.Could it be counting each and every visit by each member maybe?
Including Revisits from members, At least i think, as there reallyisn't a way of counting without checking against IP address.
Another question:
Where i can change the statistics for collect more hours?
I need to change the value of the Hourly Cleanup #1 and/or Hourly Cleanup #2 ?
Yes. To have statistics more than during 24 hours
you have to change this in my hack
(in includes/cron/cleanup.php
and includes/cron/cleanup2.php):
PHP Code:
$DB_site->query("
### Delete stale sessions ###
DELETE FROM " . TABLE_PREFIX . "session
WHERE lastactivity < " . intval(TIMENOW - 86400)
); // modified by Oleg S.for 24h visitors' statistics
to this:
PHP Code:
$DB_site->query("
### Delete stale sessions ###
DELETE FROM " . TABLE_PREFIX . "session
WHERE lastactivity < " . intval(TIMENOW - 1*24*60*60)
); // modified by Oleg S.for 24h visitors' statistics
where instead of 1 you can write another number (number of days of statistics)