<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<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">
	<channel>
		<title>Support Forum - Tag: tdo - Recent Posts</title>
		<link>http://www.kriesi.at/support/tags/tdo</link>
		<description>Support Forum - Tag: tdo - Recent Posts</description>
		<language>en-US</language>
		<pubDate>Thu, 23 May 2013 19:34:34 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.kriesi.at/support/search.php</link>
		</textInput>
		<atom:link href="http://www.kriesi.at/support/rss/tags/tdo" rel="self" type="application/rss+xml" />

		<item>
			<title>tap-tap on "tdo mini form append to post code for images"</title>
			<link>http://www.kriesi.at/support/topic/tdo-mini-form-append-to-post-code-for-images#post-16931</link>
			<pubDate>Wed, 13 Apr 2011 11:27:11 +0000</pubDate>
			<dc:creator>tap-tap</dc:creator>
			<guid isPermaLink="false">16931@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Ofcourse, thank You for the info...
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "tdo mini form append to post code for images"</title>
			<link>http://www.kriesi.at/support/topic/tdo-mini-form-append-to-post-code-for-images#post-16888</link>
			<pubDate>Wed, 13 Apr 2011 05:32:50 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">16888@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey,&#60;br /&#62;
basically you must modify kriesi_post_thumb.php ( located in framework &#38;gt; helper_function folder ). The preview images are retrieved by following code:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;//get the full size image as well as the resized. if the url is the same then there was no resize and we need to use timthumb
		$image_src = wp_get_attachment_image_src($thumbnail_id, $option[&#38;#39;size&#38;#39;][0]);
		$image_src2 = wp_get_attachment_image_src($thumbnail_id, NULL);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;However I can't help you with the modification because it may take some time and is beyond the scope of this support forum.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tap-tap on "tdo mini form append to post code for images"</title>
			<link>http://www.kriesi.at/support/topic/tdo-mini-form-append-to-post-code-for-images#post-16833</link>
			<pubDate>Tue, 12 Apr 2011 14:04:53 +0000</pubDate>
			<dc:creator>tap-tap</dc:creator>
			<guid isPermaLink="false">16833@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;I've found this code to be working for me which takes attachment (image) and puts it in the post :&#60;/p&#62;
&#60;p&#62;&#38;lt;?php&#60;br /&#62;
$args = array(&#60;br /&#62;
	'order'          =&#38;gt; 'ASC',&#60;br /&#62;
	'post_type'      =&#38;gt; 'attachment',&#60;br /&#62;
	'post_parent'    =&#38;gt; $post-&#38;gt;ID,&#60;br /&#62;
	'post_mime_type' =&#38;gt; 'image',&#60;br /&#62;
	'post_status'    =&#38;gt; null,&#60;br /&#62;
	'numberposts'    =&#38;gt; -1,&#60;br /&#62;
);&#60;br /&#62;
$attachments = get_posts($args);&#60;br /&#62;
if ($attachments) {&#60;br /&#62;
	foreach ($attachments as $attachment) {&#60;br /&#62;
		echo apply_filters('the_title', $attachment-&#38;gt;post_title);&#60;br /&#62;
		echo wp_get_attachment_link($attachment-&#38;gt;ID, 'thumbnail', false, false);&#60;br /&#62;
	}&#60;br /&#62;
}&#60;br /&#62;
?&#38;gt;&#60;/p&#62;
&#60;p&#62;BUT:&#60;br /&#62;
Now I have the image shown in the post when I attach it to the form, but Now I don't have a preview in the home page of that image attachment. I'm also using a plugin auto post thumbnail, so I'm confused. &#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://img831.imageshack.us/i/iamge.jpg/&#34; rel=&#34;nofollow&#34;&#62;http://img831.imageshack.us/i/iamge.jpg/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Please help :) Cheers!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tap-tap on "tdo mini form append to post code for images"</title>
			<link>http://www.kriesi.at/support/topic/tdo-mini-form-append-to-post-code-for-images#post-16801</link>
			<pubDate>Mon, 11 Apr 2011 22:46:42 +0000</pubDate>
			<dc:creator>tap-tap</dc:creator>
			<guid isPermaLink="false">16801@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Guys I have a question I hope You can help:&#60;/p&#62;
&#60;p&#62;I'm using append to content in TDO mini form plugin with the code from (MEMBER: crazywp) that displays all the images from every post. I would like to modify it but I am poor in php to make the code grab only the attachments from the post the submitter has published, and not every attachment from every post in the blog: &#60;/p&#62;
&#60;p&#62;Thank You in advance :)&#60;/p&#62;
&#60;p&#62;current code:&#60;/p&#62;
&#60;p&#62;&#38;lt;?php&#60;br /&#62;
$attachments = get_children( array('post_parent' =&#38;gt; get_the_ID(), 'post_type' =&#38;gt; 'attachment', 'post_mime_type' =&#38;gt; 'image') );&#60;br /&#62;
foreach ( $attachments as $attachment_id =&#38;gt; $attachment ) {&#60;br /&#62;
echo '&#38;lt;div style=&#34;float:left;margin:0px 5px 0px 0px;background:#eeeeee;border:1px solid #bbb;padding:5px;&#34; &#38;gt;';&#60;br /&#62;
echo ' ' . wp_get_attachment_link( $attachment_id ) . '';&#60;br /&#62;
echo '&#38;lt;/div&#38;gt;';&#60;br /&#62;
} ?&#38;gt;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
