![]() |
Visitor Totals Last 24hrs
ported for 3.5.x.
It's a cool hack if you like to look at your total hits in a 24hr day from both members and guests. 1 PHP Modification to includes/cleanup.php 1 Template Mod. to Forumhome 1 Product Pluggin Instructions and XML are in the zip. I will support this hack but should be much trouble with it. Been running it since vB 2.2 I think. When you first install this hack it will only track from the time the last sessions cleanup was completed. After a sessions cleanup it will start over or reset to 1hr again. Then track the hours in increments for 24hrs. Then clean out the sessions table and start over again. Sessions cleanups should normally occur at midnight. This hack works if you remove the old code in the cleanup.php and replace it with the new information in the readme. For information cleanout2.php dose not run hourly like implied in the cron tab. It is set for 5 min after midnight. Jelsoft set it that way and not sure why it is titled a hourly cleanup in the scheduled task. In any event it is needed to reset the script for the next day. Good luck and I will do my best to answer any questions. Thanks to Paul M. for pointing out a bug I kept overlooking. |
nice
|
very nice, thank you :D
|
Simple but effective .. thanks
Clicked install |
I forced an Hourly CleanUp and got this error...
Parse error: parse error, unexpected ']' in /home/gsnforce/public_html/forum/includes/cron/cleanup.php on line 26 |
How do I edit it to say 24 hours rather than 1hrs?
It works even with that error. |
Not an error. It counts up to 24 hrs. Check it in another hour.
|
I've been waiting for this! Thanks..
Does this use cookies? IP checks? Just curious... |
It uses sessions table in the mysql. It changes the cleanup.php to leave the sessions table alone for 24hrs to collect the data. Then counts userid's and totals them up. Guests are assigned a userid of 0 by vB to be able to separate them from members.
No cookies (Although cookies are made with sessions information) and no IP checks. |
Quote:
Is there a way to change the time from saying last 1 hours to last 24 if it logs the last 24 why have it say last hour? |
All times are GMT. The time now is 11:28 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|