Version 2.1.0 Released!

Posted on Thursday 22 February 2007

This new version of phpFlickr has a few bug fixes, as well as an up-to-date method list. You'll also find that buildPhotoURL supports the new syntax for photo URLs, including the new originalsecret property and the new farm property. If you find any bugs, feel free to leave a comment here and I'll try to fix them as quickly as possible. If Flickr puts out a new API method, don't forget that you can use the call() method to call the method.

Head over to the phpFlickr download page on SourceForge to get the latest file release.


17 Comments for 'Version 2.1.0 Released!'

  1.  
    February 26, 2007 | 2:54 pm
     
    Great work. It is really easy to use. What about releasing the software as a PEAR channel, so it would be easier to update and rely on your library?
  2.  
    February 27, 2007 | 9:39 am
     
    Hi! At the moment I can't get any pictures. The examples on this page show the same error. Retrieving a Person doesn't work. Bodo
  3.  
    Dan
    February 27, 2007 | 12:19 pm
     
    I saw this problem too. It seems to have gone away, however. I'm guessing that my server was just having a temporary problem connecting to the Flickr API.
  4.  
    Beth
    March 8, 2007 | 8:19 am
     
    Work great, the URL is correct (farm1) - however, using the CalendarFlickr script - buildPhotoURL() is still pulling an incorrect farm name (farm). So strange...
  5.  
    March 10, 2007 | 9:46 pm
     
    Hi Dan, First up thanks for the code! I'm not getting the originalsecret part of the URL when I call buildPhotoURL. So it ends up with URLS liks http://farm1.static.flickr.com/19/101994314__o. Any ideas? All the best, Chris.
  6.  
    Dan
    March 10, 2007 | 10:10 pm
     
    Chris, Depending on which method you call, it may not return the original secret or original format. You can use the extras parameter and add "original_secret" and "original_format" to get those. I think those extras tags are not documented at the moment.
  7.  
    March 11, 2007 | 12:13 am
     
    Hi Dan - thanks that works perfectly now (used the extras parameter with flickr.photos.search. Chris.
  8.  
    March 16, 2007 | 1:09 am
     
    FlickrMobile: A Flash Lite 2 Applicatio... *** Update 4.25.2006: Provided a Flash Player 6 version for PSP. *** Update: Yes, I used FAME (Flashout + ASDT + MTASC + Eclipse) to build this. Preface As has been reported by Scott F. and Scott J., the Flash......
  9.  
    April 12, 2007 | 7:51 pm
     
    [...] phpFlickr ยป Version 2.1.0 Released New version of phpFlickr has a few bug fixes, as well as an up-to-date method list. Youll also find that buildPhotoURL supports the new syntax for photo URLs, including the new originalsecret property and the new farm property [...]
  10.  
    May 1, 2007 | 5:19 pm
     
    I love your library and decided to use it with a plugin I have been working on for wordpress. I have come across an issue dealing with multiple instances of phpflickr (and the accompanying libraries) being loaded due to multiple wordpress plugins using phpflickr. I have found a solution which involves a some small tweaks to your code. I'm not sure if it is the most elegant php solution but basically any place where you do a require_once call I have added a check to see if the given class that is to be loaded already exists. Here is an example: original code: require_once 'PEAR.php'; new code: if(!class_exists("PEAR")) require_once 'PEAR.php'; I thought perhaps you could add this to the next version of your library. Thanks again for all your hard work.
  11.  
    Dan
    May 1, 2007 | 10:39 pm
     
    Josh,
    That's a good point about the require_once calls. The problem, I realized, is that if you're including the same files from multiple locations, the "require_once" checks don't recognize them as the same file. Plugin developers should also use the class_exists function when they're including phpFlickr.php or it could try to load that class twice.
  12.  
    Beth
    May 9, 2007 | 8:25 am
     
    Is there a way to pull all a users photos into an array? people_getPublicPhotos() only grabs the latest 500 from the stream.
  13.  
    angela
    May 9, 2007 | 1:53 pm
     
    unclear if this will work with php5? I'm hoping so!
  14.  
    Dan
    May 9, 2007 | 8:46 pm
     
    @Beth, If you use photos_search(), you can use the pagination arguments to get more than the initial 500 photos. @angela, phpFlickr will absolutely work on php5. This site is running php5 and it works just fine.
  15.  
    Beth
    May 10, 2007 | 2:33 pm
     
    Actually people_getPublicPhotos() supports pagination too, however I just can't get everything into a single array. Basically I found the total number of photos through people_getInfo(), divided it by 500 to get the number of pages. For each page, I grabbed the photos and stuck them into their own array. My problem lies in the fact I have no idea how to combine/concatenate them. If I do the usual dot selector and try to output it, I just get the last 500. It's like its overwriting the previous arrays. Does that make sense?
  16.  
    Dan
    May 10, 2007 | 6:45 pm
     
    Beth, Use php's array_merge() function on the arrays of photos.
  17.  
    Beth
    May 11, 2007 | 10:00 am
     
    Ahhhh, I knew I was missing something - thanks! Worked perfectly!

Leave a comment

(required)

(required)


Information for comment users
Line and paragraph breaks are implemented automatically. Your e-mail address is never displayed. Please consider what you're posting.

Use the buttons below to customise your comment.


RSS feed for comments on this post | TrackBack URI