the flickr provider for emimage does not support thumbnails. the following code needs to be added to providers/emimage/flickr.inc
function emimage_flickr_thumbnail($field, $item, $formatter, $node, $width, $height) {
$xml = emimage_flickr_request('flickr.photos.getInfo', array('photo_id' => $item['value']));
if ($xml['stat'] != 'fail') {
$image = 'http://farm'. $xml['photo']['farm'].
'.static.flickr.com/'. $xml['photo']['server'].
'/'. $xml['photo']['id'] .'_'. $xml['photo']['secret'].
'_m.jpg';
} else {
drupal_set_message($xml['message']);
}
return $image;
}
Comments
Comment #1
cangeceiro commentedI believe that snippet above is a fix i had posted a while back towards the original emfield module. attached is an updated patch that better solves the problem.
Comment #2
cangeceiro commentedchanging status to needs review.
Comment #3
aaron commentedgot that, sorry about the issue -- hadn't kept this module in synch...
Comment #5
cangeceiro commentedcan my patch in #1 get committed to HEAD? it's a very simple patch and this problem comes up quite often.
Comment #6
aaron commentedThis was committed some time ago, at http://drupal.org/cvs?commit=452046 but I still need to create a release with that fix. Will do so shortly. Also please note that active development for this module is in the DRUPAL-6--1 branch, not in HEAD.
Thanks!