More Progress

Well, it's that time of year again, time to renew the web hosting. And for those of you that don't know, that has become a lot more expensive than it used to be. Fifty dollars a year is now several hundred. Not to mention the price of domain names has gone up ten-fold.

And I just found out that the nice folks at PayPal disabled all my Support buttons, and I never got a notice (although that may be my fault.) In any case, it is all working again now, so if you would like to make a small donation to help defray these costs, it would be greatly appreciated.

I finished the Dives Sites section of the website, the biggest and most complex part. I also finished the central 'hub' of the site and made some inroads in the Artificial Reefs and Biology sections. I'm also fixing things as I go, like broken weather forecasts.

And none too soon - the old site has become rather balky since I stopped paying attention to it several years ago. For one thing, it will not run on the latest version of PHP. Rather than figure that out, I'll put my efforts into this. It just took five minutes to load a page.

I also added Google Earth integration, which will let you zoom in on land-based sites. Not much point in setting it up at sea though, my 20-year-old wreck charts are still better than anything.

This site is now running on WordPress, with everything stored in a database. That gives a lot of flexibility. I don't really care for WordPress sites, they're usually ugly slabs with no structure. But I've buried WordPress so deep in here that you can't even tell it is there.


I did some php programming in my custom WordPress theme, and gave it a new ability. Now on each page I can embed related pages, which previously only appeared as links in the sidebar ( and still do. ) While it is possible to embed anywhere, the sensible place is at the end, after all the content. Embedding a page in the middle of another page would probably be confusing. Actually, when a page is embedded, only the beginning of it is displayed, with a link to the whole thing. Then I got an even better idea, and added the page's 'parent' to the list. I also made some formatting changes so that each embedded page is clearly a separate entity.

What is really cool about this for this website is that now every dive site's page now includes the relevant charts. This is something I always had in the back of my mind, but I never thought of an easy way to do it across hundreds of pages, until now. Once the code was finished, it took just a single change in the WordPress setup to make it happen.

Printed from njscuba.net