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)
-   -   Batting Average for Baseball Type Forums (https://vborg.vbsupport.ru/showthread.php?t=65413)

Ryan Ashbrook 05-21-2004 10:00 PM

Batting Average for Baseball Type Forums
 
This was requested by MLBCenter at vBulletinTemplates.

Basically, this hack averages in Post Count, Posts Per Day, and Join Time and gives an average at one thousandth of a decimal.

So it will display an average like this: .203 on both the memberinfo and postbit pages.

I hope you enjoy this hack. :)

Credits:

Boofo - Helping fix the code. Thanks a lot!

MLBCenter - For letting me develop this hack on his live forums. :)

The textfile will constantly be changing, so if you get abnormal averages either report them to me in this thread, or re-do the codes, because posts per day is a tough one to work with, since the posts per day can be very weird on a user by user basis.

xQuEeNzNaZcHox 05-23-2004 01:57 AM

Can I see some screens? It's very interesting looking.

MLBCenter 05-23-2004 02:29 AM

I'm getting an error now...

http://forums.mlbcenter.com/member.php?u=2676

Ryan Ashbrook 05-23-2004 02:27 PM

Screenshots attached to first post.

Ryan Ashbrook 05-23-2004 04:14 PM

Ok, it's been determined that this hack needs work, or there is no definate way to actually do this.

Code optimized, and totally fixed. :)

Boofo 05-23-2004 10:28 PM

Congratulations on your second vB3 hack, Ryan. ;)

I think I'll use this. Great idea. Thank you, sir. ;)

Ryan Ashbrook 05-24-2004 12:20 AM

You're welcome Boofo. :)

Remember about my note in the first post though. The code will always be changing, so be on the lookout. ;)

JCJiffy 05-24-2004 05:32 AM

The algorithm you're using doesn't make sense at all. Users on my forums with extremely high post counts end up having way lower batting averages than those with very low post counts. Join dates are the same.

Boofo 05-24-2004 05:39 AM

Quote:

Originally Posted by JCJiffy
The algorithm you're using doesn't make sense at all. Users on my forums with extremely high post counts end up having way lower batting averages than those with very low post counts. Join dates are the same.

But rememeber that the batting average is based on posts per day, not total post counts. ;)

JCJiffy 05-24-2004 05:45 AM

Quote:

Originally Posted by Boofo
But rememeber that the batting average is based on posts per day, not total post counts. ;)

Posts per day is based off total post counts and the join date.


All times are GMT. The time now is 01:41 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.01088 seconds
  • Memory Usage 1,728KB
  • 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_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