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.
88 Comments
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
Ack, you’re right! I will get a fix out as soon as I can.
I’ve got a fix for this in SVN. Look for 1.2.3 soon.
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/
This is fixed too. It’ll be in 1.2.3
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
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!
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.
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.
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..
In your WordPress settings, you need to set your blog home to “http://temp.jrock.gr/blog/” instead of “http://temp.jrock.gr/blog”.
Did it, still not working:/ pagination in photosets works though.
Great stuff Dan. When can we expect to see pagination working with photostreams??
Oops! I just saw on your photo gallery (http://dancoulter.com/photos/) that it’s working. Hmm, I can’t seem to get it working on my end though. Any pointers? I’m running 1.2.3 of your plugin and wp 2.7.1
Do you have an example?
hey dan,
http://www.everydayslacker.com/test_gallery/. The ‘Next Page’ and ‘Previous Page’ links don’t seem to work with the Photostream and Most Interesting tabs.., however, they do work within the Photosets. This is a clean install with just your plugin activated. Thanks for any help!
There is a bug that is breaking the pagination if it’s installed in a sub directory. I’m going to try to get that fixed soon.
oh okay. keep us updated. great plugin!
It works great in firefox, but the images are not showing in internet explorer.
Which version of Internet Explorer? Does it work if you go to http://dancoulter.com/photos/ ?
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.
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.
when i said sizing ….i meant the size of the center column for our theme.
Thanks…..do you have any ideas or things i could do to correct it?
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).
AWESOME!
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.
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.
Have you entered your user id yet?
Hi,
Wondering if there is a PHP that allows me to drop Flickr Gallery into my theme templates?
If you do something like “< ?php do_shortcode('[flickr-gallery]'); ?>” it should drop it in to your template.
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…
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.
Yeah, I left some debugging code in there. If you update to version 1.2.5.1 that should go away.
For some reason, the page on WordPress.org is showing that 1.2.5 is the latest version, but if you go to the download link, it fetches 1.2.5.1.
http://downloads.wordpress.org/plugin/flickr-gallery.1.2.5.1.zip
Thanks for that mate, I will update it next time I’m on. Once again great plugin
Same issue here on 1.2.5 and auto update doesn’t fetch 1.2.5.1, I’ll update manually.
hm, still broken? Reverted to 1.2.4
Still a great plugin!
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.
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.
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!
Solved my problem, need an echo in there:
Oops, of course you do. Sorry for the bad info.
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?
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.
What browser are you using? It worked in Firefox 3.0.10 for me.
I reverted back to Flickr Gallery 1.2.3 which worked. Have just upgraded to 1.2.6 again.
Doesn’t work in Firefox 3.0.10 or IE 7.0.6001
http://www.nativenoise.co.za/721/
I don’t know why it’s not hitting the pagination. If you give me an administrator login to your blog and make the flickr-gallery.php file server writable, I can try to debug it. The part that is failing on yours is working fine on mine.
You can send me that login through my contact form:
http://co.deme.me/contact/
Thanks Dan. I set you up as an admin and sent the details via your contact form. Let me know if you haven’t got the details.
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!
Could you activate the plugin so that I can see what errors it throws?
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
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.
Try ‘per_page=”6″‘. That should do it.
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!
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.
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.
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.
I upgraded to WP 2.8 and now the pagination is not working anymore. Any ideas? It just pretty much refreshes the page.
It appears that you have another plugin that is causing an error. Try disabling wordpress-flickr-manager.
Thanks for the info! I disabled the mentioned plugin and the gallery works again. How did you know I had Flickr Manager enabled?
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.
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?
There are no keyboard shortcuts.
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?
“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.
Is there a way to remove the “View this photo on Flickr” Line on the lightbox?
Doing so is a violation of the Flickr terms of service and could get your API key revoked.
well if you make the img itself a clickable link back to flickr its not a violation right?
Yes, that’s correct. However, because of the Previous and Next links in the lightbox, that’s not really viable.
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?
You are using an out-of-date and unsupported version of WordPress. For my plugin to work, you need to upgrade to version 2.7 or later.
Do you have a html code for insert FlickrGallery in text widget ?
You can use any shortcode in your text widgets using this plugin: http://wordpress.org/extend/plugins/sidebar-shortcodes/
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?
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!
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!!
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
Add a “per_page” argument like this:
[flickr-gallery mode="recent" per_page="5"]how do I get rid of the thumbnails being underlined?
http://blog.halinasplace.com.au/wordpress/?p=550
Your theme is causing this. You’ll need to edit the styles to exclude my plugin’s links from having that dotted line.
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.
Yes, it is possible. The instructions are at the end of the usage notes.