April 09, 2009 at 09:34PM View BBCode
I've added the League Leader in Bold Italics on the player card for all the "positive" categories for pitching and hitting. This is the overall MLB leader.April 10, 2009 at 02:10AM View BBCode
Nice! This one has been asked for plenty of times.April 10, 2009 at 03:25PM View BBCode
It took a lot longer than you might expect - I've been working on it on-and-off for the last week or so. I couldn't just add the logic to the player card page, as that would basically be the equivalent of loading every league leaders page for every season for that league each time any player card is loaded. So I needed a more elegant solution, hence why it gets set during the offseason.April 16, 2009 at 06:12PM View BBCode
It's a nice feature but ideally I'd like to see it show "league" leaders not MLB.April 16, 2009 at 06:50PM View BBCode
Will it put a black diamond next to it, like on Topps cards?April 16, 2009 at 08:55PM View BBCode
It's a nice feature but ideally I'd like to see it show "league" leaders not MLB.I debated this and decided to go with MLB. I left room in the code to someday add AL vs. NL.
Also does ABE do a coin flip on ties or do both players get credit ?Both should get credit.
Will it put a black diamond next to it, like on Topps cards?Just bold and italics for now.
April 19, 2009 at 05:39AM View BBCode
This doesn't appear to be working correctly at all.April 22, 2009 at 08:53PM View BBCode
I think the code ran for the current season - in which everyone had 0s in all columns so everyone was the league leader. That is my guess at least, I need to look into this.April 22, 2009 at 09:07PM View BBCode
Ok, I've updated this code so it should work properly next OffSeason for the 2033 leaders. I've reset the league leaders for 2033.May 05, 2009 at 04:03PM View formatted
May 05, 2009 at 04:20PM View BBCode
I think I wrote the code to do past seasons, but I'll have to confirm that.May 07, 2009 at 03:29AM View BBCode
I just noticed this doesn't appear to be working for the rate stats:May 08, 2009 at 08:50PM View BBCode
Good catch. I forgot to look for minimum plate appearances for AVG. Let me fix that going forward:May 08, 2009 at 09:10PM View BBCode
I presume the same thing happened with the pitching stats.May 13, 2009 at 07:03PM View BBCode
Did this get fixed before the changes were put in?May 13, 2009 at 07:16PM View BBCode
I fixed this for batters. For pitchers, I don't believe it was a problem. I just checked the code and it looks for at least 162 IP for Pitchers, which is the MLB rule.May 13, 2009 at 07:20PM View BBCode
Cool I figured you had but wanted to check since your example above was still bold.May 13, 2009 at 07:28PM View BBCode
ERA doesn't seem to be working. I am guessing WHIP isn't working either. I'm looking into this now.Pages: 1