Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added ability to pull photos using flickr tags

  • Loading branch information...
commit 3f5e39e936690ff7c22fd7f9cc56e68a5d3ffde8 1 parent c71879b
Mendhak authored
Showing with 7 additions and 2 deletions.
  1. +2 −1  flickr/flickr.html
  2. +5 −1 flickr/js/supersized.flickr.1.1.2.js
View
3  flickr/flickr.html
@@ -56,10 +56,11 @@
slide_captions : 1, //Slide caption (Pull from "title" in slides array)
//Flickr
- source : 3, //1-Set, 2-User, 3-Group
+ source : 3, //1-Set, 2-User, 3-Group, 4-Tags
set : '######', //Flickr set ID (found in URL)
user : '######', //Flickr user ID (http://idgettr.com/)
group : '######', //Flickr group ID (http://idgettr.com/)
+ tags : '###,###', //Comma separated tags
total_slides : 100, //How many pictures to pull (Between 1-500)
image_size : 'z', //Flickr Image Size - t,s,m,z,b (Details: http://www.flickr.com/services/api/misc.urls.html)
View
6 flickr/js/supersized.flickr.1.1.2.js
@@ -50,10 +50,11 @@
slide_captions : 1, //Slide caption (Pull from "title" in slides array)
//Flickr
- source : 2, //1-Set, 2-User, 3-Group
+ source : 2, //1-Set, 2-User, 3-Group, 4-Tags
set : '###', //Flickr set ID (found in URL)
user : '###', //Flickr user ID (http://idgettr.com/)
group : '###', //Flickr group ID (http://idgettr.com/)
+ tags : '###,###', //Comma separated tags
total_slides : 100, //How many pictures to pull (Between 1-500)
image_size : 'z', //Flickr image Size - t,s,m,z,b (Details: http://www.flickr.com/services/api/misc.urls.html)
slides : [{}], //Initiate slides array
@@ -112,6 +113,9 @@
case 3: //From a Group
var flickrURL = 'http://api.flickr.com/services/rest/?format=json&method=flickr.photos.search&api_key=' + options.api_key + '&group_id=' + options.group + '&per_page=' + options.total_slides + '&jsoncallback=?';
break;
+ case 4: //From tags
+ var flickrURL = 'http://api.flickr.com/services/rest/?format=json&method=flickr.photos.search&api_key=' + options.api_key + '&tags=' + options.tags + '&per_page=' + options.total_slides + '&jsoncallback=?';
+ break;
}
var flickrLoaded = false;
Please sign in to comment.
Something went wrong with that request. Please try again.