Previous Thread
Next Thread
Print Thread
Rate Thread
#125934 06/08/2001 6:05 AM
Joined: Nov 2000
Posts: 123
CT
Offline
Member
Member
Offline
Joined: Nov 2000
Posts: 123
Hello,

I have been trying to modify the WHo's online hack to be more precise on keeping track of the users, but I had some trouble. This btw might also be helpfull for UBB6 who's online but I don't know how that version works.

This is my thought about this:

Who's online works with time outs. That means that a visitor is registered as being online when he already left the forum. This can be stopped by using a cgi/perl equivalent to the javascript 'onunload' tag.

Is this possible? The users are being tracked by writing a online.cgi in the members directory. In this online.cgi a line is written for each user:
Code
code:

Now what I tried to do is erasing that line with an 'onunload' event but this didn't work. Is there an onunload event in perl/cgi?

I would really appreciate it if someone could help me with this.

Cheers,

CT.

Sponsored Links
Joined: Feb 2001
Posts: 108
p2k Offline
Member
Member
Offline
Joined: Feb 2001
Posts: 108
Wish I could help you, but is it that bothersome that it says someone is online when they may not be during the timeout period? Could you simply just change the timeout period to be 1 minute or 0, defaulting it to real time updates?

I did some mass mods on the Who's Online Hack and now have it running on my entire site via SSI calls. This way, no matter where you are on the site (even outside of UBB), it counts you and displays it on the page you're viewing.

pee2kay!

Joined: Nov 2000
Posts: 123
CT
Offline
Member
Member
Offline
Joined: Nov 2000
Posts: 123
My visitors tend to write big posts and sometimes take half an hour to type before posting. When using a time out of say 5 minutes then people who are actually on the forum won't be visible.

Using a time out of an hour leaves people who logged of long ago visible as online. Either way you use it, it simply is a very inaccurate reading.

The Perl/CGI equivalent of the javascript event 'on unload' will simply and effectively remove this problem.

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
I hate how hat happens. Someone should at least make it so they are timed out when they leave the forum not when they are inactive.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)