Previous Thread
Next Thread
Print Thread
Rate Thread
#209331 03/24/2001 2:31 PM
Joined: Feb 2001
Posts: 31
User
User
Offline
Joined: Feb 2001
Posts: 31
It only shows your user logged on, no one else. This happened with 5.1.6 as well. Any ideas?


Sponsored Links
Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
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?


UBB.threads Developer
Joined: Feb 2001
Posts: 31
User
User
Offline
Joined: Feb 2001
Posts: 31
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.


Joined: Dec 2000
Posts: 25
User
User
Offline
Joined: Dec 2000
Posts: 25
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


Joined: Feb 2001
Posts: 31
User
User
Offline
Joined: Feb 2001
Posts: 31
Thanks. That did the trick.


Sponsored Links
Joined: Jun 1999
Posts: 54
Member
Member
Offline
Joined: Jun 1999
Posts: 54
Scream,

Could you take a look of this?


Joined: Oct 2000
Posts: 60
Power User
Power User
Offline
Joined: Oct 2000
Posts: 60
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

Joined: Dec 2000
Posts: 25
User
User
Offline
Joined: Dec 2000
Posts: 25
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


Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
Sorry Dan. Yes, this is a valid bug fix. I'll get that posted into the other forum. Thanks for the fix.


UBB.threads Developer

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
isaac
isaac
California
Posts: 1,157
Joined: July 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
WebGuy 2
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 20221218)