Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
Active users today problem Details »»
Active users today problem
Version: , by Radgam Radgam is offline
Developer Last Online: Nov 2005 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 05-11-2003 Last Update: Never Installs: 0
 
No support by the author.

have the hack which shows you which users were active today but after moving to my new server i seem to get a weird problem.

1) it resets at midday rather than midnight and
2) for a couple of hours after midday when it's reset, it shows number of active people as 0 even though i and other people have been browsing my board. Then it starts going again like normal (i don't have an exact not of how many hours).

My forum time zone offset is 8 hours; my time zone offset is 0 hours. I rechecked the hack and the code seems up to date. Also it's just recently it seems to have stopped working even though i haven't changed any code. Just changed server.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 05-11-2003, 04:23 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1. It probably uses your server time instead of your time
2. This is normal behavior.
Reply With Quote
  #3  
Old 05-11-2003, 05:20 PM
Radgam Radgam is offline
 
Join Date: Jan 2003
Location: Scotland! :)
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)
Reply With Quote
  #4  
Old 05-11-2003, 06:25 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 05-12-2003, 11:34 AM
Radgam Radgam is offline
 
Join Date: Jan 2003
Location: Scotland! :)
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Attached Files
File Type: (21.4 KB, 16 views)
Reply With Quote
  #6  
Old 05-15-2003, 12:28 PM
Radgam Radgam is offline
 
Join Date: Jan 2003
Location: Scotland! :)
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
(mktime(0,0,0,date("m"),date("d"),date("Y")) + (($bbuserinfo['timezoneoffset']-$timeoffset)*3600)) 
The forum/server timezone is set to -8 and my timezone is set to 0. Insert the values into the above and you get? 0--8 which is actually 0+8, so should sign between "$bbuserinfo['timezoneoffset']-$timeoffset" actually be a +? 0+-8 = -8 which is the value it should be.

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 :'(
Reply With Quote
  #7  
Old 11-14-2003, 02:54 AM
bozzy bozzy is offline
 
Join Date: Oct 2003
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!!!!! :-)
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:53 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06933 seconds
  • Memory Usage 2,279KB
  • Queries Executed 21 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (1)postbit_attachment
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete