Is it just me or does this just not work?? Right now it's saying I have 7 active members. What is this based on?? There's more than 7 who have posted (Ryan's plugin says 54 have one or more posts, I've checked and that is correct), and there have been more than 7 members active in the last 24 hours, so where exactly is this 7 coming from?? I can't see any statistic anywhere that could lead to it saying there are 7 'active' members, it appears to be a totally random number. In fact, it has been higher before, how can it go down?? Is it meant to show how many have posted at least once??
Run this query in phpMyAdmin, and see if the two correlate.
SELECT COUNT(uid) AS activeusers FROM mybb_users WHERE lastvisit > CURRENT_TIMESTAMP - 86400
That's (basically) the code that runs in the ACP. (Correct me if I'm wrong please!). 86400 seconds is 24 hours...
That said 0
If that is indeed the query, and it is meant to show the last 24 hours in the ACP, why does /online.php?action=today say 9 members when that is also the last 24 hours?? I mean if these matched, it would be ok, but they don't....
Edit: Ok, there was 7 'regular' members online in the last 24 hours, me as admin and someone else in a custom group, could the ACP only be counting the registered group...??
Hmmz... must have got the SQL query wrong. Basically, the query is this:
$timecut = TIME_NOW - 86400;
// Get the number of active users today
$query = $db->simple_select("users", "COUNT(uid) AS activeusers", "lastvisit > '$timecut'");
$activeusers = my_number_format($db->fetch_field($query, "activeusers"));
No specifics except the time.
It only counts users who are registered on your forum. Because it's not a user if it's a guest.
Then it's undercounting, currently by 3 now.
It only counts those who are registered and have been 'last active' by 24 hours.
No, those are different. Last Visit and Last ACTIVE are two different things.