Version: 2.31, by Paul M
Developer Last Online: Nov 2023
Version: 3.0.x
Rating:
Released: 11-08-2004
Last Update: 07-23-2005
Installs: 627
No support by the author.
This modification is no longer available or supported.
A very simple display of all members who have visited the forum 'today' (i.e. since midnight). I looked at the existing hacks that apparently do this, and they either seemed over complicated or had a lot of problems, so I wrote my own simple version.
The main features of Version 2.xx are ;
1. It displays the list on Forum Home under the "Users online" display.
2. The list view is collapsable, so you just see the number.
3. Invisible users are only displayed to those allowed to see them (with a "*")
4. Users who should display as coloured or bold etc should be displayed correctly. (based on the display usergroup)
5. If you 'hover' over a username it will show the time they were last active.
6. The list is in member name order.
If you prefer, then there is an option to make this hack display a rolling 24 hours - un-comment the relevant line in the code.
Addons: ericgtr has created a CMPS module for this hack, you will find the files here. paul41598 has created a pop-up display instead of the collapsable display, you will find the files here.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Do i have to change the value "$cutoff = $now - 86400 " if my forum's default time is GMT+1 ? Because at midnight, the number of users who have visited the forum doesn't init.
Do i have to change the value "$cutoff = $now - 86400 " if my forum's default time is GMT+1 ? Because at midnight, the number of users who have visited the forum doesn't init.
Great hacks anyway thanks :-)
That piece of code will give a rolling count for the previous 24 hours and is commented out (unless you have removed the "//"). It is only there as a backup because the vbdate function was not working on some systems - allthough some people are using it by default because this is what they want to do.
That piece of code will give a rolling count for the previous 24 hours and is commented out (unless you have removed the "//"). It is only there as a backup because the vbdate function was not working on some systems - allthough some people are using it by default because this is what they want to do.
Thanks for this explanation. I'm using Vb 3.04 and i was forced to remove the // before the code ; Otherwise all users were listed. So, if i well understand, now this hacks is "Who connected last 24 hours"
I just installed this mod with vb 3.0.5 and it works great. I made some changes and I am posting what I did if you want to have an option that does not require altering the index.php.
1 : create a php file called whos.online.today.php with the following and upload to the root of the forum. :
PHP Code:
<?php
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS', 1);