Archive

Posts Tagged ‘data management’

ProjectManager 2.7

July 1st, 2009

Here’s a short list of new features:

  • Image Upload
  • Video Upload
  • Internal Link to other Projects Datasets

Besides I have cleaned out some unneccessary HTML. If you use FormField Types “Internal Link”, “Dropdown Menu”, “Checkbox List” or “Radio List” it is required to save FormFields first. Afterwards there will be a link displayed next to the selection menu for the field type to add Options or choose a Project to link to. This is due to Javascript Problems. I assume they are caused by the fact that HTML is dynamically added to the page and so it cannot find the new element for some reason..

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

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

ProjectManager 2.0

February 22nd, 2009

The main new feature is a manual drag & drop sorting of datasets. To use this features all datasets need to be displayed on the same page. To accomplish this the option datasets per page can be left empty for the time of ordering. Further I have included a bunch of new shortcode attributes for project display and some bugfixes.

Kolja Schleich Plugins , ,