vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Who was online today [available in english & german] (https://vborg.vbsupport.ru/showthread.php?t=34014)

Mystics 05-12-2002 12:47 AM

You maybe need to do this:

Open onlinetoday.php and search:
PHP Code:

WHERE lastactivity " . mktime(0,0,0,date("m"),date("d"),date("Y")) . " 

Replace it with:
PHP Code:

WHERE lastactivity " . (mktime(0,0,0,date("m"),date("d"),date("Y")) + (($bbuserinfo['timezoneoffset']-$timeoffset)*3600)) . " 

Mystics

Boofo 05-12-2002 12:54 AM

It worked, thank you very much. It says Number of avtive users today is 4 and the most ever online in a day is 5 on Today (which would mean a guest was on, right?) That is where the extra number comes up? Is there any way not to make it count guests?

Mystics 05-12-2002 01:06 AM

The Hack does not count Guests.

The fact that the record today is higher than the number today is a bug which you cannot avoid.

Because the number of today users is generated dynamically based on each users local time and the record number of online users can be set by any user and is stored fixed in the database.

So a user in an other timezone can set an higher record than an other user in an other timezone actually will get.

Hm, I hope you understand, what I'm trying to say :)

Boofo 05-12-2002 01:36 AM

I'm really lost on this one. take a look at waht I mean and maybe it will make more sense to me. Also, notice that on the main page at the bottom the Number of Avtive users today is different than it is on the page it links to. Why is that?

My Site

Let me know what you think. I doubled checked everything and I must have missed something.

Mystics 05-12-2002 01:41 AM

You can't do anything against your first Problem as I wrote in my last Posting.

>>Also, notice that on the main page at the bottom the Number of Avtive users today is different than it is on the page it links to

I have updated the instructions of the Hack.
To fix this, you also have to change the line in index.php (same changes you have done in onlinetoday.php)

Boofo 05-12-2002 02:02 AM

Thank you (again). Everything seems to be in working order now. I guess I still don't quite fully understand the difference in most users ever line being different, but if you say that is normal and how it works, then I will leave it at that and not hurt myself trying to figure it out anymore. :) One last question, is there way to color the names like in Currently active Users for the Admin, Mod and Super Mod? I tried the one that was posted in this thread a ways up, but that was for the same page version and I couldn't get it to work.

Thanks again for a great hack and sorry about all of the problems. :)

HappyPike 06-05-2002 06:57 AM

hey Mystic, I just installed the extra page version. The weird thing is it says "Number of Active Users Today: 0
Most users ever online on a day was 169 on Jun 05, 2002." It shows up correctly for some people (i.e. not zero). Do you know what's wrong?

My forum

Mystics 06-05-2002 05:16 PM

Quote:

Originally posted by HappyPike
hey Mystic, I just installed the extra page version. The weird thing is it says "Number of Active Users Today: 0
Most users ever online on a day was 169 on Jun 05, 2002." It shows up correctly for some people (i.e. not zero). Do you know what's wrong?

It it shown correct for me, maybe it depends on the user's time zone (as I wrote, it only works 100% correct, if each User is in the same time zone as the Server :))

And maybe it needs some time to show a value>0 for each user.

Mystics

HappyPike 06-05-2002 07:49 PM

It's working for me now also (although not 100% correct).

Now it says: "Number of Active Users Today: 750
Most users ever online on a day was 811 on Today. "

Thanks for the cool hack. :)

Mystics 06-05-2002 07:56 PM

To explain the difference between the two numbers:

"Number of Active Users Today" is generated dynamically according to your time zone.

"Most users ever online on a day" is a static value saved in the database; each user can update this value, and according to the time zone of each user, User #1 maybe can have more people online on his "Today" as User #2 (because they are in different time zones)

I hope anybody could understand this ;)

Mystics


All times are GMT. The time now is 06:32 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01358 seconds
  • Memory Usage 1,745KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete