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)
-   -   How "Fast" Do Your Forums Go? (https://vborg.vbsupport.ru/showthread.php?t=78521)

amykhar 03-20-2005 10:00 PM

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.

Deaths 03-21-2005 07:40 PM

Nice hack, /me installs.

amykhar 03-21-2005 07:45 PM

Deaths, you were too fast. Grab the install instructions again real quick. I didn't have the queries in that one.

Deaths 03-21-2005 07:54 PM

Ok, heh.

Polo 03-21-2005 09:01 PM

Nice...

nexialys 03-21-2005 09:15 PM

when you're a maniac of stats, this hack is amazing!!! great idea!

lasto 03-21-2005 10:15 PM

how many queries for this amy ?

accyroy 03-21-2005 11:37 PM

Thanks for this, it shall look nice! :)

amykhar 03-21-2005 11:38 PM

Quote:

Originally Posted by lasto
how many queries for this amy ?

It runs a maximum of two queries every time it runs. One to get the posts and then one to update the max velocity log if necessary. But, it runs as a cron job and can be scheduled to run hourly or daily. It's your choice.

accyroy 03-21-2005 11:50 PM

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. :)

amykhar 03-22-2005 12:18 AM

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.

ericgtr 03-22-2005 01:20 PM

Quote:

Originally Posted by nexialys
when you're a maniac of stats, this hack is amazing!!! great idea!

I am and will install (click). I like this idea, however I think I will probably tweak it around and link it on the forumhome or forumdisplay so that when launched will give you a popup or something similar. Great idea, amykhar!

TheComputerGuy 03-22-2005 02:49 PM

Amy is the best!

amykhar 04-15-2005 01:43 AM

Quote:

Originally Posted by TheComputerGuy
Amy is the best!

Awwww shucks :blush:

Reeve of shinra 04-15-2005 02:22 AM

I was thinking this would be cool to show how each individual forum is stacking up against the others on your board.

WreckRman2 05-01-2005 04:54 AM

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.
Add below:

Code:

$velocity = number_format ($velocity, 2, '.', '');

Christine 05-15-2005 06:11 PM

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]

SnowBot 05-15-2005 09:04 PM

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
  • Page Generation 0.01097 seconds
  • Memory Usage 1,742KB
  • 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_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (18)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete