<?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 &#8211; Getting the image path of a CCK field</title> <atom:link href="http://daipratt.co.uk/drupal-getting-the-image-path-of-a-cck-field/feed/" rel="self" type="application/rss+xml" /><link>http://daipratt.co.uk/drupal-getting-the-image-path-of-a-cck-field/</link> <description>Concerned about Website Construction &#38; SEO</description> <lastBuildDate>Sun, 06 May 2012 04:35:32 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>By: Mario</title><link>http://daipratt.co.uk/drupal-getting-the-image-path-of-a-cck-field/comment-page-1/#comment-24826</link> <dc:creator>Mario</dc:creator> <pubDate>Fri, 02 Mar 2012 10:47:05 +0000</pubDate> <guid
isPermaLink="false">http://daipratt.co.uk/?p=1027#comment-24826</guid> <description>Thanks this is exactly what I needed</description> <content:encoded><![CDATA[<p>Thanks this is exactly what I needed</p> ]]></content:encoded> </item> <item><title>By: Man</title><link>http://daipratt.co.uk/drupal-getting-the-image-path-of-a-cck-field/comment-page-1/#comment-21705</link> <dc:creator>Man</dc:creator> <pubDate>Fri, 13 Jan 2012 10:11:30 +0000</pubDate> <guid
isPermaLink="false">http://daipratt.co.uk/?p=1027#comment-21705</guid> <description>this is exactly what I needed!</description> <content:encoded><![CDATA[<p>this is exactly what I needed!</p> ]]></content:encoded> </item> <item><title>By: User</title><link>http://daipratt.co.uk/drupal-getting-the-image-path-of-a-cck-field/comment-page-1/#comment-21704</link> <dc:creator>User</dc:creator> <pubDate>Fri, 13 Jan 2012 10:09:57 +0000</pubDate> <guid
isPermaLink="false">http://daipratt.co.uk/?p=1027#comment-21704</guid> <description>Thanks</description> <content:encoded><![CDATA[<p>Thanks</p> ]]></content:encoded> </item> <item><title>By: Drinkdesign</title><link>http://daipratt.co.uk/drupal-getting-the-image-path-of-a-cck-field/comment-page-1/#comment-7012</link> <dc:creator>Drinkdesign</dc:creator> <pubDate>Mon, 07 Feb 2011 05:21:23 +0000</pubDate> <guid
isPermaLink="false">http://daipratt.co.uk/?p=1027#comment-7012</guid> <description>Sorry code is:
field_cp_logo_fid);
$filepath = $file[&#039;filepath&#039;];
$img = theme(‘imagecache’, ‘jobsearch_company’, $field_filefield-name[3][&#039;filepath&#039;]);
print $img;
?&gt;</description> <content:encoded><![CDATA[<p>Sorry code is:</p><p>field_cp_logo_fid);<br
/> $filepath = $file['filepath'];<br
/> $img = theme(‘imagecache’, ‘jobsearch_company’, $field_filefield-name[3]['filepath']);<br
/> print $img;<br
/> ?&gt;</p> ]]></content:encoded> </item> <item><title>By: Drinkdesign</title><link>http://daipratt.co.uk/drupal-getting-the-image-path-of-a-cck-field/comment-page-1/#comment-7011</link> <dc:creator>Drinkdesign</dc:creator> <pubDate>Mon, 07 Feb 2011 05:20:08 +0000</pubDate> <guid
isPermaLink="false">http://daipratt.co.uk/?p=1027#comment-7011</guid> <description>Thanks David for wonderful code, but I have problem here. When I add following code to CustomField: PHP code to my view , it shows an error.
Parse error: syntax error, unexpected &#039;[&#039; in /dev_users/dev_jrm/public_html/sites/all/modules/views_customfield/includes/views_customfield_handler_field_phpcode.inc(118) : eval()&#039;d code on line 4
My code is as below:
field_cp_logo_fid);
$filepath = $file[&#039;filepath&#039;];
$img = theme(‘imagecache’, ‘jobsearch_company’, $field_filefield-name[3][&#039;filepath&#039;]);
print $img;
?&gt;</description> <content:encoded><![CDATA[<p>Thanks David for wonderful code, but I have problem here. When I add following code to CustomField: PHP code to my view , it shows an error.<br
/> Parse error: syntax error, unexpected &#8216;[' in /dev_users/dev_jrm/public_html/sites/all/modules/views_customfield/includes/views_customfield_handler_field_phpcode.inc(118) : eval()'d code on line 4</p><p>My code is as below:</p><p>field_cp_logo_fid);<br
/> $filepath = $file['filepath'];<br
/> $img = theme(‘imagecache’, ‘jobsearch_company’, $field_filefield-name[3]['filepath']);<br
/> print $img;<br
/> ?&gt;</p> ]]></content:encoded> </item> <item><title>By: Chris</title><link>http://daipratt.co.uk/drupal-getting-the-image-path-of-a-cck-field/comment-page-1/#comment-6593</link> <dc:creator>Chris</dc:creator> <pubDate>Mon, 17 Jan 2011 22:11:04 +0000</pubDate> <guid
isPermaLink="false">http://daipratt.co.uk/?p=1027#comment-6593</guid> <description>Thanks, this is exactly what I needed!</description> <content:encoded><![CDATA[<p>Thanks, this is exactly what I needed!</p> ]]></content:encoded> </item> <item><title>By: Scott</title><link>http://daipratt.co.uk/drupal-getting-the-image-path-of-a-cck-field/comment-page-1/#comment-6049</link> <dc:creator>Scott</dc:creator> <pubDate>Sun, 12 Dec 2010 21:39:39 +0000</pubDate> <guid
isPermaLink="false">http://daipratt.co.uk/?p=1027#comment-6049</guid> <description>Thanks. I think you may have saved me hours of work.</description> <content:encoded><![CDATA[<p>Thanks. I think you may have saved me hours of work.</p> ]]></content:encoded> </item> <item><title>By: cheatah</title><link>http://daipratt.co.uk/drupal-getting-the-image-path-of-a-cck-field/comment-page-1/#comment-4865</link> <dc:creator>cheatah</dc:creator> <pubDate>Thu, 19 Aug 2010 20:17:03 +0000</pubDate> <guid
isPermaLink="false">http://daipratt.co.uk/?p=1027#comment-4865</guid> <description>Thank you so much for this, this was super helpful, I was pulling my hair out.</description> <content:encoded><![CDATA[<p>Thank you so much for this, this was super helpful, I was pulling my hair out.</p> ]]></content:encoded> </item> <item><title>By: Brendan</title><link>http://daipratt.co.uk/drupal-getting-the-image-path-of-a-cck-field/comment-page-1/#comment-4049</link> <dc:creator>Brendan</dc:creator> <pubDate>Sun, 16 May 2010 16:24:07 +0000</pubDate> <guid
isPermaLink="false">http://daipratt.co.uk/?p=1027#comment-4049</guid> <description>Thanks David, and thanks Sasha for a great tip - this has helped me immensely this afternoon.</description> <content:encoded><![CDATA[<p>Thanks David, and thanks Sasha for a great tip &#8211; this has helped me immensely this afternoon.</p> ]]></content:encoded> </item> <item><title>By: Sasha</title><link>http://daipratt.co.uk/drupal-getting-the-image-path-of-a-cck-field/comment-page-1/#comment-931</link> <dc:creator>Sasha</dc:creator> <pubDate>Mon, 29 Mar 2010 08:00:04 +0000</pubDate> <guid
isPermaLink="false">http://daipratt.co.uk/?p=1027#comment-931</guid> <description>Thanks a lot for this! Just in case if someone need to format it with imagecache here is the solution:
$img = theme(&#039;imagecache&#039;, &#039;imagecahe-preset-name&#039;, $field_filefield-name[0][&#039;filepath&#039;]);
print $img;</description> <content:encoded><![CDATA[<p>Thanks a lot for this! Just in case if someone need to format it with imagecache here is the solution:</p><p>$img = theme(&#8216;imagecache&#8217;, &#8216;imagecahe-preset-name&#8217;, $field_filefield-name[0]['filepath']);<br
/> print $img;</p> ]]></content:encoded> </item> </channel> </rss>
