Archive

Archive for September, 2008

Running WordPress on SourceForge

September 28th, 2008 4 comments

Running WordPress under SourceForge project web hosting service can be frustrating.  It just doesn’t work as seamlessly as it WordPress normally does.  When I first installed WordPress, the Akismet anti-spam plugin wouldn’t work (still doesn’t) because SourceForge doesn’t allow remote connections.  Yesterday I wanted to include an image in a post only to find that I couldn’t upload an image due to a permissions problem.

It took a while to figure it out and with the reorganiztion of SourceForge, a lot of their documentation is either wrong or missing.  SourceForge allows a “persistent” directory for uploads but it isn’t in the htdocs tree – it is in a different area of the file system.  To get uploads working I had to create a uploads directory in the persistent file system space for my project and then create a symbolic link from wp-contents/uploads to the uploads directory in the persistent directory.  Certainly not real striaight forward but at least it is now working.  It shouldn’t be this hard.  I did all of this with sftp, I couldn’t figure out a way to get a shell open via SSH.

While I was at it I also  updated WordPress to the latest (2.6.2) version.

Phase 1 of Drag and Drop Event Ordering

September 27th, 2008 No comments

Today I got the first part of Ajax based Drag and Drop Event Ordering working.  A few weeks ago when I was skimming the Internet looking for some Ajax tips I found this interesting jQuery demo called Portlets.  You really need to see the example to get the idea of how it works.  When I found it I knew it was exactly what I was looking for to do event order (and hopefully heat sheets at some point).

I finally got some cycles to work on it yesterday and earlier today I got the first phase of it working.  I can display the events to the user and they can drag and drop them to order them however they see fit.  This part of it works as I hoped it would.  Now that it is working, I need to get Ajax handshaking worked out so the database gets updated with the new sort order.  Hopefully that won’t be to difficult but working with this type of Ajax problem is new ground for me.

Drag and Drop Event Ordering

Drag and Drop Event Ordering

Categories: Development, Progress Tags: ,

Better Solution for Event Ordering

September 22nd, 2008 No comments

I haven’t made much progress over the last few weeks as I have been working on a project at work which was taking a lot of my free cycles.  Fortunately the project at work also uses phpHtmlLib so some of the work I did for the work project will roll out to this project as well.

Even though I haven’t put a lot of active cycles into wp-SwimTeam, I have been looking for some ideas on how to deal with event ordering better.  Event ordering was one of the last things I checked in and I went back and used it and it is clunky.

I have concluded that Event Ordering and ultimately heat sheet management needs to be AJAX based so drag and drop can be implemented.  I want to implement something similar to this jQuery Portlet demo.  Since I have never done anything with AJAX (other than a Google Maps implementation), this is new ground for me.

Categories: Development, Progress, XML Tags: ,

Code Cleanup in progress

September 2nd, 2008 No comments

It is interesting to go back and revisit code which I wrote early in this project.  When  I go back and look at it, I ask myself why I implemented things the way I did.   The change to the  tabbed menu bar has required me to go back and visit almost every page which is presented as a menu to a user of the system.

Some of the early functionality like Age Groups and Seasons had a clunky implementation of the decision tree logic and resulted in processing the same variables to make decisions repeatedly.  I have migrated the code I developed latter on for things like the Roster and Events pages and implemented “Guidance” for all pages as well.

Now that I have all of the code cleaned up, at least I think I have it all done, I need to return to the Events functionality.  I need the ability to add events to a meet and then re-order them.  The standard events can be used to seed the events for a meet and reordering works although it is clunky.  This should probably be done with AJAX so events can be dragged and dropped into the desired order.