![]() |
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. |
Can I see some screens? It's very interesting looking.
|
|
Screenshots attached to first post.
|
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. :) |
Congratulations on your second vB3 hack, Ryan. ;)
I think I'll use this. Great idea. Thank you, sir. ;) |
You're welcome Boofo. :)
Remember about my note in the first post though. The code will always be changing, so be on the lookout. ;) |
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.
|
Quote:
|
Quote:
|
Quote:
|
Quote:
Quote:
|
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. |
If anyone else can help that would be great...
|
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.
|
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 |
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.
|
Quote:
|
All times are GMT. The time now is 05:02 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|