Motivation
For some users, entering the flickr id for an asset (photo or photoset) is not intuitive. When adding an image, the user should be able to see what they are adding before submitting the form.
In this patch
This patch comprises an unobtrusive, ahah-paginated javascript flickr image browser for flickrfield, with support for photos and photosets, along with some trivial standards compliant updates to existing flickrfield code.
Flickr Browser is...
... disabled by default and adds a widget setting checkbox to the content type edit form.
... based on unobtrusive javascript to populate the existing flickr id field when an image is clicked.
... compatible with existing flickrfield cck fields.
Flickr Browser is not...
... intended to change the behavior of flickrfield in any way.
Dependencies
| Comment | File | Size | Author |
|---|---|---|---|
| screenshot.png | 171.94 KB | aaronbauman | |
| flickr-browser.patch | 31 KB | aaronbauman |
Comments
Comment #1
sirkitree commentedThe functionality is very nice, I like the browser. Here are my observations after trying this.
Creating a photo: (cool)

After hitting submit: (not cool)

The errors in the second screenshot are due to a javascript error concerning the patch you recommend applying to teaser.js. After reverting that patch, the error goes away but I am still at the /node/add/photo page after submission.
Comment #2
aaronbaumanthanks for reviewing, sirkitree.
I think all the issues you mention are rooted in a bug with ahah_helper: #513322: Not being redirected after node creation or edit
That issue vexing and perplexing, and I'm not sure the best way to address it.
Unless someone else has some ideas on how to address #513322, I'll try to take a whack at it soon.
Comment #3
aaronbaumanI believe this patch will work much more smoothly with this patch to ahah_helper:
#688210: patch to fix bugs using ahah_helper in a CCK widget
Comment #4
Anonymous (not verified) commentedHey, Aaron
This looks awesome!
Were you able to resolve your difficulties ?
Best,
Paul Booker
Comment #5
aaronbaumanPaul:
Like I said, this patch works great for me after applying the fixing the bug in ahah_helper.
I've been using it on production sites since my original post with no real issues.
Did you give a try?
Comment #6
Anonymous (not verified) commentedHi Aaron,
I shall try out these new features when the related bugs with ahah_helper have been resolved.
Best,
Paul Booker
Appcoast
Comment #7
notrab commentedHas anything new happened with this patch? I'm a newbie and am looking for some help. I installed this patch, enabled the browser, and can see the photos/photosets in my flickr create content page. My issues is that when I select a photo, it's not updating the ID field. I'm assuming this is a javascript problem but am not sure where to go from here. I really want to get this working, so any help would be awesome. Thx.
Comment #8
ljsoares commentedThanks for the work this worked great.
Comment #9
hasdf commentedWitch version of flickr should I use?
I am unable to patch 6.x-1.2 and 6.x-1.x-dev (following Error).
Can anybody post his working version?
Martin
Comment #10
narnua commentedm0rtel, I was on the same boat - you might want to check out this module:
http://drupal.org/project/flickrbrowser
Just make sure you're using jQuery 1.3 or above.
Comment #11
lolandese commentedThe project mentioned in #10 is an extension module of the Flickr module and seems to offer the requested feature. If the patch posted here adds anything to the Flickr Browser module, feel free to open an issue there to avoid module duplication.
Closing this issue here. Thanks.
Comment #13
lolandese commentedTo include a link to the Flickr Browser module on the Flickr project page once a D7 version is available on D.O. and tested.
Thanks.
Comment #14
lolandese commentedComment #15
lolandese commentedFive years after this is still a good idea, but as we only do critical bug fixed on D6 now (see #2367755: D6 maintenance), I'll tie this issue to D7, for which it is also relevant.
Most logical seems to create a sub-module or independent module based on the patch above and/or https://github.com/freeform/flickrbrowser.git (D7 version of https://www.drupal.org/project/flickrbrowser).
Thanks.
Comment #16
lolandese commentedComment #17
lolandese commentedComment #18
lolandese commented