I’ve just tagged a release for Flickr Gallery 1.4.0. In addition to several bug fixes for WordPress 3.0, it brings an oft-requested feature. There is now an option (off by default) to load larger than medium photos in the lightbox. I have turned it off by default because it requires an extra call to the API which slows down the lightbox slightly. The lightbox checks with Flickr to find all of the available sizes and then shows the largest one that will fit on the user’s screen.
Flickr Gallery 1.4.0
This entry was written by Dan Coulter, posted on July 4, 2010 at 1:43 am, filed under Project News and tagged Flickr Gallery, release. Bookmark the permalink. Follow any comments here with the RSS feed for this post.
Post a comment or leave a trackback: Trackback URL.
49 Comments
Great plugin and thanks for the update to 1.4 – I would like to use Collections, is there a way to make the Collections act like Sets and not be redirected to Flickr?
Dave,
The problem with collections is that you can have collections inside collections. That makes it kind of messy for trying to browse within something like the Flickr Gallery output. That doesn’t mean I won’t ever support it, I just haven’t put a whole lot of thought into it yet.
Flickr Gallery 1.4.0 works perfectly in WP 3.0. Thanks for the update and this terrific plug-in. I’ve made a small donation via PayPal for your efforts on this. Just a couple of bucks to show my appreciation.
Hi Dan – I’m trying to remove the tabs from the display area where it says “Photostream” “Photosets” and “Interesting” but the php functions seem to be missing from your project page. Can you please help. Thanks -
You can select which tabs you want to see in the plugin settings. If you want to do away with the tabs altogether, you can do something like [flickr-gallery mode="recent"]
Great! Thanks Dan.
One more question – can I increase the thumbnail size?
Hi Dan! First, thanks for this wonderful plugin.
There’s any easy way to change the style of the gallery, without touching the css plugin files?
Thanks man!
You can always edit your theme’s CSS to add overriding rules to my plugin’s rules.
Hi Dan, epic plugin.
One quick question: is there a way to tell the plugin to behave in ultra-basic mode? E.g. without any paginations or loading css or jquery files? I’d like to play with the raw HTML it generates.
Errr… sorted this one out too. Found the code and commented them out.
Oh, one thing I found: when you use the pagination=”0″, it doesn’t load the rest of the images from the next pages. It only shows the images from the first page, and that’s it.
Ah, figured out the last one. Pagination directly relates to the number stated in the “Number of Photos to Display” field, but setting it at none throws an error. I just entered 9999 instead and everything worked.
One thing to keep in mind… loading more than 30 images that are hosted on Flickr at the same time is a violation of their TOS and could get your API key revoked or any requests from your site blocked.
Re: Flickr. Hmmm. I see. Looks like pagination is the way then.
One little cool thing I thought I’d mention: I had a little fun with the photosets shortcode, and combined it with WP’s custom fields and do_shortcode() function, allowing the Flickr Gallery plugin to work outside of the content area, while allowing a different photoset to be associated with each post.
e.g.
ID, $key, true) . ‘”]’); ?>
Now the gallery is in its own separate container.
Whoops.WP stripped out the PHP. Sorry about that. This was what I was trying to post:
ID, “flickr_photoset”, true) . ‘”]’); ? >
3rd time’s a charm?
< ? php echo do_shortcode (‘[flickr-gallery mode="photoset" photoset="' . get_post_meta($post->ID, $key, true) . '"]‘); ? >
Hi again Dan (Sorry for being rather pesky today), I was just wondering: is there a way to show the description of a Flickr photo? I can’t seem to find the shortcode to trigger it.
Hi Dan
Thanks so much for this plug in which sounds just like what I need. I’m a complete WordPress newbie, though, and need any help I can get. So far, I haven’t managed to set up the plug in, because I’m confused about the Flickr API. When I follow your link, it takes me to a page on Flickr which asks me about the app I have created so that it can allocate me an API. Confused? You bet. I haven’t created an app – I just want to use your plugin! Can you clarify for me?
I hope so!
Basically, I have distributed the plugin without an API key. You need to sign up for one to make it work. In this case, just use your site name as your “app”.
Hey Dan, is there an easy way for an almost-novice like me to remove the link to Flickr that appears beneath the images and delete the ability for user to right-click to copy image location to paste into a browser? Thank you! I love this plugin!
Removing the Flickr link is a violation of the Flickr TOS. If you did that, Flickr might revoke your API key or block your server’s IP address from making API calls.
As for stopping people from right clicking, you could use Javascript to put invisible div overlays ontop of each image in the page. My plugin doesn’t attempt anything like this because every theme might mess this up and it would be a nightmare to try to support everyone.
Thanks again!
The light box is not working at all… no matter how I have it configured, a click on the thumbnail always opens the image in Flickr.
I assume that this is surpossed to open the image only in a lightbox? Any help would be appreciated.
9 times out of 10, it’s because another plugin or theme is loading Javascript incorrectly and breaking the Flickr Gallery scripts. Try disabling other plugins to see if that fixes it. If it does, enable them one at a time until you find the one that breaks it. If that doesn’t work, send me a link so that I can look at it.
There is no other plugins running….
Whats your email for the link?
dan {at} dancoulter.com
I was able to setup the plugin for the site and even loaded the lightbox plugin but I have two problems. First I can see the most recent photos in the gallery however I cannot see photos from all the sets. Next when I click on the next page button I have a # showing in the URL but nothing changes and I have over 1000 photos in the photo stream. Please help, trying to get this setup for a non-profit.
There are a lot of javascript errors. You probably have another plugin causing it. Try disabling your plugins and seeing if it starts working. If it does, re-enable them one at a time to see if it breaks again.
Is there any way I can set display image size larger? I tried [flickr-gallery size="large" mode="photoset" photoset="11111111111111"]. but image doesn’t go bigger…
Do you mean when you display a gallery or when they click through to the lightbox?
Sorry, I meant when they click through to the lightbox. Thanks for quick reply.
Have you enabled the setting that turns on larger images in the lightbox?
yeah, if I do that, it will jump to Flickr page, it won’t appear on lightbox.
I mean if u are talking about checkbox on back-end saying “Display the largest photo that will fit in the user’s window (slows it down slightly):”, yes
Could you show me a page with that setting enabled? There might be a bug that I’m planning to fix in the next version.
linked removedCould u delete the link after u cheaked it?
This is test stage and not for public view.
Yep, you’re suffering from the same bug I was checking out. The next update will have a fix.
Okay, cool. I will wait for ur next update.
Thank u for ur quick reply and help. Vary nice plugin.
I haven’t yet got a wordpress site set up, is there a demo of this plugin anywhere? Can’t find a link.
Also any chances of making this plugin available in Joomla?
I haven’t found any good Flickr galleries for Joomla, you would fill a nice hole!
You can see it in action here: http://dancoulter.com/photos/
As far as Joomla goes, I doubt I’d have time to learn how to write joomla plugins, develop it and support it sine I don’t have much use for it. Of course, my plugin is licensed under the GPL, so there’s nothing stopping someone else from adapting it for Joomla.
Hi Dan, many thanks for the plugin, excellent work! One problem, I changed themes this morning and the widget vanished, changing back didn’t solve the problem. I did have it installed top right. The plugin is still there but I’m baffled. I tried uninstalling other plugins to see if it was some kind of clash but no luck there either.
If you get the time……Thanks
Dan, wondering if there are any known JS errors with this plugin. We are using the Revolution theme by Alex Pascal, and the Flickr Gallery plugin conflicts with this theme’s Theme Settings page directly. When we turn off Flickr Gallery, we get our Theme settings back.
We really love this Flickr plugin. It’s just becoming a problem to have to turn it off every time we want to use theme settings and things seem to get reset in there.
Just curious. Thanks.
Currently, my plugin includes its Javascript to pretty much every page once you activate it and enter an API key. This isn’t ideal, and I’ll probably fix it in a future version. It generally won’t cause any errors, though, because it loads it in a fairly responsible way, using the proper WordPress functions. If your theme is loading jQuery incorrectly, then it could cause a conflict. If you would send me a login, I might be able to identify the problem.
You’ll have to email me directly because my host broke my contact form and their support hasn’t gotten a good answer to me yet. You can reach me at dan{at-symbol}dancoulter.com
Hi Dan,
I noticed that you mentioned that this plugin is under the GPL license. Would it be alright if we were to add some extensions to it and release it as well?
As long as your extensions are also GPL, then you’re more than welcome to do that. If you need any extra filter or action hooks (using the WordPress plugin API), I will be happy to add them.
Is it possible to limit the number of photos that are pulled from flickr on one page from within the WordPress tags? Something along the lines of [flickr-gallery mode="recent" number="5"] for your most recent 5 pictures.
I found the code on line 824 to change it in a hard coded manner, but it would be nice to be able to change this on a per-post basis.
(I’m not wanting to pull more than 30 pictures, but less so that it works better with my site layout)
Nevermind, just found the option by looking at the code closer. per_page=”5″ works.
Hey Dan, quick question. Using the photoset shortcode, is it possible to link to an image within the lightbox from somewhere else in a wordpress post? I want to jump to an image in the gallery from a text link on the same post.
One Trackback/Pingback
[...] Also, I’d like to give a shout out to CodeMeme for his awesome Flickr Gallery Plug-in for WordPress. It just made my life a whole lot easier and especially with the recent update. [...]