<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Drupal: Tutorial for Feeds Image Grabber</title>
	<atom:link href="http://publicmind.in/blog/tutorial-for-feeds-image-grabber/feed/" rel="self" type="application/rss+xml" />
	<link>http://publicmind.in/blog/tutorial-for-feeds-image-grabber/</link>
	<description>Simple and Sophisticated</description>
	<lastBuildDate>Sun, 05 Sep 2010 15:33:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Nitin</title>
		<link>http://publicmind.in/blog/tutorial-for-feeds-image-grabber/comment-page-1/#comment-1026</link>
		<dc:creator>Nitin</dc:creator>
		<pubDate>Fri, 21 May 2010 15:34:19 +0000</pubDate>
		<guid isPermaLink="false">http://publicmind.in/blog/?p=529#comment-1026</guid>
		<description>see http://drupal.org/node/805622#comment-2996366

Cheers,</description>
		<content:encoded><![CDATA[<p>see <a href="http://drupal.org/node/805622#comment-2996366" rel="nofollow">http://drupal.org/node/805622#comment-2996366</a></p>
<p>Cheers,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Spark_man</title>
		<link>http://publicmind.in/blog/tutorial-for-feeds-image-grabber/comment-page-1/#comment-1025</link>
		<dc:creator>Spark_man</dc:creator>
		<pubDate>Fri, 21 May 2010 14:35:24 +0000</pubDate>
		<guid isPermaLink="false">http://publicmind.in/blog/?p=529#comment-1025</guid>
		<description>I installed your module and have followed the directions up to the bit about the mapping but &quot;photo (FIG)&quot; isn&#039;t showing up in the target list?  Any ideas?</description>
		<content:encoded><![CDATA[<p>I installed your module and have followed the directions up to the bit about the mapping but &#8220;photo (FIG)&#8221; isn&#8217;t showing up in the target list?  Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://publicmind.in/blog/tutorial-for-feeds-image-grabber/comment-page-1/#comment-940</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Wed, 28 Apr 2010 07:14:23 +0000</pubDate>
		<guid isPermaLink="false">http://publicmind.in/blog/?p=529#comment-940</guid>
		<description>Looks like we&#039;re talking to each other in two threads now :)
I created that issue. Thanks for the info. I&#039;ll continue there.</description>
		<content:encoded><![CDATA[<p>Looks like we&#8217;re talking to each other in two threads now <img src='http://publicmind.in/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
I created that issue. Thanks for the info. I&#8217;ll continue there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nitin</title>
		<link>http://publicmind.in/blog/tutorial-for-feeds-image-grabber/comment-page-1/#comment-939</link>
		<dc:creator>Nitin</dc:creator>
		<pubDate>Wed, 28 Apr 2010 06:58:05 +0000</pubDate>
		<guid isPermaLink="false">http://publicmind.in/blog/?p=529#comment-939</guid>
		<description>I agree that most of the feeds come with images inserted inside the body of the post or within an additional tag in the XML feed. Achieving the former, as you demonstrated, is relatively easy but mapping it to filefield/imagefield would require some extra efforts. I remember FeedAPI Scrapper used to do this with FeedAPI which, unfortunately, hasn&#039;t been ported for Feeds yet. It scraped the body of the feed-item for any content recognized by a PREG or REGEX and mapped it to user-defined fields. Achieving the latter, according to me, would require a custom parser which can look for those extra tags in the XML feed.

Also, see http://drupal.org/node/783694#comment-2900110

Cheers,</description>
		<content:encoded><![CDATA[<p>I agree that most of the feeds come with images inserted inside the body of the post or within an additional tag in the XML feed. Achieving the former, as you demonstrated, is relatively easy but mapping it to filefield/imagefield would require some extra efforts. I remember FeedAPI Scrapper used to do this with FeedAPI which, unfortunately, hasn&#8217;t been ported for Feeds yet. It scraped the body of the feed-item for any content recognized by a PREG or REGEX and mapped it to user-defined fields. Achieving the latter, according to me, would require a custom parser which can look for those extra tags in the XML feed.</p>
<p>Also, see <a href="http://drupal.org/node/783694#comment-2900110" rel="nofollow">http://drupal.org/node/783694#comment-2900110</a></p>
<p>Cheers,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://publicmind.in/blog/tutorial-for-feeds-image-grabber/comment-page-1/#comment-937</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Wed, 28 Apr 2010 02:58:55 +0000</pubDate>
		<guid isPermaLink="false">http://publicmind.in/blog/?p=529#comment-937</guid>
		<description>Agreed pretty awesome, but I&#039;m looking to snag images right from the body of posts. Most feeds I&#039;ve encountered we&#039;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&#039;m using it for Drupal, and &lt;strong&gt;unfortunately I can&#039;t post the real PREG here.&lt;/strong&gt;

function retrofit_custom_catch_image($string) {
  $first_img = &#039;&#039;;
  $output= preg_match_all(&#039; GO GET THE REAL PREG FROM THE POST &#039;, $string, $matches);
  $first_img = $matches[1][0];
  if(empty($first_img)){ //Defines a default image
    $first_img = &quot;/images/default.jpg&quot;;
  }
  return $first_img;
}


Hope I just made your day!</description>
		<content:encoded><![CDATA[<p>Agreed pretty awesome, but I&#8217;m looking to snag images right from the body of posts. Most feeds I&#8217;ve encountered we&#8217;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.</p>
<p>Here is some code I used to catch the first image in a post body.<br />
Altered from this post intended for WordPress <a href="http://www.wprecipes.com/how-to-get-the-first-image-from-the-post-and-display-it" rel="nofollow">http://www.wprecipes.com/how-to-get-the-first-image-from-the-post-and-display-it</a><br />
I&#8217;m using it for Drupal, and <strong>unfortunately I can&#8217;t post the real PREG here.</strong></p>
<p>function retrofit_custom_catch_image($string) {<br />
  $first_img = &#8221;;<br />
  $output= preg_match_all(&#8216; GO GET THE REAL PREG FROM THE POST &#8216;, $string, $matches);<br />
  $first_img = $matches[1][0];<br />
  if(empty($first_img)){ //Defines a default image<br />
    $first_img = &#8220;/images/default.jpg&#8221;;<br />
  }<br />
  return $first_img;<br />
}</p>
<p>Hope I just made your day!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nitin</title>
		<link>http://publicmind.in/blog/tutorial-for-feeds-image-grabber/comment-page-1/#comment-867</link>
		<dc:creator>Nitin</dc:creator>
		<pubDate>Sun, 28 Mar 2010 06:05:44 +0000</pubDate>
		<guid isPermaLink="false">http://publicmind.in/blog/?p=529#comment-867</guid>
		<description>7.x of Feeds Image Grabber (FIG) just contains the common functions for parsing web pages, scraping images, saving files but it hasn&#039;t been integrated with Feeds (as no 7.x exists for Feeds yet). :)</description>
		<content:encoded><![CDATA[<p>7.x of Feeds Image Grabber (FIG) just contains the common functions for parsing web pages, scraping images, saving files but it hasn&#8217;t been integrated with Feeds (as no 7.x exists for Feeds yet). <img src='http://publicmind.in/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: day trader</title>
		<link>http://publicmind.in/blog/tutorial-for-feeds-image-grabber/comment-page-1/#comment-853</link>
		<dc:creator>day trader</dc:creator>
		<pubDate>Thu, 25 Mar 2010 05:10:07 +0000</pubDate>
		<guid isPermaLink="false">http://publicmind.in/blog/?p=529#comment-853</guid>
		<description>good job, but I have a question is that the feeds didn&#039;t released 7.X,but your plugin(feed image grabber)have been released 7.X</description>
		<content:encoded><![CDATA[<p>good job, but I have a question is that the feeds didn&#8217;t released 7.X,but your plugin(feed image grabber)have been released 7.X</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tutorial for FeedAPI Image Grabber &#124; Public Mind</title>
		<link>http://publicmind.in/blog/tutorial-for-feeds-image-grabber/comment-page-1/#comment-723</link>
		<dc:creator>Tutorial for FeedAPI Image Grabber &#124; Public Mind</dc:creator>
		<pubDate>Mon, 08 Mar 2010 08:19:33 +0000</pubDate>
		<guid isPermaLink="false">http://publicmind.in/blog/?p=529#comment-723</guid>
		<description>[...] Tutorial for Feeds Image Grabber (FIG) published. (6 march 2010) [...]</description>
		<content:encoded><![CDATA[<p>[...] Tutorial for Feeds Image Grabber (FIG) published. (6 march 2010) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Drupal: Feeds Image Grabber &#124; Public Mind</title>
		<link>http://publicmind.in/blog/tutorial-for-feeds-image-grabber/comment-page-1/#comment-708</link>
		<dc:creator>Drupal: Feeds Image Grabber &#124; Public Mind</dc:creator>
		<pubDate>Sat, 06 Mar 2010 04:48:12 +0000</pubDate>
		<guid isPermaLink="false">http://publicmind.in/blog/?p=529#comment-708</guid>
		<description>[...] Tutorials: http://publicmind.in/blog/tutorial-for-feeds-image-grabber [...]</description>
		<content:encoded><![CDATA[<p>[...] Tutorials: <a href="http://publicmind.in/blog/tutorial-for-feeds-image-grabber" rel="nofollow">http://publicmind.in/blog/tutorial-for-feeds-image-grabber</a> [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
