WordPress Flickr Manager changes for 2.9

I recently started a new blog for my photos, which I’m starting to advertise for sale through Etsy (links to follow once I have some more things in place :)) and I added the WordPress Flickr Manager plugin so that I can easily pull in pictures from my Flickr account into the blog. However, it didn’t work with WordPress 2.9 🙁

So, I made a couple of changes to some files and it seems to be working now – so, if anyone is having the same problems, here’s a list of the files that I changed:

  • wordpress-flickr-manager/js/wfm-lightbox.php
  • wordpress-flickr-manager/js/media-panel.php
  • wordpress-flickr-manager/js/wfm-hs.php

In each of those files, remove any ‘@’ characters that are in the files, for example:

this: wfmJS('a[@rel*=flickr-mgr]').each(function() {
becomes: wfmJS('a[rel*=flickr-mgr]').each(function() {

Once you have made the changes, the plugin should work fine.

EDIT – March 15 2010 @1534

I’ve just had a look at the files that I changed to provide a fuller explanation of what I changed.  I can’t see what I have changed in the media-panel.php file (just downloaded the plugin again and can’t find any ‘@’ signs in there now), but the changes I made to the other files are:

wfm-hs.php

Line 13 - wfmJS('a[@rel*=flickr-mgr]').each(function() {
becomes - wfmJS('a[rel*=flickr-mgr]').each(function() {

Line 21 - wfmJS('a[@rel*=flickr-mgr]').each(function() {
becomes- wfmJS('a[rel*=flickr-mgr]').each(function() {

wfm-lightbox.php

Line 58 - wfmJS('a[@rel*=flickr-mgr]').click(function() {
becomes - wfmJS('a[rel*=flickr-mgr]').click(function() {

Line 91 - wfmJS('a[@rel*=flickr-mgr]').each(function(){
becomes - wfmJS('a[rel*=flickr-mgr]').each(function(){

I’ve tested this with WP 2.9.2 this afternoon and it seems fine.

UPDATE – 11th July 2010

I’ve just been looking a bit more at this and have added a few replies to some comments.  I have the plugin working on WP3.0 now – I made no changes to the version I had before though.  The one thing that doesn’t work is trying to add photos from a set rather than just from the stream.

When you try to add a photo from a set, it only finds photos that are publicly available.  If the photos are not public, then it doesn’t find them in the set.  I don’t know whether this is a problem with the plugin, or a problem with the Flickr API though.  I make most of my photos private, so if I want to add from a set then it’s a problem – that said, I have the same problem when adding from Flickr to my photo printing service, which makes me think that the problem lies with the Flickr API rather than the plugin.

Looks like a more in depth examination of the plugin is required – if I get chance to do it, I will, but I am quite busy with work that brings in money at the moment, rather than coding for fun and hobby.

By continuing to use the site, you agree to the use of cookies. more information

In common with almost all professionally run websites, this website logs the IP address of each visitor in order to keep it running reliably. This is also essential for protecting the website and its visitors from malicious attacks, including infection with malware.

This website provides information as a service to visitors such as yourself, and to do this reliably and efficiently, it sometimes places small amounts of information on your computer or device (e.g. mobile phone). This includes small files known as cookies. The cookies stored by this website cannot be used to identify you personally.

We use cookies to understand what pages and information visitors find useful, and to detect problems such as broken links, or pages which are taking a long time to load.

We sometimes use cookies to remember a choice you make on one page, when you have moved to another page if that information can be used to make the website work better. For example:
- avoiding the need to ask for the same information several times during a session (e.g. when filling in forms), or
- remembering that you have logged in, so that you don’t have to re-enter your username and password on every page.

You can prevent the setting of cookies by adjusting the settings on your browser (see your browser Help for how to do this). Be aware that disabling cookies will affect the functionality of this and many other websites that you visit.

Close