The Arcive of vBulletin Modifications Site. |
|
vBa CMPS: users registered today Details »»
|
|||||||||||||||||||||||||
This will add a "Registered Today" (actually in the last 24 hours) to your Stats box.
Add a phrase: Global Varname: reged_today Text: Registered Today In the adv_portal_stats template: Find: Code:
$vbphrase[top_poster]: <a href="$vboptions[bburl]/member.php?$session[sessionurl]u=$topposter[userid]">$topposter[username]</a> ($topposter[posts])<br /> Code:
$vbphrase[reged_today]: ($newusers[count])<br /> Find: Code:
$newuserid = $userstats['newuserid']; Code:
$newusers = $DB_site->query_first('
SELECT COUNT(*) AS count
FROM ' . TABLE_PREFIX . 'user
WHERE joindate >= "' . strtotime("-1day") . '"
');
$newmembers = number_format($newusers['count']);
Supporters / CoAuthors Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
nice, thanks
|
|
#3
|
||||
|
||||
|
cool
|
|
#4
|
|||
|
|||
|
Nice.
Will install soon.Edit: Installed. Works perfectly. Thank you.
|
|
#5
|
||||
|
||||
|
Quote:
|
|
#6
|
||||
|
||||
|
Nice touch! Thanks :up:
|
|
#7
|
|||
|
|||
|
some reason itr isnt working for me.
|
|
#8
|
||||
|
||||
|
Quote:
|
|
#9
|
|||
|
|||
|
its blank not showing up
|
|
#10
|
||||
|
||||
|
Okay, double check your stats.php and make sure you posted all of the code exactly where I mention or start over from scratch, as long as that's there it should show up. Also, make sure your DB prefix is the same.
|
![]() |
|
|