Archive

Archive for May, 2009

Shortcode Changes in LeagueManager 2.9+

May 29th, 2009

since Version 2.9 the shortcodes to display data from LeagueManager have changed

[standings league_id=ID]

[crosstable league_id=ID]

[matches league_id=ID]

[match id=x]

[teams league_id=ID]

[team id=x]

That makes things a little shorter. The other attributes are the same.  Sorry for the inconvinience

Kolja Schleich Plugins

LeagueManager Bugfixes

May 28th, 2009

Since there came up some important bugs I’ve just released a fix. Furthermore I have included a small upgrade help page to aid in the moving of teams and matches to a season. You can get to that page by adding:

&upgrade=2.9.2

to the URL on any LeagueManager Administration page. As far as I have tested it, it works. If not, just use the function call directly.

Kolja Schleich Plugins ,

Uprading to LeagueManager 2.9.1

May 26th, 2009

Everybody who has upgraded to Version 2.9 should first upgrade to 2.9.1 which will be out soon. This is crucial for everybody who upgrades to LeagueManager 2.9. You first need to add a new season and afterwards all teams and matches will be gone. Don’t despair, they just need to be put into the season you just created. Suppose the league ID is 1 and you have added a season named “2007″. You can then add all teams and matches to this season with the following function:

move_league_to_season( 1, 2007);

Now it is possible that you have created two different leagues to emulate two seasons. Let’s say League A 2007 (ID 1) and League B 2008 (ID 2) should belong to the same league, but only different seasons “2007″ and “2008″. First add the two seasons to League A. Then allocate season 2007 to all teams and matches in this league with the above command. Next you can move all teams and matches from League B 2008 to League A season 2008 with the following statement:

move_league_to_season( 2, 2008, 1);

In general the function looks like this

move_league_to_season( leagueID, season, new_leagueID, old_season);

leagueID is the ID you want to move teams and matchs to, season is the seaso. new_leagueID is only needed if you want to merge two leagues into one with different season. old_season should only be needed if you’ve already run the above functions and want to re-allocate teams and matches.

Note: This function is also available in Version 2.9, but the last two arguments are exchanged. So the call from above would look like this

move_league_to_season( 2, 2008, false, 1);

I hope this clarifies things and sorry for the inconvinience

Edit: The best way to do that is put the function call in functions.php of your theme.

Kolja Schleich Plugins

LeagueManager Championchip Mode

May 25th, 2009

I have already been asked several times if a Championchip Mode would be possible. I have also started workin on this feature, but unfortunately I don’t have enough time to further develop it, as it would be highly complex. However I have some preliminary code, that resides in lib/championchip.php and admin/championchip.php. It follows a list of features I thought would be needed:

* Option to set number of teams that adavance from preliminary round to final round (easy with WP action)
* insert groups (like Seasons)
* dropdown in team edit form to allocate group to team (easy with WP action)
* Add final matches beforehand in a style Winner A – Second B (present)
* replace code format of final matches with respective team

So the basic features of the plugin already exist or are quite easy to implement. However the last part of inserting the true teams for respective final matches is quite complicated. My idea would be to add buttons to proceed into the next round.

Is there anybody or group who would be willing to work on this feature. It should be already possible with LeagueManager 2.9 to implement a Championchip Mode as standalone-plugin. If not, I would provide needed hooks.

I hope there is somebody who could work on that, because I think it would be a very cool feature.

Kolja Schleich Plugins ,

LeagueManager 2.9

May 25th, 2009

After a longer time of development Version 2.9 LeagueManager is finally available. It  introduces several changes and new features, the most important being a modular setup with several Wordpress actions and filters for easy implementation of different sport types. Here’s a brief list:

* Modular setup and several new sport types
* unlimited number of widgets
* different dropdown menues for match report
* easy adding of custom fields for matches and teams via WP hooks
* match statistics
* shortcodes to show teamlist and single team page
* TeamRoster via bridge to ProjectManager (for match stats)
* track team rank of previous save

Due to the growing complexity and number of sport types I cannot provide templates to cover everything. I can only impement the basic features to gather all needed data. I encourage anybody who to design new templates for any specific sport type or just for the fun of it. You can then send them to me by email for inclusion into the main plugin.

Kolja Schleich Plugins , ,