Just put together this module heavily based on the video_cck_feedapi_mapper, but it essentially does the same thing as that mapper only it will allow you to map a flickr feed to an emfield image cck field.

This has just been tested a few times using feeds from flickr and picasa (worked perfectly for picasa, but i think there is an issue with the picasa regular expression in the emfield module's picassa.inc because it isn't parsing the "original url" as being from picasa, though it is getting inserted into the image field as can be seen in the screenshot of my content_type_photo table).

NOTE: The .txt file is actually the mapper.inc file, just rename the extension to .inc (I couldn't upload a .inc file to the commet, sorry)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

BlakeLucchesi’s picture

Status: Active » Needs review
nbchip’s picture

Category: feature » bug
FileSize
10.79 KB

Sometimes it creates empty nodes... See the attach
and when i remove this evaluation valid_url($feed_element) it works fine

Firetracker’s picture

This should be included in in Feedapi_mapper distribution....

Krummrey’s picture

Had the same issue on empty nodes.
The feed would update but only empty nodes were created.

nbchip’s picture

try in line 31 changing
//if (is_string($feed_element) && valid_url($feed_element)) {
to
if (is_string($feed_element)) {

im not sure why , but for me it helped.

mtndan’s picture

I'm not able to get this working on the Drupal 6 version - any ideas? Thanks in advance.

Wouter Van den Bosch’s picture

Just to a brief thumbs up on this great little addittion. Was looking for this and you made my work a whole lot easier ! Thanks !

alex_b’s picture

Can we move this issue to 6?

alex_b’s picture

Status: Needs review » Needs work

Code needs work. Response to #5

spiffyd’s picture

Version: 5.x-1.0-beta6 » 6.x-1.x-dev
Category: bug » task

Anyone working on this?

alex_b’s picture

Title: Emfield Flickr Image Mapper » Mapper for Emfield Flickr Image
calte’s picture

I'm looking forward to this!