UBB.Dev
Posted By: pluto_rogue v5.3 PHP - Who's Online - 03/24/2001 9:31 PM
It only shows your user logged on, no one else. This happened with 5.1.6 as well. Any ideas?

Posted By: Rick Re: v5.3 PHP - Who's Online - 03/25/2001 5:57 AM
I'm not quite sure I understand this one. It should only show the users that are currently logged on. What do you see when you visit the online script?
Posted By: pluto_rogue Re: v5.3 PHP - Who's Online - 03/25/2001 8:59 AM
All I see is me. I've tested it with two pc's and logged on the same time with two seperate users. It only lists the user that is looking at it.

Posted By: Dan5 Re: v5.3 PHP - Who's Online - 03/25/2001 2:40 PM
I've had a similar problem and it's all to do with time.
What is happening is it is erasing those logged in when you view it as it believes they have been inactive for more than 10 minutes. You probably have a positive time zone offset.
Anyway the fix I used was this.

Delete line 24 and 25 from online.php and replace with
$Outdated = time() - 600;

Now doubt Scream will come up with a more elegant solution, but the problem is all caused by time zones.

Dan

Posted By: pluto_rogue Re: v5.3 PHP - Who's Online - 03/26/2001 12:30 AM
Thanks. That did the trick.

Posted By: kimroan Re: v5.3 PHP - Who's Online - 04/08/2001 2:30 AM
Scream,

Could you take a look of this?

Posted By: powerlord Same script, different problem - 04/08/2001 4:22 AM
Rather than just going back 10 minutes, I get users with times all over the place.
Here's a copy paste from my Who's Online page from right now. As you can see, it's 1:20am to me, and I have users going back all the way to 12:11am. Additionally, it's 12:20am after my time offset (server is in CDT, I'm in EDT). I have yet to try the hack in another part of this thread, but I might try it and report back my results.

17 Registered User(s).
Username Status Title Last Activity Location
Powerlord Administrator The VGMusic Emperor 04/08/01 01:20 AM Checking who's online
Cloud_Strife Moderator Music Nut 04/08/01 01:20 AM Reading a post in flat mode
EspioKaos User Wizard 04/08/01 01:19 AM Reading a post in threaded mode
Impact User White Mage 04/08/01 01:18 AM Checking who's online
The_Sorcerer User Infector of Posts 04/08/01 01:17 AM Viewing list of forums
(I)MattofBumderland User Needs Serious Emotional Help 04/08/01 12:56 AM Reading a post in flat mode
loopy User Has No Life At All 04/08/01 12:48 AM Viewing a list of posts
JackRabbit User Really Needs to Find Something Else To Do 04/08/01 12:44 AM Viewing a user's profile
Kalrac Administrator Cosmic Avenger 04/08/01 12:43 AM Viewing list of forums
Dry15 User Follower of Powerlord 04/08/01 12:40 AM Reading a post in flat mode
Sir Lemming User Newbie 04/08/01 12:32 AM Reading a post in flat mode
(I)ZeroKnightRaiden User Stranger 04/08/01 12:31 AM Viewing a list of posts
Zeomax User Member of Forumers Anonymous 04/08/01 12:28 AM Viewing list of forums
Shyna2 User Forum Zombie 04/08/01 12:21 AM Viewing a list of posts
Jormungand User Kalrac Wannabe 04/08/01 12:16 AM Reading a post in flat mode
Yoshi User Wizard 04/08/01 12:14 AM Replying/Deleting a private message
DarkBrooke User Follower of Jaimas 04/08/01 12:12 AM Viewing a list of posts



7 Anonymous User(s).
From IP Last Activity Location
216.192.147.46 04/08/01 12:58 AM Reading a post in flat mode
63.30.104.85 04/08/01 12:42 AM Reading a post in flat mode
205.188.192.56 04/08/01 12:27 AM Reading a post in flat mode
64.208.13.133 04/08/01 12:26 AM Viewing a list of posts
205.188.209.141 04/08/01 12:24 AM Viewing list of forums
209.242.141.250 04/08/01 12:18 AM Viewing a list of posts
207.103.118.8 04/08/01 12:14 AM Viewing a list of posts




Administrator, Videogame Music Archive
Posted By: Dan5 Re: v5.3 PHP - Who's Online - 04/09/2001 10:55 PM
Scream is there ever going to be an official fix to this from what I remember the problem is because when ever a user does an action you update a table w3t_online and insert the time in field O_Last. The problem is when you do this the time you insert isn't modified for a particular time zone. Therefore anyone who is using the site whose time zone is behind that of the site will be erased everytime someone looks at the pages as it will appear they have been ideal for more than 10 minutes, as when it does the comparision it uses the adjusted time. A site which has it's server time set at -12 GMT would not be effected, a site like yours set a US time zone would only be very slightly effected but European and Japanese sites, or even those on the east coast in the US would be more affected. I hope this makes some sense. All you need to do is not adjust the time to the users time zone when you do the comparison.

Dan

Posted By: Rick Re: v5.3 PHP - Who's Online - 04/10/2001 3:57 AM
Sorry Dan. Yes, this is a valid bug fix. I'll get that posted into the other forum. Thanks for the fix.
© UBB.Developers