Archive

Archive for February, 2009

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 ,

ProjectManager 2.1 with Bridge support

February 27th, 2009

The new version of ProjectManager has only a small change, but with great effect. The formfield types make use of the wordpress filter system, which enables other plugins to add special fields. This makes it possible to enable LeagueManager to hook into the plugin and more datafields, e.g. goal statistics. The formfields are added with the following code:

add_filter( ‘projectmanager_formfields’, ‘filter_formfields’);

‘filter_formfields’ is just an example function adds another field, such as:

function filter_formfields( $formfields ) {

$formfields['goals'] = array( ‘name’ => __(‘Goals’, ‘leaguemanager’), ‘callback’ => array($this, ‘getNumGoals’), ‘args’ => array() );

return $formfields;

}

This is the example I used to add a special field type in LeagueManager which automatically calculates shot goals of a player. The ‘name’ is simply the label of the field, ‘callback’ is a function that retrieves and returns the data, while ‘args’ are additional arguments that are passed to the function. ProjectManager automatically passes as first argument the dataset name and id as associative array. The function in the used example looks like this.

function getNumGoals( $player ) {

$player_name = $player['name'];

$player_id = $player['id'];

// get number of goals for this player

}

I hope I could describe a little bit how the bridging between the plugins functions. As far as I can tell now ProjectManager won’t need any further changes since most of the bridging is done from LeagueManager. Anybody can use the above filter to add formfields with special data. Up to now the new LeagueManager version is still in development and the next release will have the field for goal statistics.

Kolja Schleich Plugins , , , , ,

Doing an Internship in Harvard

February 22nd, 2009

Well, this post has only marginally to do with my Wordpress Plugins. I develop the plugins as a hobby in my free time. In “real life” ;) I study Molecular Biotechnoloy, as a graduate student. As part of my study programme I will do a three month internship at Harvard Medical School this summer, from May to August, in the department of Systems Biology. As everyone can imagine this will cost a lot of money and the lab group cannot support me. So, if you like my work and want to support me and my work, I’m really grateful for any donation. Even a Euro can make a difference.

During this time it could also be that I won’t have that much time (if any) to work on my Plugins. So please be patient then :)

I want to stress that my Plugins are still and will be in the future free of Charge and donations are completely voluntarily!

Kolja Schleich General

Future plans for LeagueManager

February 22nd, 2009

The next version will have extra fields to insert goal, cards and exchange statisticss for each match.

Further I have previously been asked if player registration is possible with the LeagueManager. As I have stated in the readme it is not directly. I have just come up with an idea to combine the LeagueManager and ProjectManager to make this really possible. On the ProjectManager side I think there just have to be special formfields, e.g. goals, which data will be retrieved from LeagueManager. On the other side there could be an option to bridge a league to a project that has player profiles stored. This would make it possible to have simple dropdown menus for goal statistics and save player IDs in the database that can be retrieved by ProjectManager.

I’m happy to get feedback :)

Kolja Schleich Plugins , , , ,

LeagueManager 2.8

February 22nd, 2009

This version comes with a bunch of new features:

  • optionally add team from existing one
  • insert standings manually
  • possibility to manually rank teams via drag & drop
  • import and export of teams and matches to CSV files
  • additional field to add or substract points for teams

Check it out @ Wordpress.org

Kolja Schleich Plugins ,