New Sponsors Slideshow Widget

May 13th, 2009

I found some time to work a little bit on the Sponsors Slideshow Widget Plugin. In this new version I switched to using the jQuery Cycle Plugin. I think the bug in IE with displaying the first slide only half is now gone. Further it brings several new fade effects. Besides this new Widget title is now set manually. If left empty, no title will be displayed. Finally I’ve worked on the display function so that it should be possible to display the widget manually with the following code example:

sponsors_slideshow_widget_display(array(

‘number’ => 1,

‘category’ => catID,

‘widget_title’ => ‘Here goes the title’,

‘fade’ => ‘fade’,

‘time’ => 5,

‘width’ => 200,

‘height’ => 100,

order => 0

));

number is a unique integer to identify widget, catID is the ID of the link category to display, fade is any valid fade effect, time in seconds between images, width and height of slideshow in pixel, order can be 0 for sequential or 1 for random ordering of images.

Kolja Schleich Plugins ,

ProjectManager 2.3

April 14th, 2009

After being busy with university and thus a development break I found some time to work on ProjectManager. The new release fixes a major bug with form fields. Further I have implemented alternative texts for URL and E-Mail fields. Here’s an example:

www.google.de|Google

will output

<a href=”http://www.google.de” target=”_blank”>Google</a>

Same rule applies for E-Mail fields. Inserting it as follows

example@example.com|E-Mail

will give

<a href=”mailto:example@example.com”>E-Mail</a>

Additionally I have added a new formfield for file uploads, also with some nice icons depending on the file type. Fileupload is not AJAX enabled. Besides some minor bugs were fixed.

Kolja Schleich Plugins

Sponsors Slideshow Widget Update

April 14th, 2009

I’ve recently released a new version of my SponsorsSlideshowWidget. It supports now multiple widgets, so it is possible to present several link categories in different widgets. Further some styling issues are fixed, such as transparent background color and centering of the slideshow.

Kolja Schleich Plugins ,

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 , , , , ,