Do you know haw to view who is online?
Mar 13, 2002, 4:55 AM
Veteran / Moderator (18441 posts)
Mar 13, 2002, 4:55 AM
Post #4 of 20
Views: 10472
He just said he didn't think there is a way to do it The problem is knowing who is online, because cookies are stored on the remote system, and the authentication method only stores the cookies on the users system, and not the website.
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Mar 13, 2002, 7:44 AM
Enthusiast (519 posts)
Mar 13, 2002, 7:44 AM
Post #6 of 20
Views: 10566
hi i think this should be possible in general (i think only in dynamic mode) as it is working with gossamer forum.
but perhaps you just should wait until gossamer community is out. i have a feeling that there will be a "who's online"-function.
cheers,
Regards,
Manu
Shopping Portal Shop-Netz.de® | Partnerprogramme | Flugreisen & Billigflüge | KESTERMEDIA e.K. | European Affiliate Marketing Forum.
but perhaps you just should wait until gossamer community is out. i have a feeling that there will be a "who's online"-function.
cheers,
Regards,
Manu
Shopping Portal Shop-Netz.de® | Partnerprogramme | Flugreisen & Billigflüge | KESTERMEDIA e.K. | European Affiliate Marketing Forum.
Mar 13, 2002, 7:50 AM
Veteran (19537 posts)
Mar 13, 2002, 7:50 AM
Post #7 of 20
Views: 10564
Hmm you could do it I guess using the sessions...
main();
sub main {
#----------------------------------------------------------
# Show who is online!
my @sess = ();
my @online = ();
my $path = "/Apache/cgi-bin/admin/sessions";
my $sess = {};
opendir (DIR, $path) or die "Can't read sessions : $path : $!";
@sess = grep { /^\w+$/ } readdir(DIR);
closedir DIR;
for (@sess) {
$sess = do("$path/$_");
push @online, $sess->{username};
}
print "Content-type: text/html\n\n";
print join(', ', @online) || 'No-one';
}
I'm not sure how reliable this way is.
Code:
#!/perl/bin/perl main();
sub main {
#----------------------------------------------------------
# Show who is online!
my @sess = ();
my @online = ();
my $path = "/Apache/cgi-bin/admin/sessions";
my $sess = {};
opendir (DIR, $path) or die "Can't read sessions : $path : $!";
@sess = grep { /^\w+$/ } readdir(DIR);
closedir DIR;
for (@sess) {
$sess = do("$path/$_");
push @online, $sess->{username};
}
print "Content-type: text/html\n\n";
print join(', ', @online) || 'No-one';
}
I'm not sure how reliable this way is.
Apr 23, 2002, 10:44 AM
Veteran / Moderator (2577 posts)
Apr 23, 2002, 10:44 AM
Post #12 of 20
Views: 10456
Yes I did thanks Paul.
I am searching the posts for more info on the session variable and session expiry etc. I am interested in devloping this slightly, so it shows, the number of guests on as well as registered users.
When I refresh or reload the cgi, I am wondering how long a user is show as on-line for, once they leave? (the default session length)
I am searching the posts for more info on the session variable and session expiry etc. I am interested in devloping this slightly, so it shows, the number of guests on as well as registered users.
When I refresh or reload the cgi, I am wondering how long a user is show as on-line for, once they leave? (the default session length)
Apr 23, 2002, 8:25 PM
Veteran / Moderator (2577 posts)
Apr 23, 2002, 8:25 PM
Post #17 of 20
Views: 10345
I notice the session file only contains a value for the username:
$SESSION = {
'username' => 'myusername'
};
Is there a way to get Links to produce more information in this file, such as IP, time on?
Ultimately it would be nice to see the actuall number of people on, including guests, with various stats realted to this. Perhaps get a name of 'guest01', 'guest02' like G Forum does, when the user is not known.
$SESSION = {
'username' => 'myusername'
};
Is there a way to get Links to produce more information in this file, such as IP, time on?
Ultimately it would be nice to see the actuall number of people on, including guests, with various stats realted to this. Perhaps get a name of 'guest01', 'guest02' like G Forum does, when the user is not known.
Jul 26, 2003, 11:48 AM
User (73 posts)
Jul 26, 2003, 11:48 AM
Post #18 of 20
Views: 10020
Hi,
I love this mod, but have a few newbie questions.
1. Where exactly do I put this code? Home page?
2. Where does it show what users are online? I would like it on the home page, under "There are 4542 possible links for you to choose from". Also, I have very few registered users, so would want it to only say something like "There are currently 10 people browsing the site", or something like that.
Thanks in advance.
I love this mod, but have a few newbie questions.
1. Where exactly do I put this code? Home page?
2. Where does it show what users are online? I would like it on the home page, under "There are 4542 possible links for you to choose from". Also, I have very few registered users, so would want it to only say something like "There are currently 10 people browsing the site", or something like that.
Thanks in advance.
Nov 17, 2003, 1:35 AM
Veteran / Moderator (18441 posts)
Nov 17, 2003, 1:35 AM
Post #20 of 20
Views: 9928
This version is very old... it runs on 2.1.0, which doesn't use session files now, but rather stores them in the database. Have a look at my mod here;
http://www.gossamer-threads.com/...rum.cgi?post=253121;
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
http://www.gossamer-threads.com/...rum.cgi?post=253121;
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!