Tai Chi Caledonia 2007 Ronnie's Photos
From Tai Chi Caledonia - a photoset on Flickr
Click on the thumbnails to see a bigger version, you can step through the gallery by clicking on the left and right side of the bigger pictures or using you n(ext) or p(revious) keys.
/* Last updated with phpFlickr 1.3.2
*
* This example file shows you how to call the 100 most recent public
* photos. It parses through them and prints out a link to each of them
* along with the owner's name.
*
* Most of the processing time in this file comes from the 100 calls to
* flickr.people.getInfo. Enabling caching will help a whole lot with
* this as there are many people who post multiple photos at once.
*
* Obviously, you'll want to replace the "" with one provided
* by Flickr: http://www.flickr.com/services/api/key.gne
*/
$page=$_GET['p'];
if (!$page){
$page=1;
}
require_once("phpFlickr.php");
$f = new phpFlickr("7177ae43badab8b5428ef2e2c7a66aac");
// Search by the single tag "red"
//echo $page;
$photos_red = $f->photosets_getPhotos("72157603316846907","NULL","NULL","20",$page);
if( ($photos_red['total']/20) > round ($photos_red['total']/20)){
$max=round ($photos_red['total']/20) +1;
}else {
$max=round ($photos_red['total']/20);
}
foreach ((array)$photos_red['photo'] as $photo) {
// Build image and link tags for each photo
// echo "";
$flickrlink="http://www.flickr.com/photos/" . $photo['owner'] . "/" . $photo['id'] . "/";
$thistitle=" title=\"view on <a href="" . $flickrlink . "" ><span style="color:#0063DC">flick</span><span style="color:#FF0084">r</span></a>\" ";
echo "";
echo "buildPhotoURL($photo, "Square") . " class=\"tn\">";
echo "";
}
echo "\n";
echo "
"; for ($i=1; $i <= $max; $i++) { if ($i==$page) { echo $i; }else{echo "$i " ;} } ?>
Image Display uses Lightbox JS v2.0 under a Creative Commons Attribution 2.5 License
phpFlickr Class 2.1.0 Written by Dan Coulter Sourceforge Project Page Released under GNU General Public License