• I think this has actually been answered before, but for some reason, I just can’t seem to figure it out.

    Points
    When we add or take away points from the team (For whatever reason), shouldn’t it effect the team ranking?

    For example, I have 2 teams that have an equal amount of wins. Team 1 has beaten Team 2, so I want to add a single point to Team 1 so they rise in the standings.

    At this point, when I add points to a team, no matter how many I add, it doesn’t do anything in the rankings.

    https://www.ads-software.com/extend/plugins/leaguemanager/

Viewing 15 replies - 1 through 15 (of 35 total)
  • Plugin Author LaMonte Forthun

    (@lamontef)

    What I’ve found is that if you add the point and hit tab, you should see a change. What I believe I’ve seen in the past is you have to refresh the screen, so what I would do is put the point in the box, hit tab, and then go to the ‘show’ group popup and click that for whatever group I’m on.

    I know it works, it just might need to be tweaked a bit.

    Let me know if that works for you..

    Thread Starter intellicents

    (@intellicents)

    Just tried it and I’m not seeing a change. I’m trying to get the 2nd place team to move to first.

    Thread Starter intellicents

    (@intellicents)

    Still not sure what to do here.

    2 of our teams are tied for first place. The team currently in 2nd place has beat the team in first place. I need a way to move the team in 2nd place to first place.

    Is there a way to do this?

    I’ve tried adding and taking away points, but nothing works. Any help would be greatly appreciated. We have started our Spring 2013 season, so anything I do is going to have to be quick.

    Thank you in advance.

    Thread Starter intellicents

    (@intellicents)

    I give up.

    I’ve tried every possible scenario I can think of for modifying the team rankings. I’ve tried modifying the code and nothing works. Now I have team number 1 with less wins than team number 2, but yet they’re still in 1st place.

    Plugin Author LaMonte Forthun

    (@lamontef)

    Two things to try:
    1). Again, do the exactly – in the ‘+/- points’ box at the end of the row, put ‘1’, then hit ‘tab’ (you can’t hit the ‘enter’ or ‘return’ keys to get it to work, they don’t, you should see a spinning ‘wait’ symbol and the box will move slightly left (there’s no significance to that other than if you see the box shift, you need that the Ajax code is working). Nothing will change at that point, but right above the list of teams and the standings, you’ll see the ‘Show’ button. Click that to refresh the screen. If that doesn’t work I need to fix it…

    2). The best way to get all the calculations to re-calculate is to go into the list of games and delete a score (just one of the two from a game) and re-enter it. Then go to the bottom of the screen and hit ‘Update Results’. Every time you update results the plugin goes through every game and does the calculations it has to do.

    If neither of those work plan B will be to have you export all your teams and games and send those files to me, as well as a zipped up version of your plugin folder, but if I’m not mistaken, you’ve already done that.

    Try the above and let me know if either work.

    Thread Starter intellicents

    (@intellicents)

    #2 worked…

    I updated with a +1 to the team in 2nd place, hit tab and clicked “Show”. The page refreshed and nothing happened.

    I deleted a score, updated, entered the score and updated again. Then I saw the change.

    A little difficult to do, but at least it worked! Thank you!!!

    Plugin Author LaMonte Forthun

    (@lamontef)

    Good, the solution is the get the ‘sport’ file to have the right sort method, but until that happens you’ve got a solution.

    A couple of things:

    1). A quick screen cap of doing Option 1, tell me if you see the ‘wait’ symbol that comes up shortly after entering a number and hitting tab. If not, there’s a problem with the Ajax. Also, did you use ‘+1’ or just ‘1’? Nevermind on that last question, I just tested it and it shouldn’t matter (in case anyone else is curious…)

    2). You are going one step extra. When you delete the score, all you need to do is select one of the two boxes that make up a full score and replace it, even with the same number, then hit update. You don’t need to delete, update, then add, update. If I’m not mistaken, you probably don’t even need to replace one of the scores, you should be able to just hit update. For instance, you decide to change the ranking rules in the ‘baseball.php’ file and need to re-rank everyone, modify ‘baseball.php’ then come back to the standings page and hit update and the new rule will read all the scores and update the rankings based on those new rules.

    Let me know about option 1, I’m going to try to duplicate it in one of my installations, but all that I’ve tested so far (about six) has it working right, so there’s something going on with a plugin conflict possibly that I need to sort out. In fact, what would be helpful is if you could give me a list of plugins so I can test any that I can get my hands on.

    Thanks!

    Thread Starter intellicents

    (@intellicents)

    1). A quick screen cap of doing Option 1, tell me if you see the ‘wait’ symbol that comes up shortly after entering a number and hitting tab

    I do see the spinning wheel.

    After trying it a couple of more times, All I need to do is add the 1 and hit “Show” to update the page. Once it refreshes the page, the Pts are updated to reflect the change, but the teams are still in the same position. BUT, when I go to the bottom and click on “Update Results”, (Without changing scores), it reflects the changes I’ve made.

    Plugin Author LaMonte Forthun

    (@lamontef)

    OK, so the points are updated, that’s key… You’re using the ‘baseball’ sport file, which I think is the problem here, those points are not part of the ranking…

    Sorry, I hadn’t looked at that file until I just remembered that you’re working on a softball league…

    I’m going to give you some code in a few minutes that will help.

    Thread Starter intellicents

    (@intellicents)

    Thank you!

    Plugin Author LaMonte Forthun

    (@lamontef)

    My pleasure, I need another hour or so, I have to finish my lead story for the night, then I’m on LM code for a few hours.

    Awesome. I am also having the same issue. Look forward to your help LaMonte! Thanks.

    So I have two teams that have both played 4 games and won 4 games. They both have the same number of runs against, but one has more games for than the other. The top ranked team is the one with the less runs for. https://lmsoftball.com/bantam-b-standings/

    Is this correct?

    Thread Starter intellicents

    (@intellicents)

    In our softball leagues, this is how we calculate our standings…

    (1) Winning Percentage
    (2) Winner of head-to-head game(s)
    (3) Fewest runs allowed head-to-head
    (4) Fewest runs allowed in all games
    (5) Most runs scored head-to-head
    (6) Most runs scored in all games

    Thread Starter intellicents

    (@intellicents)

    @lamonte,

    I went ahead and updated to 3.8.8.1

    When I did, I couldn’t get the teams to sort by adding points anymore. No matter what I did.

    I noticed in the upgrade that you’ve been working on the baseball.php file. In the array_multisort, I removed the SORT_NUMERIC field on the rankTeams function, updated and was again able to adjust the standings by adding or removing points.

Viewing 15 replies - 1 through 15 (of 35 total)
  • The topic ‘Team Ranking’ is closed to new replies.