Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Batting Average for Baseball Type Forums Details »»
Batting Average for Baseball Type Forums
Version: 1.00, by Ryan Ashbrook Ryan Ashbrook is offline
Developer Last Online: Oct 2015 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 05-21-2004 Last Update: Never Installs: 4
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 05-24-2004, 05:57 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by JCJiffy
Posts per day is based off total post counts and the join date.
Right. So if you have a new user that is posting alot (as new users often do) and a user that has been there a while but not posted in a while, then the new user will have a higher batting average than the user with a big post count. That is how this should work.
Reply With Quote
  #13  
Old 05-24-2004, 06:03 AM
JCJiffy JCJiffy is offline
 
Join Date: Apr 2004
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo
Right. So if you have a new user that is posting alot (as new users often do) and a user that has been there a while but not posted in a while, then the new user will have a higher batting average than the user with a big post count. That is how this should work.
And to quote myself from above:

Quote:
Originally Posted by JCJiffy
Join dates are the same.
In other words, I am noticing that people with higher post counts AND higher posts per day are getting lower batting averages.
Reply With Quote
  #14  
Old 05-24-2004, 10:46 PM
Ryan Ashbrook's Avatar
Ryan Ashbrook Ryan Ashbrook is offline
 
Join Date: Dec 2002
Location: Cincinnati, Ohio
Posts: 422
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, the thing about the equations is I couldn't get it to work without putting it like it is.

I'm not the best PHP coder in the world, since I've only released three hacks, and they're all basic ones.
Reply With Quote
  #15  
Old 05-25-2004, 12:35 AM
MLBCenter MLBCenter is offline
 
Join Date: Sep 2003
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If anyone else can help that would be great...
Reply With Quote
  #16  
Old 06-21-2004, 06:35 PM
Strike Three Strike Three is offline
 
Join Date: Jan 2004
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here's an idea, for an all-sports forum - give users the choice between batting average [baseball fans], QB passer rating [football fans], shooting percentage [basketball fans or hockey fans]. If you want to give this a try and would like to test it on my site, shoot me an email - chris@thesportsfans.com.
Reply With Quote
  #17  
Old 07-02-2004, 02:22 AM
Strike Three Strike Three is offline
 
Join Date: Jan 2004
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed this on my site, but for some reason the batting average shows up at 0.000 for anyone with 3.xx posts per day (or more?).

Ex - http://www.thesportsfans.com/forums/member.php?u=10, http://www.thesportsfans.com/forums/member.php?u=11
Reply With Quote
  #18  
Old 07-05-2004, 02:38 AM
MLBCenter MLBCenter is offline
 
Join Date: Sep 2003
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There are some flaws in the BA system here - which is why we created our own way on getting a realistic batting average for all members.
Reply With Quote
  #19  
Old 07-05-2004, 05:26 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MLBCenter
There are some flaws in the BA system here - which is why we created our own way on getting a realistic batting average for all members.
Would you care to share?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:12 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.04680 seconds
  • Memory Usage 2,283KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete