Development Seed

Blog

Unlimited Images for Your Content with Drupal and Flickr

Module Lets You Upload Photos to Your Site and Flickr at the Same Time

Wouldn’t it be cool if you could upload as many images as you’d like to your site without worrying about your bandwidth? Or even better, if you could automatically share the images you upload to your site with an image sharing service like Flickr, and then have these photos displayed on your website but hosted on Flickr? 

That’s exactly what we did last week for the Stand Up Speak Out campaign. Using Drupal and the Flickr API, I created a small Drupal module called Flickrup that does this – all you have to do is enable it and configure it. It helped us easily display photos from many of the thousands of events that took place around the world on their individual event webpages. Here’s what it looks like:

Here’s what the module can do:

  • Upload images to your Flickr account and link them to specific content
  • Automatically display images along with your website content
  • Define a global tag for all your uploaded images
  • Define tags per content types, which lets you automatically tag images using node parameters and location data if its available (for example, you can tag all images with 'yoursitename' event[nid] country)
  • Add additional custom tags for each upload

Here’s how it works:

  • Uses phpFlickr for Flickr integration and automatic uploading 
  • Uploads images first to your server and then to Flickr, and gives you the option of removing local files after they've been sent to Flickr
  • Automatically tags your pictures for your specific content on your website, which allows appropriate images to be retrieved and displayed on the appropriate pages (this is optional)

And it works! Thousands of photographs were uploaded last week during the Stand Up Speak Out campaign.

Below I’ll walk you through using the Flickrup module step by step.

This is the module settings form, where you can define the privacy setting for the images you upload (public/private), set image file parameters, and add a global tag to be applied to all the images uploaded from the site. We need an additional Flickr token with 'write' permissions to be able to upload straight to Flickr.

Now you have to enable the module for specific content types. You can define some tags to use parameters from nodes, like nid or location data, to allow images to be automatically tagged for country, city, year, and more.

And then, voila! Now each node has an upload tab that sends images straight to your Flickr account that are automatically tagged for this node. You can also define custom tags for each upload, and the images will automatically appear with this content.

This looks great

I appreciate it being contributed as open source, that seems to be the wave f what's coming. The more I see others contributing the more I am inspired to do so myself.

Thanks again,
-Brian

Flickr field not showing up

Hi Bonnie,

I tried to use your wonderful module in my local installation.

Follwed all the instructions in readme.txt and here.

Enabled flickr module

Enabled flickrup module (places phpflickr directory inside flickrup directory)

Got API keys and API Auth Token and entered all that in the configuration.

I enabled this for a content type I have created, but no 'flickr' filed or option shows up while editing. Am I missing something?

I checked the support section in Drupal, but couldn't find any answers.

I'll appreciate your help.

Thanks

Photos not displaying in slideshow!

I have setup the flickr upload as stated in your readme file and have added photos to both my webserver and flickr account.

See www.gkr15.com/?=node/49

I have made sure that the api codes are correct, though I am a little confused seeing as one i created and one I did not. I am using the one I created. The other simply has the description sdf. Odd! Nonetheless, as you can see from my site, it is saying that "no such phots are uploaded". They are! At least on flickr! I have waited a day now, like someone said, but nothing! I know that this is a problem with flickr, but is there any explanation you can give me, or if I give you access to our site, would you take a look and see if I have set this up correct. I am sure I have, but I would rather ask you to do this, than look foolish, if this is not the case.

Please help!!! We have a deadline launch for 11th May and I really want to use your module. Its capabilities look awesome!!! HELP!!

Check out Flickr Upload on Drupal.org

Hi Simon,
I'm sorry to hear that you're having trouble with the Flickrup module. You should visit the module's page on Drupal, http://drupal.org/project/flickrup, for documentation on the module and to see support requests. I hope this gives you the answers you need. Best of luck to you!

Bonnie

if for each user

Hi,
Its good, but i want to upload photos to each flickr user account directly after asking them for their flickr id and password as simle as that.
If its possible and a solution is there let me know. if its not let me know know the reason.
reply and mail me akshay.aries11@gmail.com

Instructions Revision

OLD

Installation
============
1. Place the module with all its files under sites/all/modules/flickrup
2. Download phpFlickr from http://phpflickr.com/
and place it in a 'phpFlickr' subfolder in the module directory

NEW

Installation
============
1. Download phpFlickr from http://phpflickr.com/

2. Change the folder name to 'phpFlickr'

3. Place that folder inside the "flickrup" folder.

4. Upload the "flickrup" folder to sites/all/modules/

----Follow the instructions on enabling the module

Can I use the module in local system server?

Can I integrate this module in local server or only remote server?

error when uploading images

Hello,

I keep getting this error when trying to upload images:

Fatal error: require_once() [function.require]: Failed opening required 'modules/flickrup/phpFlickr/phpFlickr.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/johnvask/public_html/modules/flickrup/flickrup.module on line 609

After checking the files, I see that the images are there but they don't show up on the site.

Also, I'd like to be able to show captions and descriptions for the photos too - like you do on your site but I'm not prompted for captions anywhere.

Any advice?

Missing library

Looks like you haven't followed the installation steps here, README.txt.

Once installed right and configured it should look like the screenshots here.

hi is there anyway that we

hi is there anyway that we could put a link to upload photo to flickr in the user profile, the same way we can upload through individual nodes,

awaitng for your reply soon.

I'm afraid we'd need some

I'm afraid we'd need some more php code for that.

You can post feature requests to the module, http://drupal.org/node/add/project_issue/flickrup/feature

Module available

The module is here, http://drupal.org/project/flickrup

It may take a while till the tar.gz is packaged, you can already check it out from the cvs.

Module isn't up on the Project page

1st Off, Wow, great coding to get the functionality.

Visited the http://drupal.org/project/flickrup
project page, everything was up, except the module file isnt available to download :(

Looking forward to trying the module out soon.

Get the module here

The module is available here http://drupal.org/project/flickrup

When do you expect the

When do you expect the module to be available for download?

Man you don't even know how

Man you don't even know how long I've waited for this since disabling my own Movable Type widget (that doesn't work since Haloscan bypasses that code).

Wow, this IS some module

Can't wait to see it in the drupal contrib modules :)

I want!

Please post when this is available on Drupal.org, or here at Development seed, or wherever. Looks very cool...

SWFUpload

Once the next version of SWFUpload (http://drupal.org/project/swfupload) comes out, and you stick this module up on Drupal.org in the contribs repository, I'll begin to work on a bridge between the two to make uploading massive amounts of images to your website and Flickr very very easy.

Will the module be available?

I also need the same!

How rude!!

Now this looks awesome!! You even give an awesome tutorial on how to set it up, but not a link to download the module. My heart is broken. ;) Hope to see it soon.

Contrib module?

Sounds fantastic! Will this make its way to the contrib modules on drupal.org?