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.
It was on at first, after your reply it looked like you ask to turn it off, so I turned it off.
It doesn't matter, I decided not to use this as it most probably will just hug the board with queries.
Also having quite a few users login within a day I realise it would use quite a lot of space.
Your choice, but to answer those points - the list is collapsable - it uses 1 line when collapsed, and one select query [on forumhome only as well !) is nothing - it will never be noticed, affect nothing etc.
Your choice, but to answer those points - the list is collapsable - it uses 1 line when collapsed, and one select query [on forumhome only as well !) is nothing - it will never be noticed, affect nothing etc.
I think it's the skin I'm using paul, it was all in place but nothing was showing witin your hack....
So I took it off, would of been nice if what you say after what I posted doesn't use much queries etc..
Is my code right that I did post, as I had all in place but users visited today didn't appear, If my code is correct that I posted then I could find what's going on..
Paul, I updated your code in my file, and Im still having problems. Even at 12:01am, its still showing the users from yesterday. Actually, it shows nothing ( 0 ), even if I log in and back out. The only way I can get it to show users is by uncommenting this line
// $cutoff = $now - 86400 ; // ## Uncomment this line if you want a rolling 24 hours display ## //
Even at 12:01am, its still showing the users from yesterday. Actually, it shows nothing ( 0 ), even if I log in and back out.
Sorry but you have confused me here, this seems to contradict itself.
At 12:01am no users seems reasonable as it's likely no one has done anything to update their last activity time past the start time of 12:00 am (you should appear if you start refreshing the page).
I have a bit of debug code I can send you that will display all the timezone relevant information to so I can see how your midnight cutoff is being calculated. I won't have access to it for about 10 hours though.
Uncommenting the line you mention will work, since it's just a simple last 24 hours calculation.
Sorry but you have confused me here, this seems to contradict itself.
At 12:01am no users seems reasonable as it's likely no one has done anything to update their last activity time past the start time of 12:00 am (you should appear if you start refreshing the page).
I have a bit of debug code I can send you that will display all the timezone relevant information to so I can see how your midnight cutoff is being calculated. I won't have access to it for about 10 hours though.
Uncommenting the line you mention will work, since it's just a simple last 24 hours calculation.
I just worded it wrong. Umm, with the updated code. after 12:01am, the list shows noone on there. If i log in, refresh, log out, and check the list, it still shows noone there.
Uncommenting the line though will display my name fine. Not sure what the diff is between all that code and the commented line though.
Of course I cant test it once again until tongiht at 12:01am
Installed and looks great. But one question. Where do I add the Phrases:
NOW CREATE THE FOLLOWING PHRASES:
******************************
last_online_at_x / Last online at {1}
******************************
active_users_today / Number of Active Users Today
******************************
most_users_ever / Most users ever online on a day was {1} on {2}.
******************************
already_visited_today / The following members have already visited the forums today