vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Forum Home Enhancements - Users Registered Today v2.0.0 (https://vborg.vbsupport.ru/showthread.php?t=126289)

jw00dy 02-05-2007 05:34 PM

Thanks Tim.

staff80 02-08-2007 10:10 PM

hi, i've installed this mod but registered users reset at 12 pm. I want it to reset at 00 am. What can i do about it?

eXtremeTim 02-11-2007 06:41 PM

Right now it should reset at midnight gmt. I will see about making an offset option as well as making it so you can use a rolling x hours period instead of today only.

staff80 02-22-2007 08:08 PM

still waiting :rolleyes:

MeMySelfNi 02-23-2007 04:11 AM

mine is resetting before 12am the next day....

staff80 03-27-2007 07:19 AM

Quote:

Originally Posted by staff80 (Post 1177926)
hi, i've installed this mod but registered users reset at 12 pm. I want it to reset at 00 am. What can i do about it?

i think i am very lucky coz i solved problem without any php knowledge.

Here it is for who has same problem.

Edit Plugin > Users Registered Today
Find >

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

Change the first zero to whatever you want. For example, in my forum, registered users was reset on afternoon 12:00. And i set it to:

$cutoff = mktime(-12, 0, 0, date('m', $now), date('d', $now), date('Y', $now));

and it is now reset 12 hours before old reset time, so on 00 am as i want.

NOTE:I did it and my problem has been solved, i don't have any php knowledge, so use it at your own risk.

eXtremeTim 04-07-2007 06:23 PM

I will get an updated version put together with an offset to fix that problem.

eXtremeTim 05-17-2007 05:10 PM

Taking feature requests for the next version now.

jw00dy 05-24-2007 01:45 AM

Can't think of anything, other then great mod. I use it all the time.

bongwater 06-03-2007 10:34 AM

Could this be configured so that it is viewable by usergroup permissions?


All times are GMT. The time now is 05:46 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.01061 seconds
  • Memory Usage 1,730KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (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