Flickr Gallery 1.2

Flickr Gallery 1.2 is now available from the WordPress download page (or through your blog’s plugin installer).  Pagination is now supported for all galleries to let your users browse through your photos without having to leave your blog.

New features in version 1.2:

  • All images you insert in your posts that are smaller than “medium” sized will open in the lightbox (if you have it enabled).  From there, the user can decide to continue to Flickr’s site if they so choose.  This includes the “square”, “thumbnail” and “small” sizes.
  • All photo galleries should now have pagination enabled.  If you have caching enabled, the pagination will load as much photo data as possible from the Flickr API and step through those results to save the end user’s time.  If you don’t have caching, it will load the photos you need as soon as the user requests them.

Flickr Gallery

88 Comments

  • Basti says:

    Hi Dan,

    a few minutes ago, I updated to 1.2.2 and found a bug ^^

    In the “Photostream”-Tab is now a “next Page” button, but when I change to page two and click on a photo, Lightbox doesn’t work.

    It runs only on the first page right.

    Best regards, Basti

  • Native Paul says:

    Hi Dan. Excellent work, yet again. Pagination now makes this plugin truly awesome!

    I’m having an issue with the previous link in photoset mode. Clicking on it doesn’t reload the images on this page:
    http://www.nativenoise.co.za/photography/best-live-music-shots/

  • George says:

    Hello, thanks for the plugin! Is there a way to call the functions of your plugin outside of the blog directory? like if I want my gallery to be in /photos for example.
    Thank you :)

    • George says:

      Never mind, I will just use the wordpress pages, but still if you could tell me how would I use the functions outside the blog dir it would be fantastic! Also when I click “next page” it doesnt load the photos for some reason.. although it seems for everyone to work.. :/ Thanks again for this great plugin!

    • Dan Coulter says:

      The functions are too tied into WordPress for you to go use them elsewhere. If you can get it to work, that’s great, but I can’t support their use elsewhere.

    • Dan Coulter says:

      If you can give me an example of a place where the pagination is not working, I can see if I can figure out why.

  • george says:

    Ok thanks, here’s the link http://temp.jrock.gr/blog
    I called the gallery in a blog post cos Im still working on the theme so I haven’t created the pages that are needed in order to create wordpress pages..

  • 530 says:

    Great stuff Dan. When can we expect to see pagination working with photostreams??

  • mark says:

    It works great in firefox, but the images are not showing in internet explorer.

  • mark says:

    yes…yours works. could it be a difference with the sizing. The site is crossfitprime.com. I have a photo gallery page, and it works beautiful in Firefox, but not showing on IE. Let me know if you think you have an idea with what it could be. Thanks.

    • Dan Coulter says:

      It looks like it is a CSS error unique to your theme. It is working fine in IE6 on other sites I’ve tested. IE7 and IE8 do work on your site, though.

  • mark says:

    when i said sizing ….i meant the size of the center column for our theme.

  • mark says:

    Thanks…..do you have any ideas or things i could do to correct it?

  • Dan Coulter says:

    For anyone who is interested, I’ve just tagged version 1.2.4 which fixes the pagination bug in blogs installed in subfolders. It also makes the plugin compatible with WordPress 2.8 (which is going to be released in the near future).

  • Andrew Gail says:

    Hi Dan,

    Excellent plug-in but I’ve installed the latest version of it on one of our intranet blogs and am getting the following error:
    Fatal error: Cannot use object of type WP_Error as array in E:\wamp\www\wordpress\wp-content\plugins\flickr-gallery\flickr-gallery.php on line 116

    I suspect it may be due to internal servers using a proxy for internet access but thought I’d alert you anyway.

  • Andrew Gail says:

    It occurs to me that should have gave you more info than that!

    It happened after I saved my API key and secret, and the error now appears immediately after the API secret box every time I enter the plugin settings page.

  • Jack Elliot says:

    Hi,
    Wondering if there is a PHP that allows me to drop Flickr Gallery into my theme templates?

  • Andrew Gail says:

    Yes, used ID (which is a free account), API Key and API secret were all filled in. I think it has something to do with the server not having direct access to the internet for the generation on save.

    It is working now but I’m not sure why, I was trying all sorts of workarounds for the NTLM proxy problem…

  • Jake says:

    Hey mate, thanks for the great program, it saves me a lot of time and it looks great! However I just updated to 1.2.5 of the plugin and haven’t changed any code. It now comes up with the following text after my photos:

    object(phpFlickr_pager)#95 (11) { ["phpFlickr"]=> object(phpFlickr)#257 (26) { ["api_key"]=> string(32) “76c1e52ed8669d330962c262a8ae7ef7″ ["secret"]=> NULL ["rest_endpoint"]=> string(36) “http://api.flickr.com/services/rest/” ["upload_endpoint"]=> string(38) “http://api.flickr.com/services/upload/” ["replace_endpoint"]=> string(39) “http://api.flickr.com/services/replace/” ["req"]=> NULL ["response"]=> string(6099) “a:2:{s:8:”photoset”;a:10:{s:2:”id”;s:17:”72157616664477900″;s:7:”primary”;s:10:”3433911197″;s:5:”owner”;s:12:”36781891@N03″;s:9:”ownername”;s:12:”jakeplantzos”;s:5:”photo”;a:27:{i:0;a:8:{s:2:”id”;s:10:”3433911197″;s:6:”secret”;s:10:”3de7b82699″;s:6:”server”;s:4:”3543″;s:4:”farm”;d:4;s:5:”title”;s:8:”IMG_0416″;s:9:”isprimary”;s:1:”1″;s:5:”media”;s:5:”photo”;s:12:”media_status”;s:5:”ready”;}i:1;a:8:

    It continues on but I would imagine you would prefer me not to flood your comment page hehe. If you would like to see exactly what I mean, here is a link to a particular post on my blog that shows the error:

    http://www.artikles.net/?p=361

    Any help is appreciated :) Thankyou.

  • Jake says:

    Thanks for that mate, I will update it next time I’m on. Once again great plugin :)

  • Marco says:

    Same issue here on 1.2.5 and auto update doesn’t fetch 1.2.5.1, I’ll update manually.

  • Marco says:

    hm, still broken? Reverted to 1.2.4
    Still a great plugin!

    • Dan Coulter says:

      The fix is there in 1.2.5.1, but something is screwed up with the way WordPress is distributing the update. I’ll release 1.2.6 in a few minutes to fix it.

  • John says:

    Hey Dan – thanks for the amazing plugin and work. I’m also having troubles getting things to display in IE6 the way you have successfully here: http://dancoulter.com/photos/ Any particular CSS workarounds necessary to do this for ie6? Thanks

  • Yeah, I think I’ve seen this update “glitch” on other plugins before. Thanks for the fix.

  • Jack Elliot says:

    For some reason I can’t get your do_shortcode suggestion to work. Looking at the page source, nothing gets outputted, but using the original short code in a post seems to work fine. Any other suggestions? Thanks again btw!

  • Jack Elliot says:

    Hi again,

    I have a particular problem with no solution that I can think of:

    I am using FG to show a 2×2 set gallery in my sidebar. The problem with this is that all the div.flickr-thumb’s have the same margin, which means extras space on the right side of the two right photos.

    Usually, I would fix this by using JQuery to set the div.flickr-thumb:odd to a CSS value of margin-right: 0, which works great when the page first loads.

    However, the problem is pagination. After I click Next, the DOM doesn’t reload and the margins hacks don’t work.

    I’m not a great web dev or JQuery guy. Is there a way to fix this?

  • Native Paul says:

    Hi Dan

    I’ve updated to 1.2.6 and now the pagination isn’t working in photosets again. It was working perfectly in earlier plugin versions.

  • Ben Maru says:

    Hey Dan, I love the Plugin! I have a problem.. I have a theme that uses Jquery on the homepage and it seems to “break” the homepage image changer.. It only happens when i activate the plugin? any ideas?

    http://www.starmazelaser.com/bag

    Ill leave the plugin “unactivated” so you can see what my rotator looks like working. Thank you in advance!

  • Ben Maru says:

    Sure thing.. ill do it now… but it doesn’t throw errors it just forces the homepage image changer to open in another screen. http://www.starmazelaser.com/bag

  • Darfuria says:

    Hi Dan (hey, snap)

    Any chance the plugin could be extended to grab a specified amount of images from a photoset?

    I’ve got a gallery page with a list of headings followed by the photosets, but as you can imagine that page gets quite lengthy. I’d like to be able to select the first # (6) images and then link the headings to the full gallery. Being able to add images=5 to the shortcode would be very helpful.

  • Holger says:

    Nice work! But I seem to have two little problems:

    The link to the original pic at flickr doesn’t work. It doesn’t point to Flickr, but http://www.myblog.com/12345678.

    Second problem: I can’t seem to find a setting for the size of the flightbox. It behaves like it is set to a maximum width of something like 500px even though the pictures are bigger. What determines the size of the box?

    Thanks for your help!

    • Dan Coulter says:

      Can you send me a link to your blog where that error is happening? If you don’t want to share it, you can send it via my contact page.

      The size of the lightbox is determined by the dimensions of the “medium” size of the image on Flickr. That is the largest size that is guaranteed to exist on Flickr. In a future version, I will probably code it to check for a larger size, but for now, it just takes the largest one it knows exists.

  • BC says:

    Do you have code for to remove the photostream, so I can just have the sets tab? Also I wanted to have another page of just Videos. So I see you have code to add videos, how would I incorporate that just on a Videos page? Thanks in advance.

  • Ryn says:

    Thank you so much for this. I’ve been digging through unnecessarily complicated flickr/WP plug-ins for a while and yours is the first I’ve found to be quick and usable. The shortcode-style commands and lightbox pop-up are exactly what I was hoping to find, and it’s working out great.

  • Jonathan P says:

    I upgraded to WP 2.8 and now the pagination is not working anymore. Any ideas? It just pretty much refreshes the page.

    • Dan Coulter says:

      It appears that you have another plugin that is causing an error. Try disabling wordpress-flickr-manager.

    • Jonathan P says:

      Thanks for the info! I disabled the mentioned plugin and the gallery works again. How did you know I had Flickr Manager enabled?

    • Dan Coulter says:

      When I looked at the included scripts on your page, there was some Javascript from the wordpress-flickr-manager plugin folder. It was pulling in an old version of jQuery and overwriting the one that WordPress was loading.

  • Scott says:

    Excellent plugin, thanks for all your work.

    I have one question. The keyboard shortcuts for previous and next (left and right arrows) don’t seem to work. Am I missing something?

    • Dan Coulter says:

      There are no keyboard shortcuts.

    • Scott says:

      Oh – Lightbox normally has the shortcuts. Or is it actually not Lightbox. I’ve noticed that it is called as, ‘flightbox’ – which I suspect might be some kind of “free Lightbox”. ;)

      Where does ‘flightbox’ come from, if it’s a third party component?

    • Dan Coulter says:

      “Flightbox” is my cutesy name for a “Flickr lightbox”. I created it from scratch because the other lightbox components for jQuery used licenses that were incompatible with the GPL and because I had to modify the behavior to abide by the Flickr TOS.

  • SR says:

    Is there a way to remove the “View this photo on Flickr” Line on the lightbox?

  • Mara says:

    Hiya, I keep trying to install your plugin – managed to get to the plugin setup page where I typed in the API once, then hit save – and then got an error that there’s a call to an undefined function wp_enqueue_style() in line 95 of flickr_gallery.php.
    So I deleted the plugin again, and reinstalled… same error, but this time as soon as I hit activate. … any idea what I’m doing wrong?

  • Linh Nguyen says:

    Do you have a html code for insert FlickrGallery in text widget ?

  • Hey mate, great plugin, although I do have one problem, I can’t figure out why my images do not open with lightbox, it just sends me back to flickr no matter what I do..

    Also, is there any option that in the title inside lightbox there could be the description of the image?

    • Dan Coulter says:

      That is almost always because your theme or another plugin is loading jQuery incorrectly. Try disabling other plugins and setting your theme to the default theme temporarily so that you can see if it starts working then.

    • Yap I figured it out once I replied, I’m not using other plugins only handwritten jQuery code, I disabled the jQuery library call and left only yours now everything works together. I didn’t think about it earlier cause I’ve written the scripts using jQuery’s noConflict mode.
      THanks alot again

  • Still lovin’ Flickr Gallery! What a great plugin! Any chance there is a way to make a gallery of a photoset that is sorted by date-taken-asc (similar to how searches can be sorted). When I use [flickr-gallery mode="photoset" sort="date-taken-asc" photoset="72157621944760544"] the gallery isn’t sorted by date-taken, but when I use [flickr-gallery mode="search" tags="yellowstone" user_id="me" sort="date-taken-asc"] the resulting gallery is sorted by date-taken (but isn’t selective for a particular photoset). Thanks for such an awesome plugin!

    • Dan Coulter says:

      Actually, you can’t do that in the API call, so I haven’t done that. I don’t want to do that kind of processing on your server’s end. The reason for that is that the photoset method does not allow you to sort it. It only allows you to display them in the order that they are arranged in the photoset. If you arrange the photos in the photoset by the date taken, it’ll show up that way on your website.

    • I hadn’t realized I could rearrange the order in my photoset… Thanks for the tip!!

  • fred says:

    is it possible to tell the plugin how many pictures to load ?
    for exemple if i use the code [flickr-gallery mode="recent"] can i manage to have only 5 images showing

  • Hi,
    Random question – is it possible to disable paging in the shortcode? My first thought was to simply hide the relevant divs, but that still leaves some Javascript which is essentially unused (and besides, it seems a bit hacky).

    Otherwise, thanks for a great plugin – I’ve only just started playing around with it on a development site, but it seems to do exactly the things I needed.

Leave a Reply

Your email is never published nor shared. Required fields are marked *
*
*