vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Members who have registered today (https://vborg.vbsupport.ru/showthread.php?t=72972)

Thug 02-09-2005 12:52 PM

this is the code i used
is it right

// ### Registered Today ##
$newusers = $DB_site->query_first('
SELECT COUNT(*) AS count
FROM ' . TABLE_PREFIX . 'user
WHERE joindate >= "' . strtotime("-1day") . '"
');
$newmembers = number_format($newusers['count']);
// ### Registered Today ##

ericgtr 02-09-2005 01:05 PM

That's right, looks exactly like what I posted. If you use that and the other instructions I mentioned it should work. What exactly isn't working for you?

yoyoyoyo 02-09-2005 01:45 PM

is there anyway to make the phrase in the forum home stats only show up if there are registrations? If there is a day with no registrations it would be nice to not have it say anything instead of "Registered today: 0" :D

ericgtr 02-09-2005 02:26 PM

Quote:

Originally Posted by yoyoyoyo
is there anyway to make the phrase in the forum home stats only show up if there are registrations? If there is a day with no registrations it would be nice to not have it say anything instead of "Registered today: 0" :D

From what I can gather at first glance, I would have to completely rework the code for that and would take more time to learn how than I have right now. :)

Thug 02-10-2005 12:33 PM

so my code is ok? it doesnt reset at 0:00am

eva01_ 02-10-2005 12:36 PM

i believe it resets 24hrs after you installed it and that is the zero hour. at least thats my thought, or it is based off the creators timezone

David Bott 02-16-2005 11:03 AM

Not sure...but using Pauls M. revision produces...

Fatal error: Call to undefined function: vbmktime() in /home/avsforum/www.tivocommunity.com/tivo-vb/index.php on line 436

For me.

Paul M 02-16-2005 11:13 AM

Oh yeah - I hadn't noticed the require line is missing (for the file that includes the vbmktime() function);

add ;

PHP Code:

require_once('./includes/functions_misc.php'); 

above ;

PHP Code:

$cutoff vbmktime(000vbdate('m'$nowfalsefalse), vbdate('d'$now

Original post updated.

David Bott 02-16-2005 11:48 AM

LOL...Hi Paul! Boy, two helps from you in a day! Thank you for the support!

BTW...You also mention something about replacing "$whousers" in one line. So you know, or maybe you do, it is used in TWO places.

Can we please get a complete update to your fine code on in one post?

Paul M 02-16-2005 02:16 PM

Quote:

Originally Posted by David Bott
LOL...Hi Paul! Boy, two helps from you in a day! Thank you for the support!


BTW...You also mention something about replacing "$whousers" in one line. So you know, or maybe you do, it is used in TWO places.

Can we please get a complete update to your fine code on in one post?

I've checked the code in Post 18 and all the little bug fixes should now be in it - If you are using this version I suggest you replace your existing code with what's now in this post. :)


All times are GMT. The time now is 01:48 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.03123 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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