The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#2
|
|||
|
|||
1. It probably uses your server time instead of your time
2. This is normal behavior. |
#3
|
|||
|
|||
Thanks. Just thought i should mention, is it normal for it not to work for a couple of hours after though? Even if i don't visit for say an hour after midday it still shows 0 even if i refresh the page (meaning my last visit date would have been updated). I can't remember the exact hour it starts working again (it seems to be around 3 hours after reset roughly)
|
#4
|
|||
|
|||
Yes. A user will only show up on the list when they become active again, and the users that you're describing were just rotting away in WOL due to inactivity.
|
#5
|
|||
|
|||
Shoulda done this yesterday
Here's a picture of the problem which i think explains more or less everything from just the one image. The rest took place at noon, but now and hour and 1/2 later Check the people online vs the list of people online today. Still blank. (list is blanked off just to prove i don't advertise ) [edit note] I checked my board hourly today and it reset at 12pm but it kept saying 0 people active online until 4pm so for some reason that 4 hour spell doesn't registered ANYONE having been online even though there are members in the currently active section. As soon as it turned 4:01pm people started showing up on the list, but only then and not before. I know it sounds weird but that's what is happening. i'm using vb2.2.9 with lots of other hacks |
#6
|
|||
|
|||
Hi again,
Sorry to double post but i think i've found the problem although not exactly sure on the best method to solve it: Here's the code first of all for generating the time PHP Code:
Also, here's some tests i did to backup what i found out. On my live forums the code above generated the following date: 1053010800 That is the date which is used to find people last active > than that date A user currently browsing my board only had a last active date of: 1053002049 (notice it's less than the above). So you can see the above used for the search is incorrect. On my test server, i have the server timezone set to 0 and my timezone set to 0, which actually generated a date of: 1052953200 So, take my live forums server generated time of 1053010800 and -28800 (that number was generated by (0--8)*3600) and you get a time of : 1052982000 (the time before anything was added) and then take away -28800 again and you get a number of: 1052953200 The time my server generated, GMT midnight, which is my time. But i get the feeling i've probably missed something important here. anyway, just an extra note on the problem (remember the server timezone is gmt-8): 1053010800 is actually 4pm my time and the script stops working from 8am to 4pm my time EVERYDAY. What's happening is that the script resets at midnight on the servers timezone (8am my time) and then starts generating a time 8 hours in the future (so that's 4pm my time). But the second thing is that if i use the other admin for example, his timezone is GMT-8 as well and if i changed the script at the top to a plus sign it would mess up for him instead (ie $bbuserinfo['timezoneoffset']-$timeoffset would generate -8--8 = 0 but $bbuserinfo['timezoneoffset']+$timeoffset -8+-8 = -16 which is wrong). Make of it what you can, but any help to sort this problem on my forum? [edit] perhaps it's just the order of variables that should be changeD? for me with a timezone of gmt (0) $timeoffset-$bbuserinfo['timezoneoffset'] => -8-0 = -8 (correct!) for the admin with a timezone of gmt -8 -8--8 = 0 (correct again!) Input from someone, please! [edit2] Well, my logic is seriously flawed but what i do know is that the script does NOT seem to work between 8am (when it resets) and 4pm (exactly 8 hours after the reset). but i just dunno why :'( |
#7
|
|||
|
|||
Can somebody tell me where this hack is? I am looking for a hack that displays the users of the last 24 hours, but I can't find anything about it over here....does it still exist? if so, WHERE?!?!?!?! Uggg, this is frustrating. Thanks for your help!!!!! :-)
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|