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-23-2005 07:56 PM

Quote:

Originally Posted by xtreme-mobile
ok mate ive got version 2.0 at the mo how do i upgrade just change code in index.php and thats it?

the template would stay the same i would imagine? and do i have to run the query again?

All you need to change is the code, nothing more. :)

oldengine 07-23-2005 10:04 PM

Quote:

This is optional, but will speed up the query if you have a large number of members;

Run the following SQL query;

ALTER TABLE user ADD INDEX (lastactivity)
How many is too many? (2500 registered) (317 today)

Paul M 07-23-2005 10:21 PM

It will not harm anything to run the query with a low number of users, it's just that the difference would be hard to see - with 2,500 users I would definitely add the index.

oldengine 07-24-2005 03:11 AM

Everything works fine from midnight on, but if I uncomment the 24 hour line, ALL registered users are displayed.
Code:

// $cutoff = $now - 86400 ;  // ## Uncomment this line if you want a rolling 24 hours display ## //
I'm on 3.07.

Paul M 07-24-2005 10:07 AM

Quote:

Originally Posted by oldengine
Everything works fine from midnight on, but if I uncomment the 24 hour line, ALL registered users are displayed.
Code:

// $cutoff = $now - 86400 ;  // ## Uncomment this line if you want a rolling 24 hours display ## //
I'm on 3.07.

Ah, you are absolutely right - that's a bug from the last update.

The line should now be ;

PHP Code:

// $cutoff = TIMENOW - 86400 ;  // ## Uncomment this line if you want a rolling 24 hours display ## // 

Code updated, thank you for pointing it out. :)

oldengine 07-24-2005 12:59 PM

Excellent addition to my board! All is well. :)

Any thoughts on making this default to "collapsed" mode, at least in my beginner's (dial-up) style?

xtreme-mobile 07-25-2005 05:49 AM

Quote:

Originally Posted by Paul M
All you need to change is the code, nothing more. :)

ok ive replcaed the existing code to v 2.31 :)

now how do i get it to reset at midnight :nervous:

Paul M 07-25-2005 12:12 PM

Quote:

Originally Posted by xtreme-mobile
ok ive replcaed the existing code to v 2.31 :)

now how do i get it to reset at midnight :nervous:

It does that by default.

Paul M 07-25-2005 12:14 PM

Quote:

Originally Posted by oldengine
Excellent addition to my board! All is well. :)

Any thoughts on making this default to "collapsed" mode, at least in my beginner's (dial-up) style?

You need to alter the template - I did have the details somewhere [a while ago], I'll see if I can find them later. Kinda busy atm.

kregger 07-25-2005 07:36 PM

Works great! Thanks! :D Made me realize how busy my board is.

Craig


All times are GMT. The time now is 05: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.02689 seconds
  • Memory Usage 1,750KB
  • 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_code_printable
  • (1)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