vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Members who have visited today (with last 24 hours option). (https://vborg.vbsupport.ru/showthread.php?t=71533)

Paul M 07-02-2005 01:47 PM

Quote:

Originally Posted by gizmosheretwo
It was on at first, after your reply it looked like you ask to turn it off, so I turned it off.
It doesn't matter, I decided not to use this as it most probably will just hug the board with queries.

Also having quite a few users login within a day I realise it would use quite a lot of space.

Your choice, but to answer those points - the list is collapsable - it uses 1 line when collapsed, and one select query [on forumhome only as well !) is nothing - it will never be noticed, affect nothing etc.

JohnGalt 07-02-2005 06:13 PM

what's the latest version of onlinetoday.php? is it just 2.0? how is it different than the previous version?

Paul M 07-02-2005 07:16 PM

Quote:

Originally Posted by JohnGalt
what's the latest version of onlinetoday.php? is it just 2.0? how is it different than the previous version?

Yes, its 2.00

To update it to 2.20 change this ;

PHP Code:

require_once('./includes/functions_misc.php');
$now TIMENOW intval($vboptions['hourdif']);
$cutoff vbmktime(000date('m'$now), date('d'$now), date('Y'$now)); 

to this ;

PHP Code:

$tz $bbuserinfo['timezoneoffset'] + $bbuserinfo['dstonoff'];
$now TIMENOW + ($tz 3600) - date('Z',TIMENOW);
$cutoff mktime(000date('m'$now), date('d'$now), date('Y'$now)); 

(and edit the comment from 2.00 to 2.20 :))

gizmosheretwo 07-02-2005 07:18 PM

Quote:

Originally Posted by Paul M
Your choice, but to answer those points - the list is collapsable - it uses 1 line when collapsed, and one select query [on forumhome only as well !) is nothing - it will never be noticed, affect nothing etc.

I think it's the skin I'm using paul, it was all in place but nothing was showing witin your hack....

So I took it off, would of been nice if what you say after what I posted doesn't use much queries etc..

Is my code right that I did post, as I had all in place but users visited today didn't appear, If my code is correct that I posted then I could find what's going on..

paul41598 07-07-2005 03:21 AM

Paul, I updated your code in my file, and Im still having problems. Even at 12:01am, its still showing the users from yesterday. Actually, it shows nothing ( 0 ), even if I log in and back out. The only way I can get it to show users is by uncommenting this line
// $cutoff = $now - 86400 ; // ## Uncomment this line if you want a rolling 24 hours display ## //

Paul M 07-07-2005 04:34 AM

Quote:

Originally Posted by paul41598
Even at 12:01am, its still showing the users from yesterday. Actually, it shows nothing ( 0 ), even if I log in and back out.

Sorry but you have confused me here, this seems to contradict itself.

At 12:01am no users seems reasonable as it's likely no one has done anything to update their last activity time past the start time of 12:00 am (you should appear if you start refreshing the page).

I have a bit of debug code I can send you that will display all the timezone relevant information to so I can see how your midnight cutoff is being calculated. I won't have access to it for about 10 hours though.

Uncommenting the line you mention will work, since it's just a simple last 24 hours calculation. :)

paul41598 07-07-2005 09:26 AM

Quote:

Originally Posted by Paul M
Sorry but you have confused me here, this seems to contradict itself.

At 12:01am no users seems reasonable as it's likely no one has done anything to update their last activity time past the start time of 12:00 am (you should appear if you start refreshing the page).

I have a bit of debug code I can send you that will display all the timezone relevant information to so I can see how your midnight cutoff is being calculated. I won't have access to it for about 10 hours though.

Uncommenting the line you mention will work, since it's just a simple last 24 hours calculation. :)

I just worded it wrong. Umm, with the updated code. after 12:01am, the list shows noone on there. If i log in, refresh, log out, and check the list, it still shows noone there.

Uncommenting the line though will display my name fine. Not sure what the diff is between all that code and the commented line though.

Of course I cant test it once again until tongiht at 12:01am

Wireless King 07-07-2005 03:23 PM

While attempting to add this on my forum, I got the error message: "fatal Error". Any idea why?

Paul M 07-07-2005 03:43 PM

Quote:

Originally Posted by Wireless King
While attempting to add this on my forum, I got the error message: "fatal Error". Any idea why?

Nope, and you haven't given much to go on.

SlipNslide281 07-08-2005 02:47 PM

Installed and looks great. But one question. Where do I add the Phrases:

NOW CREATE THE FOLLOWING PHRASES:
******************************
last_online_at_x / Last online at {1}
******************************
active_users_today / Number of Active Users Today
******************************
most_users_ever / Most users ever online on a day was {1} on {2}.
******************************
already_visited_today / The following members have already visited the forums today


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

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.01766 seconds
  • Memory Usage 1,754KB
  • 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
  • (6)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