9 responses to “Drupal: Tutorial for Feeds Image Grabber”

  1. Drupal: Feeds Image Grabber | Public Mind
  2. Tutorial for FeedAPI Image Grabber | Public Mind

    [...] Tutorial for Feeds Image Grabber (FIG) published. (6 march 2010) [...]

  3. day trader

    good job, but I have a question is that the feeds didn’t released 7.X,but your plugin(feed image grabber)have been released 7.X

  4. Josh

    Agreed pretty awesome, but I’m looking to snag images right from the body of posts. Most feeds I’ve encountered we’re so nice about placing an image item right in them, though this module would be great for flickr feeds and even getting avatar images into a field for good display.

    Here is some code I used to catch the first image in a post body.
    Altered from this post intended for WordPress http://www.wprecipes.com/how-to-get-the-first-image-from-the-post-and-display-it
    I’m using it for Drupal, and unfortunately I can’t post the real PREG here.

    function retrofit_custom_catch_image($string) {
    $first_img = ”;
    $output= preg_match_all(‘ GO GET THE REAL PREG FROM THE POST ‘, $string, $matches);
    $first_img = $matches[1][0];
    if(empty($first_img)){ //Defines a default image
    $first_img = “/images/default.jpg”;
    }
    return $first_img;
    }

    Hope I just made your day!

  5. Spark_man

    I installed your module and have followed the directions up to the bit about the mapping but “photo (FIG)” isn’t showing up in the target list? Any ideas?

Leave a Reply

Open Source Projects

My Shared Items