Flickr Integration
I've been playing more and more with Flickr for keeping my photos online, and my love for it keeps growing. They were recently acquired by Yahoo and have subsequently upped their limits and lowered their Pro account fees.
I also recently discovered Oberkampf which uses php to pull photos out of Flickr and integrate them into web pages. I've been playing with the functionality, and it is very cool. I've created a new Pictures page that pulls directly from the albums I've created on Flickr. I'm still tweaking it, but it's functional.
Oberkampf requires php so your server needs to support it and the page extension needs to be .php. You'll also need a basic familiarity with php to do much with it. I've set mine up to pull the header and footer I use on the rest of the blog as a server side include, but the design possibilities seem endless.
To set it up, you need a file named oberkampf.php which is created with an online tool. Upload that php file to your server in the same folder as your desired gallery page. Add the following code to the top of your page:
<? require_once("oberkampf.php"); ?>
You'll also want to pull the javascript file that drives the menu which is explained here. I'm using the code below, but there are additional possibilities availabe for download on the Oberkampf site:
Choose an album: <?php displayAlbums(); ?><br />
<?php displayButtons(); ?><br />
<?php displayPhoto(); ?>
It doesn't play well with dynamic pages in Movable Type for some reason so I have my gallery page setup as static. This won't be a problem if you are just creating a regular old page, but you might run into issues incorporating it into a content management system.
For more info on installation and setup, there's more here.
Edited to add: My only complaint so far is that it doesn't validate without some tweaking.

1 Comments
Leave a comment