Gossamer Forum
Home : Products : Gossamer Forum : Development, Plugins and Globals :

Re: [MJB] How to - Display list of users online via SSI

Quote Reply
Re: [MJB] How to - Display list of users online via SSI In reply to
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:

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)));
}

Last edited by:

MJB: Jul 21, 2006, 2:55 PM
Subject Author Views Date
Thread How to - Display list of users online via SSI MJB 7953 Apr 4, 2006, 4:23 PM
Thread Re: [MJB] How to - Display list of users online via SSI
MJB 7771 Apr 5, 2006, 12:58 AM
Post Re: [MJB] How to - Display list of users online via SSI
Andy 7769 Apr 5, 2006, 1:11 AM
Thread Re: [MJB] How to - Display list of users online via SSI
inboxcom 7724 May 11, 2006, 1:40 PM
Thread Re: [inboxcom] How to - Display list of users online via SSI
MJB 7691 May 11, 2006, 3:29 PM
Thread Re: [MJB] How to - Display list of users online via SSI
inboxcom 7699 May 12, 2006, 9:27 AM
Thread Re: [inboxcom] How to - Display list of users online via SSI
MJB 7674 May 12, 2006, 1:06 PM
Thread Re: [MJB] How to - Display list of users online via SSI
inboxcom 7661 May 12, 2006, 1:26 PM
Thread Re: [inboxcom] How to - Display list of users online via SSI
MJB 7661 May 12, 2006, 3:22 PM
Post Re: [MJB] How to - Display list of users online via SSI
MJB 7545 Jul 21, 2006, 2:49 PM