Using the WordPress auto-updater?

WordPress has a nice built in feature to update plugins when there is a new version available.  Because wp-SwimTeam isn’t hosted in the official WordPress plugin repository, I haven’t been able to take advantage of this feature.

I have set up projects in the official WordPress plugin repository for both wp-SwimTeam and phpHtmlLib.   I am working on a process where the plugin updater will work by adding the code into the WordPress repository when Iam ready to release it.

Currently the version of the code in the WordPress repository is the same as what is available for download although the version number reported is wrong (1.0.553 vs 1.2.553).  The “553” is the critical part of the release number because it represents the Subversion commit number (build number) that the release is based on.

If you see a “plugin out of date” message within the WordPress Dashboard, it is because I am working on this process.  The latest and greatest release will likely be available first as a download on this site but when I reach what I consider a “stable” release, I will also make it available through the WordPress plugin repository.  Stay tuned as this flushes out.

wp-SwimTeam v1.2.553 available

A minor bug was found in swimmer and user profiles when the optional field count was zero.  This bug only appeared if previously the option count had been non-zero and data had been entered for swimmers and/or users for the optional fields.  This release fixes this problem which also manifested itself in the registration confirmation e-mail.

[download#7#image]

wp-SwimTeam v1.2.552 now available

This morning I posted wp-SwimTeam v1.2.551.  This release fixes a couple of bugs and adds a couple minor features and addresses one major issue.

  1. Prior to this release a new user could add a swimmer without completing their swim team parent/guardian profile but a warning was displayed.  The warning is now an error and no further action can proceed until the profile information is completed.
  2. Throughout the wp-SwimTeam dashboard much of the information is displayed in a widget that can be searched, sorted, and paged through.  The number of rows that is displayed is now controlled by a setting on the Options->Miscellaneous tab.
  3. A couple of minor bugs have fixed with respect to reporting.
  4. There was a serious bug which occurred when the number of User or Swimmer optional fields was set to zero.  This has been fixed and the ability to essentially “turn off” optional fields for users or swimmers now works correctly.
[download#7#image]

wp-SwimTeam v1.1.546 available

I have posted an update to the wp-SwimTeam plugin.  This version addresses a few bugs, one of which was fairly critical as related to optional fields for users and swimmers.  This version also adds infrastructure to provide Contextual Help for all of the forms although only the Jobs forms have detailed help so far.  Help will be updated for other forms as time permits in upcoming releases.

This version also adds a new choice when defining a Job’s location.  Previously the location was limited to Home, Away, or Both.  A new choice, N/A, has been added to account for some jobs not being tied to a swim meet.  An example of this would be a job such as ‘End of Season Banquet Coordinator’.

[download#7#image]

wp-SwimTeam v1.1.533 now available

I have just posted v1.1.533 of the wp-SwimTeam plugin.  This version includes the first pass of Contextual Help for all plugin screens and forms.  I have added and/or clarified some of the information to (hopefully) make it more clear what particular areas of the plugin are for and the actions which can be performed.

This version also fixes a number of minor bugs that I encountered, most were due to typos in the SDIF constants that were exposed when I turned the WP_DEBUG flag on.

I added one significant new feature:  It is now possible to configure the Opt-In/Opt-Out system to support opting in or out of Full, Partial, or Both types of swim meets.  Control over this setting, which defaults to BOTH, is on the Options page under the Swim Team tab.

[download#7#image]

Adding WordPress Contextual Help

WordPress 3.0 introduced a concept called Contextual Help.  Contextual Help provides a mechanism for plugins to hook into the standard WordPress Help system.  This is pretty cool because it provides a way to provide Help that is consistent with the WordPress Dashboard.

I’ve had something I’ve called Guidance on almost every page and tab through the plugin and while helpful, it tends to clutter up the interface.  I had a question from our swimteam’s volunteer coordinator about adding more help to the page and I was worried about adding even more clutter.  I tried a couple experiments with a jQuery Dialog solution but I wasn’t happy with the results.  It was then that I wondered if I could make use of the existing Help button in the Dashboard as it is always there on the Dashboard.

After a bit of reading and some experiments I was able to have custom content displayed within the Swim Team Dashboard pages.  However, trying to have different content for each tab was a little more of a challenge.  I ended up solving this problem using a simple jQuery script to swap the default content with some tab specific HTML.  Awesome!  Elegant Help solution achieved!

I am now in the process of retrofitting this new model for every page and every tab which will take a little while.  I expect I will have a build available in a few days but in the mean time, here are a couple screen shots to get an idea of what this new Help model will look like.

image

image

wp-SwimTeam v1.0.516 available, fixes Jobs bugs

I have just uploaded a new build of wp-SwimTeam which addresses the bugs in the Jobs module I posted about last night.  The bug would partially allocate a job but it would fail resulting in incomplete data in the database.  The build fixes that bug.

If you had allocated jobs and can’t see them to sign up for them, the database records in the job allocation table may have to be removed manually.  If you need help, contact me.

wp-SwimTeam plugin – updated 2/24/2011 @ 17:21
[download#7#image]