I noticed that the online_guest global never displayed the same amount of guests as the Who's Online page. Also, when using it with SSI, the page that it is displayed on counts visitors when they access that page and are not on the forum.
To fix this replace the global:
return $DB->table('Guest')->count(GT::SQL::Condition->new('guest_last_time', '>', time - 900));
}
with:
return $DB->table('Online')->count(GT::SQL::Condition->new(guest_id_fk => '<' => (time - $CFG->{online_timeout} * 60)));
}
To fix this replace the global:
Code:
sub { return $DB->table('Guest')->count(GT::SQL::Condition->new('guest_last_time', '>', time - 900));
}
with:
Code:
sub { return $DB->table('Online')->count(GT::SQL::Condition->new(guest_id_fk => '<' => (time - $CFG->{online_timeout} * 60)));
}