![]() |
24h Visitors' Statistics (members and guests)
A very simple display of statistics of all visitors (members and guests) who have visited the forum last 24 hours.
It displays the statistics on Forum Home in the section of "Users online": example: " Total users last 24h: 2692 (members : 741, guests : 1951) " There is no additional SQL query. ---------------------------------- Installation (there is in attached file) Step 1 In index.php Find: PHP Code:
PHP Code:
In includes/cron/cleanup.php and in includes/cron/cleanup2.php Find: PHP Code:
PHP Code:
Add new phrase Phrase Type: GLOBAL Varname: active_users_24h Text: Code:
Total users last {1}h FORUMHOME template modification Find: Code:
<a href="online.php?$session[sessionurl]">$vbphrase[currently_active_users]</a>: $totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>) Code:
<a href="online.php?$session[sessionurl]">$vbphrase[currently_active_users]</a>: $totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>) |
Just so you know, i've already released one myself here https://vborg.vbsupport.ru/showthrea...threadid=72972 :)
|
Quote:
|
ericgtr, my hack counts, shows members and guests statistics.
It is different. |
Quote:
|
Nice mod. I have the other one installed but I like the ability for this one to count guess users as well.
|
Having an issue, It only seems to show users from the last 1h. It reads on my forum home
Total users last 1h: 49 (34 members and 15 guests) This number has been fluxuating up and down as time passes. Where do I need to look to fix this? |
i likey i really likey i installed
update justinstalled took nomore than 6 minutes |
Quote:
Step 3. ################################################## ################ Add new phrase Phrase Type: GLOBAL Varname: active_users_24h Text: Total users last {1}h it should be 24 but waht do i no im not a coder |
KanyeWest, 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:
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). Quote:
|
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.
user : tester pw : pwforpaul |
I actually installed a different version of this hack and it worked, yay! Thanks anyways!
|
Nice mod - thanks for sharing :)
|
Quote:
this hack shows who Visited in the last 24 hours. For example, yours doesn't pick up guests. |
Quote:
not for 24......solution ?? |
Elfo King, there is the answer:
Your statistics must be collected. Quote:
|
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 ? Thx :p |
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? |
Quote:
|
Quote:
you have to change this in my hack (in includes/cron/cleanup.php and includes/cron/cleanup2.php): PHP Code:
PHP Code:
and in index.php instead of this (lines of hack): PHP Code:
PHP Code:
|
Yup, same here.
http://forums.nzboards.com I think I saw 2 hours once, but that was it. *edit* Ahh, I was a moron. You have to edit both of the /includes/cron/ files (as per the instructions), or it doesn't work. |
Tried this hack .. idea is good but every time a member comes back to the main page the stats jump up in number = to the number of members / guests viewing main page.
Every main page refresh adds the number of existing viewers to the exisiting total. |
Guess this didn't work out...
I added this hack, but like most peple here, I noticed how the member stats kept rising whenever anyone (whether it was someone who visited just now or 10min ago) would add to the stats. After removing it from forumhome (since I was gonna see about working with it later) and adjusting the clock on the server, it shows over 2000 members online! It caused the CPU to max out to 100%, to the point where I had to close the forum and delete the sessions. It seems things are up and running again, but now it shows "Most users ever online was 2142, Today at 09:21 AM.", as well as showing members who are online when they shouldn't be online (within showthread) =/ |
TTG, it is using standard (for vB3) online system. I didn't change anyone here.
|
Whatever this is doing isn't right. It says in the past 7 hours I've had 4974 members and 576 guests. I don't even have that many registered members.
*uninstalls* |
am i doing something wrong?
mine just shows like this.... (see screen shot it just shows amount of threads and thats about it |
Thank You, I was looking for this modification for a long long time !! :)
|
this hack i still use today from first realease its awseom
Total users last 24h: 542 (345 members and 197 guests) www.idenonfire.com/forums/ still usin proudly |
Quote:
Quote:
|
to get rid of that bold error you have to check your file changes again and make sure you did the template changes as well
|
Code:
Step 3. ################################################################## |
Quote:
|
thanks much
|
I just had a database error, I didn't think it was caused by this mod until now. My site just came back up, and I noticed that the users within 24 hours reset and is now at 1 hour.
Here is the error i got: Quote:
|
Quote:
|
Quote:
|
Quote:
|
Can this hack be modified to report unique visits by members and guests? If not, any pointers before I go in and attempt the modification myself? Sure appreciate your help. Thanks.
--Robert |
The instructions on the initial post by the author and the ones in the attached text file are different, which ones am i suppose to follow? I've followed the ones from the attached file only and the mod doesn't seem right... figures its showing simply cannot be accurate.
Help please? :( |
Will this work with vB 3.5.4?
|
All times are GMT. The time now is 12:07 AM. |
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:
|