The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
24h Visitors' Statistics (members and guests) Details »» | |||||||||||||||||||||||||||
24h Visitors' Statistics (members and guests)
Developer Last Online: Mar 2005
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>) </td> 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>) <phrase 1="$time24">$vbphrase[active_users_24h]</phrase>: $numbertotal24 (<phrase 1="$numberregistered24" 2="$numberguest24">$vbphrase[x_members_and_y_guests]</phrase>) </td> Show Your Support
|
Comments |
#22
|
||||
|
||||
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. |
#23
|
||||
|
||||
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. |
#24
|
||||
|
||||
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) =/ |
#25
|
|||
|
|||
TTG, it is using standard (for vB3) online system. I didn't change anyone here.
|
#26
|
|||
|
|||
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* |
#27
|
|||
|
|||
am i doing something wrong?
mine just shows like this.... (see screen shot it just shows amount of threads and thats about it |
#28
|
||||
|
||||
Thank You, I was looking for this modification for a long long time !!
|
#29
|
||||
|
||||
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 |
#30
|
||||
|
||||
Quote:
Quote:
|
#31
|
||||
|
||||
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
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|