<?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: Display All Images Attached To A Post Without A Plugin</title>
	<atom:link href="http://return-true.com/2010/02/display-all-images-attached-to-a-post-without-a-plugin/feed/" rel="self" type="application/rss+xml" />
	<link>http://return-true.com/2010/02/display-all-images-attached-to-a-post-without-a-plugin/</link>
	<description>Coding Tutorials, hints &#38; tips in PHP, jQuery, CSS &#38; HTML</description>
	<lastBuildDate>Tue, 07 Sep 2010 01:40:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Paul Robinson</title>
		<link>http://return-true.com/2010/02/display-all-images-attached-to-a-post-without-a-plugin/comment-page-1/#comment-18205</link>
		<dc:creator>Paul Robinson</dc:creator>
		<pubDate>Wed, 04 Aug 2010 07:20:42 +0000</pubDate>
		<guid isPermaLink="false">http://return-true.com/?p=1623#comment-18205</guid>
		<description>No problem, glad it worked &amp; glad I could help you out. ;)</description>
		<content:encoded><![CDATA[<p>No problem, glad it worked &#038; glad I could help you out. <img src='http://return-true.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ross104</title>
		<link>http://return-true.com/2010/02/display-all-images-attached-to-a-post-without-a-plugin/comment-page-1/#comment-18203</link>
		<dc:creator>ross104</dc:creator>
		<pubDate>Wed, 04 Aug 2010 06:45:42 +0000</pubDate>
		<guid isPermaLink="false">http://return-true.com/?p=1623#comment-18203</guid>
		<description>Works awesome!

Thanx again!!!</description>
		<content:encoded><![CDATA[<p>Works awesome!</p>
<p>Thanx again!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Robinson</title>
		<link>http://return-true.com/2010/02/display-all-images-attached-to-a-post-without-a-plugin/comment-page-1/#comment-18193</link>
		<dc:creator>Paul Robinson</dc:creator>
		<pubDate>Tue, 03 Aug 2010 21:14:11 +0000</pubDate>
		<guid isPermaLink="false">http://return-true.com/?p=1623#comment-18193</guid>
		<description>For this to work the main image will always have to be the last one.

Add in this on line 8, that&#039;s before the &lt;code&gt;foreach&lt;/code&gt; starts:
[php]
$last = end($attachments);
[/php]
Then place the next part inbetween line 9 &amp; 10:
[php]
if($last-&gt;ID == $attachment-&gt;ID) {
    break;
}
[/php]
I&#039;m unable to test that at the minute, but I think it should work. Let me know if you get any errors &amp; I&#039;ll fix them asap.</description>
		<content:encoded><![CDATA[<p>For this to work the main image will always have to be the last one.</p>
<p>Add in this on line 8, that&#8217;s before the <code>foreach</code> starts:</p>
<pre class="brush: php;">
$last = end($attachments);
</pre>
<p>Then place the next part inbetween line 9 &#038; 10:</p>
<pre class="brush: php;">
if($last-&gt;ID == $attachment-&gt;ID) {
    break;
}
</pre>
<p>I&#8217;m unable to test that at the minute, but I think it should work. Let me know if you get any errors &#038; I&#8217;ll fix them asap.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ross104</title>
		<link>http://return-true.com/2010/02/display-all-images-attached-to-a-post-without-a-plugin/comment-page-1/#comment-18192</link>
		<dc:creator>ross104</dc:creator>
		<pubDate>Tue, 03 Aug 2010 20:45:24 +0000</pubDate>
		<guid isPermaLink="false">http://return-true.com/?p=1623#comment-18192</guid>
		<description>2nd question is solved ;)</description>
		<content:encoded><![CDATA[<p>2nd question is solved <img src='http://return-true.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ross104</title>
		<link>http://return-true.com/2010/02/display-all-images-attached-to-a-post-without-a-plugin/comment-page-1/#comment-18191</link>
		<dc:creator>ross104</dc:creator>
		<pubDate>Tue, 03 Aug 2010 20:27:46 +0000</pubDate>
		<guid isPermaLink="false">http://return-true.com/?p=1623#comment-18191</guid>
		<description>Thx a lot for a support!

Here&#039;s a test article - http://tusovka.in.ua/blog/games/lorem-ipsum/

So two questions:
1. Is it possible to modify Your script for avoiding of showing last image attached? Cause this image is the main image of the article...

2. Is it possible to make thumbnails not cropped to specified value &quot;&amp;w=92&amp;h=69&amp;&quot; and to make it resize proportionally. For example longer side = 180 px.?</description>
		<content:encoded><![CDATA[<p>Thx a lot for a support!</p>
<p>Here&#8217;s a test article &#8211; <a href="http://tusovka.in.ua/blog/games/lorem-ipsum/" rel="nofollow">http://tusovka.in.ua/blog/games/lorem-ipsum/</a></p>
<p>So two questions:<br />
1. Is it possible to modify Your script for avoiding of showing last image attached? Cause this image is the main image of the article&#8230;</p>
<p>2. Is it possible to make thumbnails not cropped to specified value &#8220;&amp;w=92&amp;h=69&amp;&#8221; and to make it resize proportionally. For example longer side = 180 px.?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Robinson</title>
		<link>http://return-true.com/2010/02/display-all-images-attached-to-a-post-without-a-plugin/comment-page-1/#comment-18190</link>
		<dc:creator>Paul Robinson</dc:creator>
		<pubDate>Tue, 03 Aug 2010 19:58:03 +0000</pubDate>
		<guid isPermaLink="false">http://return-true.com/?p=1623#comment-18190</guid>
		<description>Of course. Just throw any questions you have this way &amp; I&#039;ll try and answer them as best I can.</description>
		<content:encoded><![CDATA[<p>Of course. Just throw any questions you have this way &#038; I&#8217;ll try and answer them as best I can.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ross104</title>
		<link>http://return-true.com/2010/02/display-all-images-attached-to-a-post-without-a-plugin/comment-page-1/#comment-18188</link>
		<dc:creator>ross104</dc:creator>
		<pubDate>Tue, 03 Aug 2010 19:47:42 +0000</pubDate>
		<guid isPermaLink="false">http://return-true.com/?p=1623#comment-18188</guid>
		<description>Thanx a lot dear friend!!!!
It works for me now! 

Can I ask You one more question bout Your script tomorrow after Ill test some features?</description>
		<content:encoded><![CDATA[<p>Thanx a lot dear friend!!!!<br />
It works for me now! </p>
<p>Can I ask You one more question bout Your script tomorrow after Ill test some features?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ross104</title>
		<link>http://return-true.com/2010/02/display-all-images-attached-to-a-post-without-a-plugin/comment-page-1/#comment-18187</link>
		<dc:creator>ross104</dc:creator>
		<pubDate>Tue, 03 Aug 2010 19:37:52 +0000</pubDate>
		<guid isPermaLink="false">http://return-true.com/?p=1623#comment-18187</guid>
		<description>Quadruple checked path to thumb.php and found that it is missing :)
Ill try to find some thumb.php from other theme and put it in the place :)</description>
		<content:encoded><![CDATA[<p>Quadruple checked path to thumb.php and found that it is missing <img src='http://return-true.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Ill try to find some thumb.php from other theme and put it in the place <img src='http://return-true.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Robinson</title>
		<link>http://return-true.com/2010/02/display-all-images-attached-to-a-post-without-a-plugin/comment-page-1/#comment-18181</link>
		<dc:creator>Paul Robinson</dc:creator>
		<pubDate>Tue, 03 Aug 2010 16:25:41 +0000</pubDate>
		<guid isPermaLink="false">http://return-true.com/?p=1623#comment-18181</guid>
		<description>Hi,

The code seems to be working okay. The reason your images don&#039;t work is because your path looks like this:
[bash]
http://tusovka.in.ua/blog/wp-content/themes/alltuts/thumb.php?src=http://tusovka.in.ua/blog/wp-content/uploads/2010/08/9631704.jpg&amp;w=92&amp;h=69&amp;zc=1
[/bash]
The image url
[bash]
http://tusovka.in.ua/blog/wp-content/uploads/2010/08/9631704.jpg
[/bash]
Gets us to the image fine. However
[bash]
http://tusovka.in.ua/blog/wp-content/themes/alltuts/thumb.php
[/bash]
Gives a 404.

My advice would be to triple check the path to your thumb.php file as it seems to be incorrect.

Hope that helps.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>The code seems to be working okay. The reason your images don&#8217;t work is because your path looks like this:</p>
<pre class="brush: bash;">
<a href="http://tusovka.in.ua/blog/wp-content/themes/alltuts/thumb.php?src=http://tusovka.in.ua/blog/wp-content/uploads/2010/08/9631704.jpg&amp;w=92&amp;h=69&amp;zc=1" rel="nofollow">http://tusovka.in.ua/blog/wp-content/themes/alltuts/thumb.php?src=http://tusovka.in.ua/blog/wp-content/uploads/2010/08/9631704.jpg&amp;w=92&amp;h=69&amp;zc=1</a>
</pre>
<p>The image url</p>
<pre class="brush: bash;">
<a href="http://tusovka.in.ua/blog/wp-content/uploads/2010/08/9631704.jpg" rel="nofollow">http://tusovka.in.ua/blog/wp-content/uploads/2010/08/9631704.jpg</a>
</pre>
<p>Gets us to the image fine. However</p>
<pre class="brush: bash;">
<a href="http://tusovka.in.ua/blog/wp-content/themes/alltuts/thumb.php" rel="nofollow">http://tusovka.in.ua/blog/wp-content/themes/alltuts/thumb.php</a>
</pre>
<p>Gives a 404.</p>
<p>My advice would be to triple check the path to your thumb.php file as it seems to be incorrect.</p>
<p>Hope that helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ross104</title>
		<link>http://return-true.com/2010/02/display-all-images-attached-to-a-post-without-a-plugin/comment-page-1/#comment-18179</link>
		<dc:creator>ross104</dc:creator>
		<pubDate>Tue, 03 Aug 2010 14:26:11 +0000</pubDate>
		<guid isPermaLink="false">http://return-true.com/?p=1623#comment-18179</guid>
		<description>Hi! I used Your code to show images attached to a post, but it works not as it should be.

If You have some free minute - please take a look at result page to find out what Im doing wrong.

Test page - http://tusovka.in.ua/blog/games/11111111111/</description>
		<content:encoded><![CDATA[<p>Hi! I used Your code to show images attached to a post, but it works not as it should be.</p>
<p>If You have some free minute &#8211; please take a look at result page to find out what Im doing wrong.</p>
<p>Test page &#8211; <a href="http://tusovka.in.ua/blog/games/11111111111/" rel="nofollow">http://tusovka.in.ua/blog/games/11111111111/</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
