diff --git a/SimpleFlickr.cfc b/SimpleFlickr.cfc
index 5b7223f..342807f 100644
--- a/SimpleFlickr.cfc
+++ b/SimpleFlickr.cfc
@@ -11,10 +11,8 @@
-
- application.version = "1.1,1.1.1";//sets the Wheels versions the plugin is compatible with.
- return this;
-
+
+
@@ -125,17 +123,21 @@
var photos = [];
var photo = {};
if(structKeyExists(photoset_struct,"photoset")){
+ photoset_owner = photoset_struct.photoset.owner;
photoset_photos = photoset_struct.photoset.photo;
+ photoset_id = photoset_struct.photoset.id;
}
else if(structKeyExists(photoset_struct,"photos")){
- photoset_photos = photoset_struct.photos.photo
+ photoset_photos = photoset_struct.photos.photo;
}
// loop over photos and build the return array
for(i=1; i lte arrayLen(photoset_photos); i = i + 1){
photo = {};
photo.title = photoset_photos[i].title;
// URL FORMAT: http://farm{farm-id}.static.flickr.com/{server-id}/{id}_{secret}.jpg
- photo.url = "http://farm" & photoset_photos[i].farm & ".static.flickr.com/" & photoset_photos[i].server & "/" & photoset_photos[i].id & "_" & photoset_photos[i].secret & ".jpg";
+ photo.url = "http://farm" & photoset_photos[i].farm & ".static.flickr.com/" & photoset_photos[i].server & "/" & photoset_photos[i].id & "_" & photoset_photos[i].secret & "_m.jpg";
+ // Link URL FORMAT = http://www.flickr.com/photos/{user-id}/{photo-id}
+ photo.link = "http://www.flickr.com/photos/" & photoset_owner & "/" & photoset_photos[i].id;
arrayAppend(photos,photo);
}
return photos;
@@ -143,7 +145,7 @@
-
+
// create an array of the photos from the XML and then populate the correct attributes.
var photoset_photos = xmlParse(arguments.photo_set);
@@ -160,7 +162,7 @@
}
return photos;
-
+
@@ -187,7 +189,7 @@
// create an array of the photosets from the XML and then populate the correct attributes.
var photoset_struct = xmlParse(arguments.photo_sets);
- var photosets_struct = photoset_struct.XmlChildren[1].XmlChildren[1].XmlChildren;
+ var photosets_struct = photoset_struct.XmlChildren[1].XmlChildren[1].XmlChildren;
var photosets = [];
var photoset = {};
var photoset_atts = {};