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 10-19-2005 05:22 PM

Yes.

geekay 10-20-2005 02:13 PM

Hi,
Thanks for the great hack...:rolleyes:
Is it possible to show today's visitors as well?

Thanks again!

jokerz 10-21-2005 12:15 PM

Hi, Paul M. I am using 3.0.7, I am trying to show last 24 hours instead of today but it doesn't work, only show today.

Index.php -
$cutoff = TIMENOW - (substr($tnow,8,2)*3600 + substr($tnow,10,2)*60 + substr($tnow,12,2));
//$cutoff = TIMENOW - 86400 ; // ## Uncomment this line if you want a rolling 24 hours display ## //

I did try remove the comment line // infront $cutoff. Any clue or am I doing wrong? Thx

Paul M 10-21-2005 03:12 PM

Quote:

Originally Posted by jokerz
Hi, Paul M. I am using 3.0.7, I am trying to show last 24 hours instead of today but it doesn't work, only show today.

Index.php -
$cutoff = TIMENOW - (substr($tnow,8,2)*3600 + substr($tnow,10,2)*60 + substr($tnow,12,2));
//$cutoff = TIMENOW - 86400 ; // ## Uncomment this line if you want a rolling 24 hours display ## //

I did try remove the comment line // infront $cutoff. Any clue or am I doing wrong? Thx

Yep, just remove the '//' - you can remove the first $cutoff line as well if you want.

i.e. those two lines become ;

Code:

$cutoff = TIMENOW - 86400 ;

geekay 10-21-2005 03:55 PM

Hi Paul,

Do u think that I can use this hack an display visitors as well, or should I use another one?

Thanks

Paul M 10-21-2005 04:19 PM

I don't really understand what you mean by "display visitors", do you mean guests ?

If so then you cannot do it, no record is kept of guests.

geekay 10-21-2005 04:45 PM

yeap I meant guests (i seperate them in 2 groups users and visitors)...
ok, thanks anyway...

jokerz 10-22-2005 05:38 AM

Hi Paul, thanks for help, I followed what you said.

But "Last 24 hours" text doesn't show, just "visited today"...

Now index.php shows:
$tnow = date('YmdHis',TIMENOW - $vboptions['hourdiff']);
$cutoff = TIMENOW - 86400 ;

Paul M 10-22-2005 07:00 AM

Quote:

Originally Posted by jokerz
Hi Paul, thanks for help, I followed what you said.

But "Last 24 hours" text doesn't show, just "visited today"...

You didn't say you meant the text. That will not change unless you edit the template code.

jokerz 10-22-2005 11:52 AM

oh okay, I've edited the template. No problem so far. This is great mod hack! Thank you :)


All times are GMT. The time now is 03:57 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.01641 seconds
  • Memory Usage 1,735KB
  • 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
  • (1)bbcode_code_printable
  • (2)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