<?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 - Topic: Adding an image to the posts page</title>
		<link>http://www.kriesi.at/support/topic/adding-an-image-to-the-posts-page</link>
		<description>Support Forum - Topic: Adding an image to the posts page</description>
		<language>en-US</language>
		<pubDate>Fri, 24 May 2013 23:33:18 +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/topic/adding-an-image-to-the-posts-page" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Beard on "Adding an image to the posts page"</title>
			<link>http://www.kriesi.at/support/topic/adding-an-image-to-the-posts-page#post-29929</link>
			<pubDate>Thu, 20 Oct 2011 01:38:07 +0000</pubDate>
			<dc:creator>Chris Beard</dc:creator>
			<guid isPermaLink="false">29929@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Glad to see it worked out after all :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mcintosh101 on "Adding an image to the posts page"</title>
			<link>http://www.kriesi.at/support/topic/adding-an-image-to-the-posts-page#post-29756</link>
			<pubDate>Tue, 18 Oct 2011 20:23:56 +0000</pubDate>
			<dc:creator>mcintosh101</dc:creator>
			<guid isPermaLink="false">29756@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Oh, worked when I did that, wonder what I did wrong! &#60;/p&#62;
&#60;p&#62;Got there in the end haha, thanks so much for the help! :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Adding an image to the posts page"</title>
			<link>http://www.kriesi.at/support/topic/adding-an-image-to-the-posts-page#post-29375</link>
			<pubDate>Thu, 13 Oct 2011 05:40:27 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">29375@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Not sure why the mod didn't work for you - I've uploaded my archive.php code here: &#60;a href=&#34;http://pastebin.com/3cmqYfhR&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/3cmqYfhR&#60;/a&#62; and it works on my test server.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mcintosh101 on "Adding an image to the posts page"</title>
			<link>http://www.kriesi.at/support/topic/adding-an-image-to-the-posts-page#post-29325</link>
			<pubDate>Wed, 12 Oct 2011 14:02:33 +0000</pubDate>
			<dc:creator>mcintosh101</dc:creator>
			<guid isPermaLink="false">29325@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Any luck?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mcintosh101 on "Adding an image to the posts page"</title>
			<link>http://www.kriesi.at/support/topic/adding-an-image-to-the-posts-page#post-29165</link>
			<pubDate>Mon, 10 Oct 2011 14:48:32 +0000</pubDate>
			<dc:creator>mcintosh101</dc:creator>
			<guid isPermaLink="false">29165@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Sorry I fixed that by restoring it, just thought you should know at that point in case you was looking at it.&#60;/p&#62;
&#60;p&#62;Do you know why the posts are not showing images next to them still?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Adding an image to the posts page"</title>
			<link>http://www.kriesi.at/support/topic/adding-an-image-to-the-posts-page#post-28996</link>
			<pubDate>Sat, 08 Oct 2011 15:41:07 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">28996@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey,&#60;br /&#62;
I checked the php syntax and it's valid. What error message do you get?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mcintosh101 on "Adding an image to the posts page"</title>
			<link>http://www.kriesi.at/support/topic/adding-an-image-to-the-posts-page#post-28957</link>
			<pubDate>Fri, 07 Oct 2011 15:29:51 +0000</pubDate>
			<dc:creator>mcintosh101</dc:creator>
			<guid isPermaLink="false">28957@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Tried having a go but I broke the site haha - Don't know PHP.&#60;/p&#62;
&#60;p&#62;I restored the archive file although here is the code.&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;/p&#62;
&#60;p&#62;&#38;lt;?php&#60;br /&#62;
global $more, $k_options;&#60;br /&#62;
get_header();?&#38;gt;&#60;br /&#62;
&#38;lt;div id=&#34;main&#34;&#38;gt;&#60;/p&#62;
&#60;p&#62;	&#38;lt;div id=&#34;content&#34;&#38;gt;&#60;br /&#62;
	&#38;lt;h2&#38;gt;&#38;lt;?php /* If this is a category archive */ if (is_category()) { ?&#38;gt;&#60;br /&#62;
				Archive for &#38;lt;?php echo single_cat_title(); ?&#38;gt;&#60;/p&#62;
&#60;p&#62; 			  	&#38;lt;?php /* If this is a daily archive */ } elseif (is_day()) { ?&#38;gt;&#60;br /&#62;
				Archive for &#38;lt;?php the_time('F jS, Y'); ?&#38;gt;&#60;/p&#62;
&#60;p&#62;			 	&#38;lt;?php /* If this is a monthly archive */ } elseif (is_month()) { ?&#38;gt;&#60;br /&#62;
				Archive for &#38;lt;?php the_time('F, Y'); ?&#38;gt;&#60;/p&#62;
&#60;p&#62;				&#38;lt;?php /* If this is a yearly archive */ } elseif (is_year()) { ?&#38;gt;&#60;br /&#62;
				Archive for &#38;lt;?php the_time('Y'); ?&#38;gt;&#60;/p&#62;
&#60;p&#62;			  	&#38;lt;?php /* If this is a search */ } elseif (is_search()) { ?&#38;gt;&#60;br /&#62;
				Search Results&#60;/p&#62;
&#60;p&#62;			  	&#38;lt;?php /* If this is an author archive */ } elseif (is_author()) { ?&#38;gt;&#60;br /&#62;
				Author Archive&#60;/p&#62;
&#60;p&#62;				&#38;lt;?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) &#38;amp;&#38;amp; !empty($_GET['paged'])) { ?&#38;gt;&#60;br /&#62;
				Blog Archives&#60;br /&#62;
				&#38;lt;?php } ?&#38;gt;&#38;lt;/h2&#38;gt;&#60;/p&#62;
&#60;p&#62;			&#38;lt;?php&#60;br /&#62;
			if (have_posts()) :&#60;br /&#62;
			while (have_posts()) : the_post(); &#60;/p&#62;
&#60;p&#62;// check if we got a previe picture, and which one should be taken&#60;br /&#62;
				// (image resizing with &#34;tim thumb&#34; on? then we can take the big one and resize it)&#60;br /&#62;
				$preview_small = get_post_meta($post-&#38;gt;ID, &#34;_preview_small&#34;, true);&#60;br /&#62;
				$preview_medium = get_post_meta($post-&#38;gt;ID, &#34;_preview_medium&#34;, true);&#60;br /&#62;
				$preview_big = get_post_meta($post-&#38;gt;ID, &#34;_preview_big&#34;, true);&#60;/p&#62;
&#60;p&#62;				//defaults:&#60;br /&#62;
				$preview = $preview_medium;&#60;br /&#62;
				$link_url = $preview_big;&#60;br /&#62;
				$lightbox = 'singlepost';&#60;br /&#62;
				$link = true;&#60;br /&#62;
				//change if necessary:&#60;/p&#62;
&#60;p&#62;				// resizing? =&#38;gt; take next sized picture&#60;br /&#62;
				if ($k_option['general']['tim'] == &#34;1&#34; &#38;amp;&#38;amp; $preview_medium == &#34;&#34;)&#60;br /&#62;
				{&#60;br /&#62;
					$preview = $preview_big;&#60;br /&#62;
				} &#60;/p&#62;
&#60;p&#62;				// no bigpicture? =&#38;gt; no lightbox&#60;br /&#62;
				if ($preview_big == &#34;&#34;) { $lightbox = ''; $link = true; $link_url = get_permalink(); }&#60;br /&#62;
				// the kriesi_build_image function used here checks if the image should be resized.&#60;br /&#62;
				// the function is located in framework/helper_functions&#60;/p&#62;
&#60;p&#62;				$preview = kriesi_build_image(array('url'=&#38;gt;$preview,&#60;br /&#62;
													'height'=&#38;gt; '273',&#60;br /&#62;
													'width'=&#38;gt; '610',&#60;br /&#62;
													'lightbox'=&#38;gt;$lightbox,&#60;br /&#62;
													'link'=&#38;gt;$link,&#60;br /&#62;
													'link_url'=&#38;gt;$link_url&#60;br /&#62;
													));			&#60;/p&#62;
&#60;p&#62;			?&#38;gt;&#60;/p&#62;
&#60;p&#62;		&#38;lt;div class='entry blogentry'&#38;gt;&#60;/p&#62;
&#60;p&#62;			&#38;lt;h3&#38;gt;&#60;a&#62;&#34; rel=&#34;bookmark&#34; title=&#34;Permanent Link: &#38;lt;?php the_title(); ?&#38;gt;&#34;&#38;gt;&#38;lt;?php the_title(); ?&#38;gt;&#60;/a&#62;&#38;lt;/h3&#38;gt;&#60;br /&#62;
		&#38;lt;?php&#60;br /&#62;
		the_excerpt();  &#60;/p&#62;
&#60;p&#62;		?&#38;gt;&#60;br /&#62;
		&#60;a&#62;&#34; class=&#34;more-link&#34;&#38;gt;Read more&#60;/a&#62;&#60;br /&#62;
	&#38;lt;/div&#38;gt;&#38;lt;!--end entry--&#38;gt;&#60;br /&#62;
	&#38;lt;?php 	endwhile; &#60;/p&#62;
&#60;p&#62;				kriesi_pagination();&#60;br /&#62;
				else:&#60;br /&#62;
		?&#38;gt;&#60;br /&#62;
			&#38;lt;div class=&#34;entry&#34;&#38;gt;&#60;br /&#62;
			&#38;lt;h2&#38;gt;Nothing Found&#38;lt;/h2&#38;gt;&#60;br /&#62;
			&#38;lt;p&#38;gt;Sorry, no posts matched your criteria.&#38;lt;/p&#38;gt;&#60;br /&#62;
			&#38;lt;/div&#38;gt;&#60;br /&#62;
 	&#38;lt;?php&#60;br /&#62;
			endif;&#60;br /&#62;
	?&#38;gt;&#60;br /&#62;
&#38;lt;/div&#38;gt;&#38;lt;!-- end content --&#38;gt;&#60;/p&#62;
&#60;p&#62;&#38;lt;?php get_sidebar(); ?&#38;gt;&#60;/p&#62;
&#60;p&#62;&#38;lt;/div&#38;gt;&#38;lt;!--end main--&#38;gt;&#60;/p&#62;
&#60;p&#62;&#38;lt;?php get_footer();  ?&#38;gt;&#60;/p&#62;
&#60;p&#62;&#60;/code&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mcintosh101 on "Adding an image to the posts page"</title>
			<link>http://www.kriesi.at/support/topic/adding-an-image-to-the-posts-page#post-28953</link>
			<pubDate>Fri, 07 Oct 2011 13:56:22 +0000</pubDate>
			<dc:creator>mcintosh101</dc:creator>
			<guid isPermaLink="false">28953@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Yeah, just tried on my iPhone too, different browsers, different computer and flushed DNS through CMD :(
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Beard on "Adding an image to the posts page"</title>
			<link>http://www.kriesi.at/support/topic/adding-an-image-to-the-posts-page#post-28950</link>
			<pubDate>Fri, 07 Oct 2011 13:53:04 +0000</pubDate>
			<dc:creator>Chris Beard</dc:creator>
			<guid isPermaLink="false">28950@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey,&#60;br /&#62;
are you certain you've cleared your cache after applying Dude's code? It looks legit, though I haven't tested it.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mcintosh101 on "Adding an image to the posts page"</title>
			<link>http://www.kriesi.at/support/topic/adding-an-image-to-the-posts-page#post-28942</link>
			<pubDate>Fri, 07 Oct 2011 13:07:49 +0000</pubDate>
			<dc:creator>mcintosh101</dc:creator>
			<guid isPermaLink="false">28942@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Any other advice?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mcintosh101 on "Adding an image to the posts page"</title>
			<link>http://www.kriesi.at/support/topic/adding-an-image-to-the-posts-page#post-28928</link>
			<pubDate>Fri, 07 Oct 2011 09:03:08 +0000</pubDate>
			<dc:creator>mcintosh101</dc:creator>
			<guid isPermaLink="false">28928@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Its still the same :/
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Adding an image to the posts page"</title>
			<link>http://www.kriesi.at/support/topic/adding-an-image-to-the-posts-page#post-28652</link>
			<pubDate>Wed, 05 Oct 2011 07:56:00 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">28652@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey,&#60;br /&#62;
in archive.php replace following code lines:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;if (have_posts()) :
			while (have_posts()) : the_post(); ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;with:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;if (have_posts()) :
			while (have_posts()) : the_post(); 

// check if we got a previe picture, and which one should be taken
				// (image resizing with &#38;quot;tim thumb&#38;quot; on? then we can take the big one and resize it)
				$preview_small = get_post_meta($post-&#38;gt;ID, &#38;quot;_preview_small&#38;quot;, true);
				$preview_medium = get_post_meta($post-&#38;gt;ID, &#38;quot;_preview_medium&#38;quot;, true);
				$preview_big = get_post_meta($post-&#38;gt;ID, &#38;quot;_preview_big&#38;quot;, true);

				//defaults:
				$preview = $preview_medium;
				$link_url = $preview_big;
				$lightbox = &#38;#39;singlepost&#38;#39;;
				$link = true;
				//change if necessary:

				// resizing? =&#38;gt; take next sized picture
				if ($k_option[&#38;#39;general&#38;#39;][&#38;#39;tim&#38;#39;] == &#38;quot;1&#38;quot; &#38;amp;&#38;amp; $preview_medium == &#38;quot;&#38;quot;)
				{
					$preview = $preview_big;
				} 

				// no bigpicture? =&#38;gt; no lightbox
				if ($preview_big == &#38;quot;&#38;quot;) { $lightbox = &#38;#39;&#38;#39;; $link = true; $link_url = get_permalink(); }
				// the kriesi_build_image function used here checks if the image should be resized.
				// the function is located in framework/helper_functions

				$preview = kriesi_build_image(array(&#38;#39;url&#38;#39;=&#38;gt;$preview,
													&#38;#39;height&#38;#39;=&#38;gt; &#38;#39;273&#38;#39;,
													&#38;#39;width&#38;#39;=&#38;gt; &#38;#39;610&#38;#39;,
													&#38;#39;lightbox&#38;#39;=&#38;gt;$lightbox,
													&#38;#39;link&#38;#39;=&#38;gt;$link,
													&#38;#39;link_url&#38;#39;=&#38;gt;$link_url
													));			

			?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>mcintosh101 on "Adding an image to the posts page"</title>
			<link>http://www.kriesi.at/support/topic/adding-an-image-to-the-posts-page#post-28622</link>
			<pubDate>Tue, 04 Oct 2011 21:42:21 +0000</pubDate>
			<dc:creator>mcintosh101</dc:creator>
			<guid isPermaLink="false">28622@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Is it possible?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mcintosh101 on "Adding an image to the posts page"</title>
			<link>http://www.kriesi.at/support/topic/adding-an-image-to-the-posts-page#post-28568</link>
			<pubDate>Tue, 04 Oct 2011 10:46:47 +0000</pubDate>
			<dc:creator>mcintosh101</dc:creator>
			<guid isPermaLink="false">28568@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;How do I make the small preview picture that I have created appear on the posts page?&#60;/p&#62;
&#60;p&#62;For example: &#60;a href=&#34;http://majormultimediauk.com/stylerevo/?cat=3&#34; rel=&#34;nofollow&#34;&#62;http://majormultimediauk.com/stylerevo/?cat=3&#60;/a&#62; I want a tiny image to appear to the left of the posts.&#60;/p&#62;
&#60;p&#62;Thank you! Alex.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
