Uploading photo's to Flickr.com - my two cents
lapurd - March 2, 2007 - 19:26
| Project: | Flickr |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | lapurd |
| Status: | active |
Jump to:
Description
Earlier I had explained I would add this to the flickrhood module as I had a private solution already working, but now I'll finally get to porting it the new Flickr module.
Most code for this is done by now and next week I'll get to the last steps so this feature should hopefully be in HEAD within 2 weeks from now.
The trickiest part really is getting support for both uploading to personal Flickr accounts and 1 Flickr account set by the admin. Initially I can only offer support for uploading to a Flickr account set by the site admin.
Casper

#1
I also have some code that does this and am also interested in getting it working in a drupal module.
The version I have depends on the phpflickr library - I'm not sure how acceptable that is and I'm not sure if your code lapurd relies on that as well...http://phpflickr.com
lapurd - I definitely want to coordinate with you on this. If you'd like I can stick the code in my sandbox.
#2
we don't want to introduce a dependency on phpflickr. i'd be interested in seeing the dependent code extracted for inclusion in our module though. i'm pretty sure phpflickr is GPL.
#3
greggles, I once convinced a developer on another Drupal Flickr module to use the library you mentioned, but I guess for this module the developers don't like to depend on it. I'm not going to argue over this with them, I just want to add upload support and move on basically. So I think you should understand that I will not rely on it for uploading and want to respect the maintainers choice on this.
So I think we could work this out together like you said. I propose to send you the code I currently have so you can see how it works (abd you send me yours) and see what it does and how it works. I basically have done the interface code and all that remains is the interfacing with the Flickr API. It would be best if you would simply try out the code to see what it does and how it works. We can then comment on the features we like of each our approach. Perhaps we can mix some ideas.
I should note that I can't spend too much time on this in the sense that I won't be able to support the code very long. Basically I owe it to someone to add this feature and that's basically what I want to do for that person here.
I don't know what you mean with the 'sandbox' comment, could you help me with telling me how I can best work with you on this, then I will follow that.
#4
I am anxious to see how this turns out - unfortunately I am not much of a coder, but would like to throw my two cents in on usability as I've been through this Flickr upload thing on another platform.
For an unrelated project, my team developed a Flickr interface to a Perl-based social networking site, and here was the feature set:
- Login capability from the site - Flickr allows login link and the API key for the service can be programmed to redirect back to the third party site page. We set a login page with link, users would login, the cookie would get passed to the browser, and the user could then do as they liked with Flickr from within the site until they logged out or closed their browser.
- Upload - after login, users could upload from their gallery or from an entry page (this was key). Users like to embed photos in their "journal" space, so upon upload we would return the static flickr link for that photo, in a popup window. Users could choose photo size and right or left alignment, and we would give them the HTML code to copy and paste the link directly into their entry body text field. Using the static image worked well, and the link would of course go directly to Flickr with "new window." We also gave them the option of tagging their photos upon upload, as well as selecting privacy settings. But returning the static image link was key to keeping images in the site, free of the need for login by other users in order to view embedded photos.
- Gallery - pretty simple browsing, as well as upload straight from there. Logged in users had access to their gallery after Flickr login, and we tied gallery access to the buddy system for their friends. Nevertheless, the gallery was de-emphasized in favor of the embedded photo functionality.
- Pop up window buttons in their journal entry screen allowed them to upload photos or choose from their gallery, on the fly.
I don't know how this would be integrated into Drupal, but it was pretty user friendly on an otherwise "not very user friendly" base platform.
I'd be more than happy to post the code snippets upon request.
Regards.
#5
I am interested in working on this functionality also. I was going to hack together something to post images from my website to flickr, but if someone is already working on a project, I would be glad to contribute.
#6
I'm also interested in this feature, but I need a 5.x backport since other contributed modules aren't ready for 6 yet. How is this coming along? I'd be willing to work on the backport if needed.
Jen
#7
At present this functionality is being developed over @
http://drupal.org/project/flickrup
#8
flickrup has never had a stable release, not ported to d6, and had no activity for over a year.
this is an opportunity for flickr.module to subsume such functionality as proposed by flickrup.
#9
Is there any progress on the feature request? I think it would be a great addition to the module.
#10
Has there been any progress with this feature? I would like to see it finnished ASAP, as I'm sure many others would, and would be willing to help with development. What are the problems you're having with it at the moment?
#11
I too would love to see this working. Adding direct Flickr uploads would be a very valuable asset to many people. If there is anything we can do/help with, please just say.
Cheers.