wp-SwimTeam 0.1.442 available

This evening I posted a v0.1.442 of wp-SwimTeam on the download page.  There isn’t a lot of new functionality which is visible yet but this released fixes a couple things I ran into getting ready for the MacDolphins 2010 season.

Updating a season now allows a prior year to be selected – the year range now shows 3 years prior and 7 years after the current year.  Most of the success and error messages now use the WordPress styling where they appear near the top of the page in a colored box.  There are probably a few I missed but most of them should work correctly.

This release also exposes the start of the results import although it doesn’t currently do anything other than load the file and do some basic parsing on it to make sure it is a valid SDIF results file.  The data is not currently stored in the database.

wp-SwimTeam v0.1.376 – bug fixes for Add/Register Swimmer

In the build I posted yesterday there were a couple of bugs which prevented the auto-registration feature to work when a swimmer is added.  There was also a bug in the age verification which allowed swimmers outside of the age range to added to the system and then registered for the active season.

If you download v0.1.375 yesterday, you will want to download v0.1.376 and update the plugin.

Roles and Capabilities for wp-SwimTeam

WordPress has a built in set of Roles and Capabilities.  The wp-SwimTeam plugin makes use of these standard roles and capabilities to allow certain actions to be performed.  At least it is supposed to.  It turns out that when I redesigned the menus to take advantage of the 2.7 Dashboard, I restricted access to all of the menus except the end user capability to users with Administrator privileges.

This is a mistake and this morning I committed a change which will rectify the problem.  The way it is supposed to work is as follows:

  • Subscriber – access to the “Swim Team” end user menu and capability.
  • Author – Subscriber capability plus access to the Report Generators.
  • Editor – Author capability plus access to the Manage menu and capability.
  • Administrator – Author capability plus access to the Options menu.

In theory the Options menu contains items which should be set once and by in large, left alone.  The Management menu contains the items which require regular interaction from one or more users who coordinate the Swim Team.

CSV Report Bugs

There is a bug in the Report Generator and the Roster CSV export which prevents the CSV file from being sent to the browser for download.  I ran into this with the MacDolphins this morning as I was working on our 2009 Registration.  I have fixed the problem and committed the changes, I will post an update later this afternoon of this evening.