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


All times are GMT. The time now is 08:33 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
  • Page Generation 0.01149 seconds
  • Memory Usage 1,726KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete