![]() |
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 ## |
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?
|
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
|
Quote:
|
so my code is ok? it doesnt reset at 0:00am
|
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
|
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. |
Oh yeah - I hadn't noticed the require line is missing (for the file that includes the vbmktime() function);
add ; PHP Code:
PHP Code:
|
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? |
Quote:
|
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|