Flickr badge plugin for WordPress

Posted on February 28, 2005 at 06:05PM

flickrRSS badge plugin for WordPress

This plugin allows you to display a flickr style badge (for a tag, user, user tag or group pool) on your WordPress site. It uses MagpieRSS to parse the RSS feed and display the images. The plugin can also cache the images locally and display image title tags. The plugin is configurable via an Options panel.

Update: the plugin page has moved here. (Jan 2nd, 2006)

Features

- Display a badge for any tag, userid, user tag or group pool photo stream
- Easy to configure options panel
- Displays image titles
- Choose small, thumbnail or medium sized images
- Can cache images locally
- Display multiple badges

Installation

For the most part, it’s like any other plugin install, but you need a writable cache directory.

1. Unpack the files
2. Upload the plugin to your plugins directory.
3. Put the cache and magpierss directories where you want.
4. Change permissions on any cache directories that you need, so they are writable by the webserver (usually chmod 777).
5. Activate the plugin.
6. Goto the options panel, configure the plugin. If you want your feed to appear, make sure that you user you User Id Number, not your name.

Comments // 43 Responses

  1. This plugin allows you to display a flickr style badge (for a tag, user or group pool feed).

  2. Can The pictures display like this:

    [] [] [] [] [] []

  3. Yup, it shouldn’t be a problem. I didn’t apply any formatting, so they should appear one after another, only constrained by whatever margin widths you have.

  4. [...] €™t considered. If you use the image cache, you’ll need to remove old images manually. eightface.com This en [...]

  5. I’ve been trying to get this plug-in to work for an hour or so and it’s just not cooperating. Whenever I put the code into the template, the template just stops processing the page at that point for some reason. I’ve gone back and forth over the instructions several times and I just can’t figure out why it’s not working for me.

    Any suggestions? I know it’s not very helpful, but I’m not getting any indications as to why this isn’t working either.

  6. [...] e out why all my efforts to install various WP plug-ins are being thwarted (especially the Flickr one). Transla [...]

  7. Hmm, is the MagpieRSS cache working? If it’s grabbing the feeds, it should be storinging them in a cache directory as files that a bunch of letters and digits. Also make sure that you configure both the options and the cache stuff in the panel, they get saved separately.

  8. Well, it works now. Looks like it was a combination of about four or five different problems (those are the most fun to debug of all).

    Two recommendations you might look at: make sure that the users understand that when you say “username”, you mean the alphanumeric code used in the Flickr RSS feed and not the user’s Flickr username. I felt like an idiot when I figured that one out (especially with the examples in the config form).

    Additionally, make sure that the users know which permissions to set the directories to. That was a stumbling block that came up later.

    Otherwise, I love what you’ve done. It’s come out great. Thanks!

  9. [...] count at this web site’s name (radicalbender). Hint, hint. I got MagpieRSS and the Flickr plugin to work [...]

  10. If you want to display multiple feeds on the same webpage, you have to make one small edit to the source. Change the if/then branch on “tagtype” at the top of his file to use variables instead of constants like so:

    if ($tagtype == "tag") {
      $rss_url = 'http://www.flickr.com/services/feeds
      /photos_public.gne?tags=' . $tag
      . '&format=rss_200'; }

    You can make a nice flickr gallery with multiple feeds this way.
    see http://dotsandloops.net/bored/#flickr

  11. Thanks, that’s a bit of a brainfart moment. I tested out a multiple feed page and they were all the same but I couldn’t figure it out.

  12. How can this be set to display random photos within a set? Is that possible? I would love to use this instead of Flickr’s Javascript badge, but without the “random” it doesn’t quite do what I want.

  13. Jason >> it can’t do random, mainly because with RSS, it’s limited to the last ten photos in the photostream (Flickr also doesn’t have any stream for your sets).

  14. [...] laquo; computer blue(s) Pictures of You ok, I’ve added the flickr badge plugin to place a little filmstrip of photos in the sidebar. [...]

  15. I’d like to express my gratitude for writing this plugin. It is what I’ve needed for quite sometime now. Once again thank you and keep up the excellent work.

  16. I’m running WP 1.2.1 and I got an error when trying to install the plug-in. It said that is_plugin_page is not a function (line 33). Completely killed WP, and had to rename the plugin file to get anything to load. Any ideas?

  17. I am havig on heck of a time installing this plug-in. I don’t want to give up because it is so cool, but I am stuck.

    This is what I put in my template.

    This is the error I get.

    Fatal error: Cannot redeclare fetch_rss() (previously declared in /home/buildd2/public_html/thejournalpodcast/wp-content/plugins/mynetflix_inc/magpierss/rss_fetch.inc:88) in http://thejournalpodcast.com/wp-content/flickrrss/magpierss/rss_fetch.inc on line 88

    I also have mynetflix which uses magpie. My dashboard uses magpie and stopped working (not your problem). I am thinking that I don’t have magpie configured correctly to make all three things that need it work.

    Thank you in advance for any help you could offer.

  18. **brownorama**: I designed the plugin for WordPress 1.5, it uses the options page. I’m not sure if I can make it compatible or not.

    **Areca**: Goto the options page for flickrrss and try pointing magpierss at the same one that you use for the netflix plugin. It’s probably something to do with trying to use magpie twice, each plugin includes the magpie file, but WordPress (php?) only allows a function to be created once.

  19. Thank you, Dave, for answering back. This is what I got whe I changed the path.

    Fatal error: Cannot redeclare fetch_rss() (previously declared in /home/buildd2/public_html/thejournalpodcast/wp-content/plugins/mynetflix_inc/magpierss/rss_fetch.inc:88) in http://thejournalpodcast.com/wp-content/plugins/mynetflix_inc/magpierss/rss_fetch.inc on line 88

  20. The problem I guess is that both plugins are trying to include the same function. A quick and dirty solution would be to rename the fetch_rss function (in the plugin (line #214) and MagpieRSS) — i.e. rename all instances of fetch_rss to fetch_rss2. It’s not exactly upgrade friendly and means having two copies of magpie installed.

  21. I will try that. Thank you, again.

  22. [...] badge Now this is a nice WordPress-plugin to show off (again) my photo’s: Flickr badge. And there is even a blog-entry somewhere that [...]

  23. Nice plugin! (see above post)
    But after a week of using it, my IP-address got banned on Flickr as it seems :(

  24. [...] pt que flickr facilita para incluir las fotos en tu p�gina, he decidido utilizar el plugin flickrRSS de Dave Kellam, que permite llevar a cabo un mayor control en es [...]

  25. [...] See those pictures on the right side bar? Yeah, i’ve just installed FlickRss plugin. Look nice so far. Maybe it’d look nicer if they dis [...]

  26. I replaced

    202: require_once($magpiePath . ‘rss_fetch.inc’);
    203: require_once($magpiePath . ‘rss_utils.inc’);

    with

    require_once (ABSPATH . WPINC . ‘/rss-functions.php’);

    to use the rss-functions built into WP. I was getting the same redeclaration errors as Areca.

    I’m using the updated version of rss-functions.php that comes with FeedWordpress.

    I’m not sure if this method explodes the sun or anything, but it’s working for me so far (on http://www.kottu.org).

  27. [...] 0 pixels. Wider than 800, yes, it’s time. Flickr images on the sidebar are called in using flickrrss. The noteworthy heart image is now clickable and sends you to th [...]

  28. Indi: Thanks, I had been looking into using the built-in rss functions but haven’t had the time to update the plugin. I believe the built-in functions use Magpie anyway. In either case, I should do a check to see if the function has been included already. I’ll be releasing an update at some point in the near future but I’ve got a couple weeks of crunch time left at teacher’s college.

  29. [...] -the-bonsai/”>timely post from Michael Ive found some decent plugins to play with, namely: flickrss to display my most recent Flickr images, Auto Moderate Comments w [...]

  30. [...] body has noticed, I have added a Flickr sidebar to my page. Check out Dave Kellam’s page for the script. This entry was posted [...]

  31. [...] d a great way to store and manage all of your digital photos. I am using a plug-in called flickrRSSwhich allows you to display a flickr style badge (for a tag, use [...]

  32. [...] ult feed uses Javascript which reallly fails hard on the XHTML validation front, so I used a plugin from eightface.com which PHPifies the feed. It plugs right into [...]

  33. The recent flickr outage seem to cause the plugin to slow the page loading and the server. It seems to time out the php execution. This seems to only occur when the plugin can’t reach flickr?

  34. Could you make a Gallery 2 version of this plugin?

  35. Rich > If flickr goes down, just set the cache timeout to a really large number.

    Carl > Nope, no gallery plugin… I don’t use it. That said, the plugin is opensource (gpl) so feel free to use it as a base for a gallery plugin.

  36. Love the plugin, but if I enable the “Use image cache” option, it saves the images onto my server all right, but they have a file size of zero and thus do not display.

    Any Suggestions?

  37. [...] g sometime (7/10) I also using the following plugins: BlogTimes, Dynamic Text Replace, FlickRss (make the page loading slow sometimes ), ImageBrowser (nice and [...]

  38. [...] e and manage all of your digital photos online. They are displayed using a plug-in called flickrRSS which allows you to display a flickr style badge (for a tag, us [...]

  39. Your directory is probably chmod’d wrong, that’s why the files aren’t caching.

    Great plugin, With a few little changes I was able to attach ‘related images’ to posts.

  40. [...] digital powerhouse fotostreaming i found the flickr badge plugin for wordpress today and decided it would be a nice addition t [...]

  41. I finally got it working. Sort of..

    Problem is: Only links show up. No pictures. What have I done wrong?

  42. Snuf > I wrote the plugin using an unsecure php function called fopen, it’ll be fixed shortly.

  43. Ok. Thank you for the quick reply.

    I was just a bit surpriced since it seems I’m the only one who has encountered this problem.

    (And since its a peculiar problem).

    Im looking forward to “the fix”.