![]() |
Number of new members statistic on forum home
I wanted to show potential advertisers as well as potential forum members how many people are registering to use our forums every day.
So I wrote this hack to display a 30 day average in the stats box of the forum home. It counts the number of people in user group 2 - registered members, ignoring those people who haven't activated their accounts, yet. It's very easy, takes just a few minutes and requires 1 additional query. You can see it working at www.avforums.com. Please click Install if you use it. Thanks to Bryan Ex for doing a bit of bug fixing help :) |
Great idea... well, at least for active forums. LOL Adding it in today - thanks!
|
Something you will likely get asked about is a query to update the stats after a new install. I can see many not wanting to display 0.00 to start out with.
|
I doubt anyone having done a new install will want to have this hack working for a wee while. Anyway all they'll have to do is revert back to the original FORUMHOME template. Glad you think it's useful.
|
LOL... yeah, that I agree with but what I meant was even for an established board the stats start out at 0 and I would presume it will take a month for them to be accurate (each day that passes getting a little closer). I've done exactly what you've suggested and left it installed but commented out the forum display until later this month when it looks a little better. I'll just have to remember to uncomment next month. Nice hack though and it will be very helpful to me.
|
You could use the round() function to get a whole number out of the average. :)
|
Quote:
PHP Code:
PHP Code:
|
Nice Hack, I like it :)
|
i dont understand how this mod works spinball...
i looked on ur site and it says: New registrations per day (30 day average): 66.20 whats the decimal part for? i thought each new register counts as one and not as a decimal |
It's averaged over a 30 day period... in this case 1986 new joins in 30 days (1986 / 30).
|
All times are GMT. The time now is 04:42 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|