Home > Plugins > LeagueManager 2.9-RC1

LeagueManager 2.9-RC1

February 27th, 2009

I finally decided to release a first release candidate of the next version of LeagueManager. This version is still in development. I’ve tested it so far and it works for me fine, however it is possible that it contains some bugs. Here’s a quick overview of new features:

  • add goals, cards and exchanges for each match
  • bridge to ProjectManager (requires V2.1 or higher) to add special formfield with goal statistics
  • divide league in seasons
  • league archive page, use [ leaguearchive ]
  • single match view, use [ leaguematch id=ID ]
  • Irish Gaelic Footbal as new special league type

Anybody who wants to use the new plugin can download it at Wordpress.org. Since I haven’t marked it as stable the plugin is only visible on the Other Versions page or use this direct link. Additionally I am working on a championchip mode so it is possible to manage, e.g. soccer worldcup. Yet this feature is not fully implemented and not functional.

Edit: I forgot to mention something. While upgrading the plugin for each league it gets the year of the first meatch and adds a season for this and also sets this for teams and matches. Now it could be possible that you have created two separate leagues that truly are only two different seasons of the same one. Assume, you have two leagues “League 2008″ (ID=1) and “League 2009″ (ID=2) and now want to merge these two into one league with two seasons “2008″ and “2009″. After upgrading the two leagues should automatically have a season added. You can now move the teams and matches of “League 2009″ into season 2009 of “League 2008″ with the following function:

move_league_to_season( $league_id, $season, $old_season = false, $new_league_id = false );

The first parameter is the ID of the league you want to move teams and matches of and $season is the season. Firt you should add this season to the league you move matches and teams. $old_season is the season these matches and teams are currently set to (in this example it should be “2009″). $new_league_id is the ID of the league you want to move matches and teams to. For the above example you move all data of “League 2009″ into season 2009 of “League 2008″ with the following code

move_league_to_season( 2, “2009″, “2009″, 1 );

I hope this is understandable :) You should afterwards rename “League 2008″ to only “League” or something else since now it has two seasons.

Kolja Schleich Plugins ,

  1. Johnny
    February 28th, 2009 at 23:25 | #1

    Kolja, first of all, thank you for this great plugin. Second, I’ve got a question: is it possible to display the standing table in a post demand on match days? I mean, I write a post on 28th february, and want to display the current standing of the leauge without of changing it next week? I hope I was clear. :)

  2. March 2nd, 2009 at 05:35 | #2

    Well done! You are truly skilled!

    Errors Found:
    Mode: Championship is mis-spelled (says championchip)

    Questions: If coaches change every season? does this reflect old coaches in season 1 archive and new coaches in season 2 archive?

  3. Kolja Schleich
    March 2nd, 2009 at 09:24 | #3

    @Johnny
    Sorry that is currently not possible.

    @FiLiFLiP
    For each season a new team is added to the database, because the points etc. are different in a new season. Further it could be that a team ascends into a higher league or descends into a lower league. Thus you can firt let the plugin grab existing teams from the database and create new ones upon adding of a season. Then edit the new teams data and change the coach. You’ll have different coaches for the two seasons. Was that your question?

  4. March 2nd, 2009 at 18:39 | #4

    @Kolja Schleich

    So basically, When i go onto season 2, and choose to grab teams from the DATABASE, they are 2 different teams from season 1 and season2. So if I edit Season 2 Team, it will not mess with the season 1 Team stats/coaches or even Logo? IF that’s the case! That’s awesome!

  5. March 2nd, 2009 at 18:41 | #5

    Is it possible to change the size of the thumbnail or choose to not edit it at all? Where can i find this information?

    And what pages need to be modified, ‘i’m sure i can figure it out if you can point me in the right directions.’

    Kolja for president!

  6. Kolja Schleich
    March 2nd, 2009 at 20:44 | #6

    Yes, there are two separate team entries for each season. Concerning the thumbnails. In

    lib/image.php

    of the plugin there’s the function createThumbnail. There the original logo is resized to 60×60 px and the thumbnail to 30×30 px. For now you can change these parameters to your needs. If you don’t want to resize the original Logo image simply comment out the part

    $thumbnail->resize( 60, 60 )

    I can add an option to control image and thumbnail sizes in future versions.

  7. Hugo
    March 4th, 2009 at 14:45 | #7

    Kolja, first of all, thank you for this great plugin. It’s fantastic! I’m portuguese, and i don’t speak english very well, but i will try talk to you about one little thing. In automatic ranking of football, when two or more teams have the same number of points, the system put in the 1st place the team with better goal diference, in 2nd place the team with the 2nd best goal diference…But in my country when two or more teams have the same number of points, the tie factor is the number of points earned in matches between the teams with the same number of points.

    Eg.:

    Suposed that table:

    Team A – 3 games – 2 W – 1 D – 0 L – 7-6 goals – 4 P
    Team B – 3 games – 1 W – 0 D – 2 L – 7-7 goals – 3 P
    Team C – 3 games – 2 W – 1 D – 0 L – 8-6 goals – 4 P
    Team D – 3 games – 1 W – 0 D – 2 L – 4-5 goals – 3 P

    Points rules: V: 3 points D: 1 point L: 0 points

    Today, the automatic ranking of your system it’s based in total goal difference…So:

    1st place – Team C – GD: (+2) – 4 points
    2nd place – Team A – GD: (+1) – 4 points
    3rd place – Team B – GD: (0) – 3 points
    4th place – Team D – GD: (-1) – 3 points

    But in my country, the 1st tie factor is the number of points earned in matches between the teams with the same points. So:

    Assuming that during the championship the results between the two teams with same points are:

    Team A- 2 Team C- 1
    Team C- 1 Team A- 1

    The ranking will be:

    1st place – Team A – GD: (+1) – 4 points
    2nd place – Team C – GD: (+2) – 4 points
    3rd place – Team B – GD: (0) – 3 points
    4th place – Team D – GD: (-1) – 3 points

    Do you understand me??It’s possible put rules for automatic ranking of teams, like:

    1- Number of points (obviously)
    2- Number of points earned in matches between the teams with the same points
    3- Goal diference in matches between the teams with the same points
    4- Total goal diference

    I know that it’s possible put the ranking manually, but i think that this functionality will further increase the quality and the features of this fantastic plugin.

    Tahnks a lot Kolja1

  8. Jude
    March 12th, 2009 at 17:06 | #8

    Hi Kolja,

    In the same way of “single match view, use [ leaguematch id=ID ]“, is it possible to have the possibility to select all matches from “Match 1″ for exemple ? (this option should be an option in the shortcode)

    -> [ leaguematches league_id=ID mode=|all|home template=X ] : it displays all matches with a select box but I would like to have the possibility to choose which match I want to display (one and only one at a time).

    Thanks !

  9. Monika
    March 29th, 2009 at 17:47 | #9

    Hi recht herzlichen Dank für dieses Plugin und gleich eine Frage ich habe:

    die Links in den Tabellen öffnen mit target blank, das kann ich so nicht brauchen – wie kann ich dies ändern, ohne jedes Mal es neu machen zu müssen bei einem Update? hast du da eine Idee für mich bitte

    lg

  10. Sthin
    April 16th, 2009 at 09:59 | #10

    Echt super Plugin.
    Leider einige Bugs, wenn man mehr als 19 Teams hat und standings updaten will funktioniert das nicht. Der springt in die Abfrage nicht mehr rein und gar nichts wird geupdatet wenn man 20 oder mehr Teams hat in einer Liga. Ein weiterer Bug ist beim einfügen der Ligen in Posts oder Pages, das kleine Popup geht auf wenn man sagt zum Beitrag hinzufügen geht das Fenster zu und kein Code steht im Editor… das abeer halb so wild, man kann den Code ja manuell im Editor eingeben.

  11. Kolja Schleich
    May 8th, 2009 at 21:14 | #11

    Hey everybody,

    thank you very much for your feedback and sorry that I haven’t responded so far. I will work on the issues as soon as possible.

  12. August 28th, 2009 at 13:39 | #12

    Jude :
    Hi Kolja,
    In the same way of “single match view, use [ leaguematch id=ID ]“, is it possible to have the possibility to select all matches from “Match 1″ for exemple ? (this option should be an option in the shortcode)
    -> [ leaguematches league_id=ID mode=|all|home template=X ] : it displays all matches with a select box but I would like to have the possibility to choose which match I want to display (one and only one at a time).
    Thanks !

    I saw that feature is enabled in the new version ! Thanks
    (not yet in the inline documentation, I saw this in the php code)

  13. Nevnar
    August 30th, 2009 at 14:07 | #13

    Hi,

    I have WordPress 2.8.4. German when I activated Leaguemanager i become an errormessage, is the plugin not for this Version?

    Ich benutze WordPress 2.8.4. Deutsch, nach dem aktivieren bekomme ich einer Fehlermeldung, kann es sein das der Leaguemanager nicht mit dieser Version zusammenarbeitet?
    Gibt es da eine neuere Version oder so?

    Gruss
    Nevnar

  1. March 6th, 2009 at 14:10 | #1