![]() |
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:
|
All times are GMT. The time now is 03:26 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:
|