Yes, it can be done! Rewriting an app in the WordPress framework has now been completed thanks to some back end database manipulation and custom PHP coding. I had mentioned this approach in part1, and it has truly happened. The one missing function that was great as a user experience improvement is the option to choose the date from a calendar. Although that is missing, it may be implemented at a later date.
First, a little background. The Appalachian Trail spans from Georgia to Maine and covers 2,179 miles as of the creation of this exercise program. You can, of course, start in Maine and the mileage can vary depending on the changes that nature throws at us. There are through-hikers who can complete this entire trail in about six months. There are many more who cannot commit to that period of time, or the physical toils, who will hike an entire state or local trails. I thank those who have done the hiking and provided the awesome pictures that you will encounter along your exercise journey. The two main sources for the data and pictures are SummitPost for the mileage and Picasa/Flickr/Panoramio (and others) with picture storage.
The entry page at the WalktheAT site looks just as good as the original.
If not logged in, you will only see the Home and About pages. This mirrors the functionality achieved in the ASP.Net app that requires a login to determine the individual user’s mileage. How was this functionality achieved? With a plugin, of course. The plugin is named “Nav Menu Roles” by Kathy Darling. In addition to specific roles, it includes a logged in option.
Now that we are logged in, we can go to the View Location Info page.This is the location that selecting the date from a calendar would be a nice feature. In the code, it is looking for your last entry and adding one day. If you exercise every day, or try to, this is a time saving feature. On this screen, you will notice details about your current location along the Appalachian Trail along with a View Picture link. This View Picture link will only be displayed if there is a picture tied to this location.
Another feature duplicated in this program is the ability to edit the entries that have been made. Suppose that you entered 32 miles when you meant to enter 3.2. Correcting that is not a problem. It will be a bit disappointing to lose those 28.8 miles in your total mileage count! Of course, the program recalculates the total when you make a change in an entry.
Clicking the button on the left side of the entry will allow you to change the mileage in the screen shown below.You have seen the functionality that was duplicated from the C# ASP.Net app. It had rather basic functionality, but it worked well for my trip of almost 2,100 miles so far. One basic functionality was missing, and it had never been needed until now – the ability to finish and walk back. That has been accommodated with a flag to determine walking direction and an additional database field to track total mileage in addition to current location.
Those features have been implemented already. Additional features planned include a time walked field to calculate miles per hour and statistics for a specified date range. You may have read my other blogs and bethinking “where’s the code to do all of this?” Well, it is true that I have included source code in other blogs. The saying of “why buy the cow when you can get the milk for free” applies here. My Ebook is titled “WordPress 4 Business Website Redesign: With Custom Coding of Imported Database” and is available for purchase.