WordPress.org

Ready to get started?Download WordPress

Forums

LeagueManager
Standings Incorrectly Calculated (9 posts)

  1. unimaxx
    Member
    Posted 3 months ago #

    Using LM version 3.8.8.1 baseball option and Default Mode. Using User defined Points rule and only 1 point for win (or OT win)

    In one category and of 20 teams there are several ties. 2 tied for 3rd, 3 tied for 5th, and 2 tied for 8th spot etc..
    I noticed that of the 3 tied for 5th and 2 tied for 8th one of the teams in 5th should actually be in 8th spot.
    See results below:
    Note - scores are - (PLD,W,T,L,PCT,GB,PTS)
    5th Spot
    Team A (4,3,0,1,.75,1.5,3:1)
    Team B (3,3,0,0,1,1,3:0)
    Team C (4,3,1,0,.75,1,3:0)
    8th Spot
    Team D (4,3,0,1,.75,1.5,3:1)
    Team E (5,3,1,1,.6,1.6,3:1)

    Shouldn't team A be tied in 8th spot?
    Was there a bug corrected in a later version of code that will correct these standings? Or is there an option that I can use to correct it?

    https://wordpress.org/plugins/leaguemanager/

  2. LaMonte Forthun
    Member
    Plugin Author

    Posted 3 months ago #

    Sorry for my delay in responding...

    The short answer is that the baseball sport file hasn't been touched much... The real answer is that the way baseball standings are currently ranked are by number of wins and then if there's a tie the secondary sort is number of losses. I'm currently working on the baseball file to clean up some PHP Strict mode errors and to update this rankings issue, so feel free to add your opinion on how you'd like it to work. The ultimate plan is to allow the user to choose their method of ranking and tiebreakers.

  3. unimaxx
    Member
    Posted 2 months ago #

    I like the idea of users having the ability to change the ranking as you have described. Not sure how hard that would be to implement.

    The main issue right now is that the calculations do not go far enough. Wins then losses and then ties are decided based on the team's group ID in LeagueManager....PCT would be a better ranking engine since different leagues might score W/T/L differently.

    Even in the short term if it could be ranked something like"
    PCT then
    GB then
    RF

    what is needed to move this ahead?

  4. jjozefowicz
    Member
    Posted 2 months ago #

    Hi - has anything materialized on the ranking for baseball? I cannot for the life of me get my plugin to rank based on win percentage and then wins. Ive modified the baseball.php file in the rankteams part to change the ranking to these fields but it doesnt do anything. Any help would be greatly appreciated Thanks!

    @unimaxx - i like the softball site standings you showed in a previous post - thats what Im trying to achieve but cant figure out what changes to make where.

  5. LaMonte Forthun
    Member
    Plugin Author

    Posted 2 months ago #

    I've got most of the work done with the baseball sport file, but was pulled away for a few days on something. I'll wrap it up shortly and give you something to test.

  6. buzzilinear
    Member
    Posted 2 months ago #

    That'd be great. I've been battling with it. Since it ranks teams with losses descending, it then calculates GB. You can see at the standings page of powerlinebaseball.com. Getting this fixed would be great.

  7. esmi
    Forum Moderator
    Posted 2 months ago #

    @buzzilinear: If you require assistance then, as per the Forum Welcome, please post your own topic instead of tagging onto someone else's topic.

  8. stylinjimp
    Member
    Posted 1 month ago #

    Hi Lamonte,

    I tried to reach you on a few threads but have not been successful. Running into a problem with Championship mode. When entering teams in for Quarter final matches, I can add one match, but any time I try to add a second one, I get this Error:

    WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1]
    SELECT custom FROM wp_leaguemanager_matches WHERE id =

    WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1]
    SELECT custom FROM wp_leaguemanager_matches WHERE id =

    WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1]
    SELECT custom FROM wp_leaguemanager_matches WHERE id =

    ANY Suggestions would be greatly appreciated.

  9. esmi
    Forum Moderator
    Posted 1 month ago #

    @stylinjimp: If you require assistance then, as per the Forum Welcome, please post your own topic instead of tagging onto someone else's topic.

Reply

You must log in to post.

About this Plugin

About this Topic