New Photography Page

For a couple years I’ve had a photography site at photography.brentdanley.com that few people visited. I built it as a project to learn the Flickr API and the JavaScript framework Prototype. I’ve been wanting to incorporate it into my main site for a while, and now it’s done.

Click on the Photography link to check it out.

The new Photography page at BrentDanley.com
The new Photography page at BrentDanley.com

The new page, like the old site, uses the phpFlickr library to access the Flickr API. The Flickr API is well designed and the phpFlickr library makes using it a breeze.

The client-side animations are done using CSS and jQuery. The old site used Prototype and script.aculo.us, and I was glad to be able to do the conversion. jQuery is a dream.

This site is powered by WordPress, so all that was required was to upload the phpFlickr files and create a simple template. Caching is done by phpFlickr using a MySQL database.

The photos are pulled in using Flickr’s machine tags, so I can manage them in Flickr without having to access WordPress administration.

Lightbox 2, the plugin that darkens the screen and pulls the larger image forward, was already installed and ready to use.

The page is developed so that if a page parameter is passed in the URL with a page value that corresponds to an actual gallery, that gallery will open when the page loads. For example, brentdanley.com/photography/?page=maine will take you directly to the Maine gallery. The default gallery is Lighthouses.

The old photography.brentdanley.com
The old photography.brentdanley.com

I’d love to know what you think of the new photography page. Leave me a message in the comments.

2 Comment

  1. Looks great! I just moved to Maine from Vermont and I’ve enjoyed looking at your photos. They inspire me to get out and explore this state!

    I like what you’ve done here on the photo gallery. I am using a FlickrRSS plugin that I modified to display photos on my site, Mark Gould Media. Should I build out my galleries, your work here will certainly be an inspiration.

    1. Nice site. The reason I’m not using the Flickr feeds is because they’re limited regarding the number of photos returned.

      Maine is a wonderful place. I love it more than I can express.

Leave a Reply