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 the forum (Today or last 24 hours). (https://vborg.vbsupport.ru/showthread.php?t=82769)

Cloudrunner 07-09-2005 10:22 AM

Quote:

Originally Posted by Dream
their midnight? can I change it to the forum midnight?

yes, change the line
PHP Code:

$cutoff mktime(000date('m'$now), date('d'$now), date('Y'$now)); 

to read
PHP Code:

$cutoff mktime(000date('m'), date('d'), date('Y')); 

in the plugin itself. This will set the cutoff time to your forums timeset.

If you do this then you can comment the $tz line and the $now line as they will not be used for this if you go and use the forums time.

Borimikan 07-09-2005 01:26 PM

Ok I install it... now I have a question, and sorry bcause Im new.... Where the XML file goes to?

Paul M 07-09-2005 02:40 PM

You upload it as a plugin.

ACP > Plugin System > Download / Upload Plugins

theArchitect 07-16-2005 12:19 AM

As always great work.

Installed on 3.5.0 beta 4.

ack 07-20-2005 11:47 PM

Thanks! Worked great. ^_^

Dream 07-21-2005 04:38 AM

Quote:

Originally Posted by Cloudrunner
PHP Code:

$cutoff mktime(000date('m'), date('d'), date('Y')); 


uhm that didnt work, this didnt work either

PHP Code:

$cutoff mktime(000vbdate('m'), vbdate('d'), vbdate('Y')); 

there are still members in the list with "last visit" as "yesterday" in their profiles

edit: well I updated my version with the one in this thread and it seems to be working the way I wanted, thanks

Boofo 07-22-2005 05:03 AM

Quote:

Originally Posted by Paul M
You do realise the original version resets each midnight ?

If we uncomment the line for 24 hours rolling do we need to comment out the line before it?

Also, does this work according to the user's midnight or the server's?

Paul M 07-22-2005 11:48 AM

Quote:

Originally Posted by Boofo
If we uncomment the line for 24 hours rolling do we need to comment out the line before it?

No, it simply over-rides the lines above.

Quote:

Originally Posted by Boofo
Also, does this work according to the user's midnight or the server's?

Each users midnight.

Boofo 07-22-2005 04:21 PM

Quote:

Originally Posted by Paul M
No, it simply over-rides the lines above.

Each users midnight.

Thank you, sir. Excellent!

Paul M 07-22-2005 07:12 PM

Just one small point - the two questions are mutually exclusive.

If you uncomment the 24 hr option then obviously the midnight question is irrelevant (or vice versa). :)


All times are GMT. The time now is 06:33 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.01811 seconds
  • Memory Usage 1,748KB
  • 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
  • (4)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