Archive

Posts Tagged ‘jQuery’

Adding WordPress Contextual Help

February 28th, 2011 No comments

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

Meet events working

October 24th, 2008 No comments

Events for each swim meet is now working.  Even re-ordering also works.  I still need to implement Importing Standard Events but I am pretty sure this will be pretty straight forward.  Hope to have it completed this weekend.  Once done, I will start working on importing meet results.

Categories: Development, Progress Tags: , ,

How to handle meet events?

October 17th, 2008 No comments

Now that I have the standard events working with drag and drop reordering, I need to propagate events to each meet.  My thinking has been that a meet will start by importing the standard events and then add, delete, edit, and reorder as necessary to support a specific swim meet.

While I have had this model in my head, my first look at actually implementing it raised a bunch of questions – where I do put it?  How does it work?  The event management isn’t as simple as other meet management tasks so it sort of breaks in the way that I implemented the meet data.  I have an idea how to solve it but it will take some experimenting to see if it will work.

Categories: Development, Progress Tags: ,

Event Ordering is working!!!

October 13th, 2008 No comments

It has taken me a little longer (ok, a lot longer) than I had expected but I have drag and drop event ordering working for the default events.  Now that it is working, I need to clean it up and style it.  The jQuery Table DnD plugin I found works great – it does exactly what I need it to do.