![]() |
How "Fast" Do Your Forums Go?
This silly little hack calculates the "velocity" of your forums measured in posts per hour.
It runs as a scheduled task once per hour. You can change how often it runs, but please remember that this one queries the post table which can make quite a hit on a large board. NOTE: In velocity.php, I set the limit on the first query to avaluethatexceeds how many posts per day that my forum gets. Change this value to be higher than the number of posts you expect to get in aday,but make it reasonable. How it looks is entirely up to you. Change the template to suit your needs. I kept mine simple for now. I'm sure you'll find more creative ways to display this data. |
Nice hack, /me installs.
|
Deaths, you were too fast. Grab the install instructions again real quick. I didn't have the queries in that one.
|
Ok, heh.
|
Nice...
|
when you're a maniac of stats, this hack is amazing!!! great idea!
|
how many queries for this amy ?
|
Thanks for this, it shall look nice! :)
|
Quote:
|
OK, I've got it installed into a nice box under my users online... The first thing I've noticed we are missing is a timestamp from when the top velocity occured. That would be a nice addition amy. :)
|
It's in the scheduled task code and in the table, but I haven't written the code to change the format of it or put it in the datastore yet. That's on my to do list.
|
Quote:
|
Amy is the best!
|
Quote:
|
I was thinking this would be cool to show how each individual forum is stacking up against the others on your board.
|
Nice but do we really need all the numbers after the decimal? Why not change 4.2344045850 to just 4.2?
Find: Code:
$velocity = $count/24; // This gives us average posts per hour. Code:
$velocity = number_format ($velocity, 2, '.', ''); |
Nice!!
Thanks, Amy. :) Ran the script once it was loaded and saw 47 posts per hour. On a Sunday afternoon. *faints* [high]* Christine clicks install[/high] |
Maybe a bit query hungry for me but nice job :)
|
All times are GMT. The time now is 04:43 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:
|