<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1" -->
<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>Wordpress and Webdesign Forum go41 &#187; Topic: change the custom field name and use full path for images in Arthemia</title>
		<link>http://forum.go41.de/topic/change-the-custom-field-name-and-use-full-path-for-images-in-arthemia</link>
		<description>How To, tips, php and css code for your WordPress site</description>
		<language>en-US</language>
		<pubDate>Fri, 10 Feb 2012 23:10:03 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
				<atom:link href="http://forum.go41.de/rss/topic/change-the-custom-field-name-and-use-full-path-for-images-in-arthemia" rel="self" type="application/rss+xml" />

		<item>
			<title>Joern on "change the custom field name and use full path for images in Arthemia"</title>
			<link>http://forum.go41.de/topic/change-the-custom-field-name-and-use-full-path-for-images-in-arthemia#post-112</link>
			<pubDate>Mon, 04 Jan 2010 09:38:35 +0000</pubDate>
			<dc:creator>Joern</dc:creator>
			<guid isPermaLink="false">112@http://forum.go41.de/</guid>
			<description><![CDATA[<p>The question is that the thumbnails on the current theme use the full path (<a href="http://www.domain.com/wp-content/uploads/" rel="nofollow">http://www.domain.com/wp-content/uploads/</a>) instead of the path that Arthemia uses (wp-content/uploads/etc...). Additionally, the field name for the thumbnails in the existing theme is "thumbnail".</p>
<p>You can edit theme files to change the custom field name and to use full paths to accept this values!</p>
<p>There are two things to change in Arthemias index.php and also in archive.php.</p>
<p>In this two files the theme is using timthumb to resize images drawn from a custom field titled 'Image'</p>
<p>find all lines containing<br />
<pre><code>$values = get_post_custom_values(&#34;Image&#34;)</code></pre>
<p>and replace with<br />
<pre><code>$values = get_post_custom_values(&#34;thumbnail&#34;)</code></pre>
<p>now the theme will draw the values of the thumbnail customfield</p>
<p>BUT STOP! You are not yet done, because the theme inserts a "/" in front of the image path, you can't use full paths with this as it will look like ...timthumb.php?src=/http://ww....</p>
<p>So you have to remove this slash in all lines looking first like:<br />
<pre><code>cripts/timthumb.php?src=/&#60;?php</code></pre>
<p>to look like this:<br />
<pre><code>cripts/timthumb.php?src=&#60;?php</code></pre>
<p>ie: just remove "/" after "timthumb.php?src="</p>
<p>it's worth a try!</p>
<p>Another hint:<br />
using the latest timthumb.php (version 1.11) from here:<br />
<a href="http://timthumb.googlecode.com/svn/trunk/" rel="nofollow">http://timthumb.googlecode.com/svn/trunk/</a><br />
will make it possible to use external images to be cached and resized!<br />
To make this work please create a new folder after arthemia/scripts with the name "temp"<br />
There is now the "arthemia/scripts/cache" folder and you need beside this the "arthemia/scripts/temp" folder set to 755 or 777</p>
<p>See samples here: <a href="http://themes.go41.de/" rel="nofollow">http://themes.go41.de/</a>
</p>]]></description>
					</item>

	</channel>
</rss>

