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)

Sia Bani 12-24-2004 06:37 AM

Where's the one that updated all the time in that it didn't reset at 12:00 AM? So it was continuous?

I've installed this, but I thought there was a slight mod so you don't see it reset and blank out at 12:00AM.

Thanks.

Paul M 12-24-2004 09:30 AM

Quote:

Originally Posted by Sia Bani
Where's the one that updated all the time in that it didn't reset at 12:00 AM? So it was continuous?

I've installed this, but I thought there was a slight mod so you don't see it reset and blank out at 12:00AM.

Thanks.

Uncomment the second $cutoff line (that refers to not having vB 3.0.3).

Sia Bani 12-24-2004 09:45 AM

Quote:

Originally Posted by Paul M
Uncomment the second $cutoff line (that refers to not having vB 3.0.3).

Thanks for the reply. Anyway you could explain that a little more? I have no idea what you're talking about. I have 3.0.3 as well.

Paul M 12-24-2004 11:15 AM

Okay, there is a line in the 1.03 version that you can just uncomment, but if you installed a while ago that line won't be there;

Find the line that starts "$cutoff = " in the hack - and replace it with ;

PHP Code:

$cutoff $now 86400 

This will make it always display visitors from the last 24 hours. :)

LCPGUY 12-25-2004 09:31 PM

Wow! This works just great and so easy to install. I thank you Paul.

I have a question though, When I run the SQL ‘ALTER TABLE user ADD INDEX (lastactivity)”

I get the following error:

An error occurred while attempting to execute your query. The following information was returned.
error number: 1146
error desc: Table 'john_mainDB.user' doesn't exist

Any suggestions would be appreciated.

Again, thanx for a terrific hack!!!

John

Paul M 12-25-2004 09:47 PM

LCPGUY, Where are you running the query ?

Sia Bani 12-25-2004 09:48 PM

Quote:

Originally Posted by Paul M
Okay, there is a line in the 1.03 version that you can just uncomment, but if you installed a while ago that line won't be there;

Find the line that starts "$cutoff = " in the hack - and replace it with ;

PHP Code:

$cutoff $now 86400 



This will make it always display visitors from the last 24 hours. :)


I just installed this a couple days ago and I have the $now-86400 in the hack already. I hadn't changed anything, and it's already there. However, at midnight, it still resets. Do you want me to change that to just $cutoff?

Paul M 12-25-2004 09:55 PM

Quote:

Originally Posted by Sia Bani
I just installed this a couple days ago and I have the $now-86400 in the hack already. I hadn't changed anything, and it's already there. However, at midnight, it still resets. Do you want me to change that to just $cutoff?

Um.... Can you PM me the first few lines of this hack that you actually have installed please.

LCPGUY 12-26-2004 05:58 PM

Quote:

Originally Posted by Paul M
LCPGUY, Where are you running the query ?

From the Admin CP, Import and Maintenance, Execute SQL Query

Paul M 12-26-2004 06:26 PM

I suggest you do it directly on the database via myphpadmin.


All times are GMT. The time now is 12:55 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.01447 seconds
  • Memory Usage 1,744KB
  • 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
  • (5)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