<?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: Making TimThumb.php work with WPMU</title>
	<atom:link href="http://sheaallen.com/2008/08/making-timthumbphp-work-with-wpmu/feed/" rel="self" type="application/rss+xml" />
	<link>http://sheaallen.com/2008/08/making-timthumbphp-work-with-wpmu/</link>
	<description>When Life Gives You Lemons, You Paint That Sh-t Gold!</description>
	<lastBuildDate>Tue, 31 Aug 2010 14:25:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Jitesh</title>
		<link>http://sheaallen.com/2008/08/making-timthumbphp-work-with-wpmu/comment-page-1/#comment-134</link>
		<dc:creator>Jitesh</dc:creator>
		<pubDate>Tue, 31 Aug 2010 14:25:10 +0000</pubDate>
		<guid isPermaLink="false">http://sheaallen.com/?p=50#comment-134</guid>
		<description>Hi Shea Allen...after enabling wordpress multisite i started finding codes to fix TimThumb, but none of them worked. Then i found out a simple solution. The solution was to rid away TimThumb and add a simple code by replacing the TimThumb code in functions.php

&lt;a href=&quot;&quot; rel=&quot;bookmark&quot;&gt;&lt;img src=&quot;http://yoursite.com/wp-content/blogs.dir/2/ID, &#039;full&#039;); ?&gt;&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Hi Shea Allen&#8230;after enabling wordpress multisite i started finding codes to fix TimThumb, but none of them worked. Then i found out a simple solution. The solution was to rid away TimThumb and add a simple code by replacing the TimThumb code in functions.php</p>
<p>&lt;a href=&quot;&#8221; rel=&#8221;bookmark&#8221;&gt;&lt;img src=&quot;http://yoursite.com/wp-content/blogs.dir/2/ID, &#8216;full&#8217;); ?&gt;&#8221; alt=&#8221;" /&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://sheaallen.com/2008/08/making-timthumbphp-work-with-wpmu/comment-page-1/#comment-89</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Mon, 07 Sep 2009 11:35:14 +0000</pubDate>
		<guid isPermaLink="false">http://sheaallen.com/?p=50#comment-89</guid>
		<description>Sorry guys I&#039;m pretty confused. Can you please just tell me which files I will need to alter, and what code. I want to make this work site wide.</description>
		<content:encoded><![CDATA[<p>Sorry guys I&#8217;m pretty confused. Can you please just tell me which files I will need to alter, and what code. I want to make this work site wide.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shawn</title>
		<link>http://sheaallen.com/2008/08/making-timthumbphp-work-with-wpmu/comment-page-1/#comment-13</link>
		<dc:creator>shawn</dc:creator>
		<pubDate>Thu, 14 May 2009 18:19:21 +0000</pubDate>
		<guid isPermaLink="false">http://sheaallen.com/?p=50#comment-13</guid>
		<description>I think part of the problem is I am not defining the thumbnail image via custom fields, but rather letting arthemia choose the first image.

The problem I see with that, is there is no way for me to remove the url portion of the link.

Are you able to simply let arthemia choose the first image, or do you specify the image via custom field Image?

btw
I did get your emails, thank you very much.
I tried the latest timthumb file you sent, but it made no difference. I&#039;m guessing it&#039;s either the issue I mention above, or I still have something setup wrong.

I don&#039;t plan on giving up though, as I like the theme.</description>
		<content:encoded><![CDATA[<p>I think part of the problem is I am not defining the thumbnail image via custom fields, but rather letting arthemia choose the first image.</p>
<p>The problem I see with that, is there is no way for me to remove the url portion of the link.</p>
<p>Are you able to simply let arthemia choose the first image, or do you specify the image via custom field Image?</p>
<p>btw<br />
I did get your emails, thank you very much.<br />
I tried the latest timthumb file you sent, but it made no difference. I&#8217;m guessing it&#8217;s either the issue I mention above, or I still have something setup wrong.</p>
<p>I don&#8217;t plan on giving up though, as I like the theme.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shea Allen</title>
		<link>http://sheaallen.com/2008/08/making-timthumbphp-work-with-wpmu/comment-page-1/#comment-12</link>
		<dc:creator>Shea Allen</dc:creator>
		<pubDate>Thu, 14 May 2009 15:39:56 +0000</pubDate>
		<guid isPermaLink="false">http://sheaallen.com/?p=50#comment-12</guid>
		<description>@shawn - your problem looks like it lays where you put in your custom image value. It appears that you&#039;re putting the full length of the file in it when it should only pick up at files/

Fore example: On your last one you have a result that looks like:
/wp-content/blogs.dir/8/http://mywebsite.com/files/2009/05/imagetest.jpg

So according to me, everything would work if the http://mywebsite.com was removed. The only place this would come into play is in the actual content you&#039;re feeding the custom image value. That value should change to files/2009/05/imagetest.jpg THEN you&#039;ll have this result:

/wp-content/blogs.dir/8/files/2009/05/imagetest.jpg which is the correct location.</description>
		<content:encoded><![CDATA[<p>@shawn &#8211; your problem looks like it lays where you put in your custom image value. It appears that you&#8217;re putting the full length of the file in it when it should only pick up at files/</p>
<p>Fore example: On your last one you have a result that looks like:<br />
/wp-content/blogs.dir/8/http://mywebsite.com/files/2009/05/imagetest.jpg</p>
<p>So according to me, everything would work if the <a href="http://mywebsite.com" rel="nofollow">http://mywebsite.com</a> was removed. The only place this would come into play is in the actual content you&#8217;re feeding the custom image value. That value should change to files/2009/05/imagetest.jpg THEN you&#8217;ll have this result:</p>
<p>/wp-content/blogs.dir/8/files/2009/05/imagetest.jpg which is the correct location.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shawn</title>
		<link>http://sheaallen.com/2008/08/making-timthumbphp-work-with-wpmu/comment-page-1/#comment-11</link>
		<dc:creator>shawn</dc:creator>
		<pubDate>Wed, 13 May 2009 23:56:14 +0000</pubDate>
		<guid isPermaLink="false">http://sheaallen.com/?p=50#comment-11</guid>
		<description>ok I give up, I put spaces before the php portions of the code, wrapped it in code tags and your system is still removing it. No idea what I need to do in order to paste it in here for you to review.

As my comments are useless without it, feel free to just delete them.</description>
		<content:encoded><![CDATA[<p>ok I give up, I put spaces before the php portions of the code, wrapped it in code tags and your system is still removing it. No idea what I need to do in order to paste it in here for you to review.</p>
<p>As my comments are useless without it, feel free to just delete them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shawn</title>
		<link>http://sheaallen.com/2008/08/making-timthumbphp-work-with-wpmu/comment-page-1/#comment-10</link>
		<dc:creator>shawn</dc:creator>
		<pubDate>Wed, 13 May 2009 23:55:01 +0000</pubDate>
		<guid isPermaLink="false">http://sheaallen.com/?p=50#comment-10</guid>
		<description>arrgghhh

even wrapped in code tags, it is removing what I put in there above....

Let me try this again with some more spaces in the code area

I think I am getting close using your solution, but still have an issue. I am using 2.7.1 wordpress mu

here is the header template code I am using to change the thumbnail
&lt;code&gt;
&lt;img src=&quot;/scripts/timthumb.php?src=h t t p://www.mywebsite.com/wp-content/blogs.dir//&amp;h=195&amp;w=540&amp;zc=1&amp;q=95&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;
&lt;/code&gt;

This results in a link like:
&lt;code&gt;
http://mywebsite.com/wp-content/themes/arthemia-premium/scripts/timthumb.php?src=/wp-content/blogs.dir/8/h t t p://mywebsite.com/files/2009/05/imagetest.jpg&amp;w=200&amp;h=225&amp;zc=1&amp;q=100
&lt;/code&gt;

now if I could get it to remove the h t t p://mywebsite.com from the second part of the url, after /8/ it would be perfect, but for some reason I can&#039;t seem to get it to remove that part.
(***h t t p does not have spaces, I have to do that to get it by your comment spam as it wont allow it without spaces)

What do you think I may be missing?</description>
		<content:encoded><![CDATA[<p>arrgghhh</p>
<p>even wrapped in code tags, it is removing what I put in there above&#8230;.</p>
<p>Let me try this again with some more spaces in the code area</p>
<p>I think I am getting close using your solution, but still have an issue. I am using 2.7.1 wordpress mu</p>
<p>here is the header template code I am using to change the thumbnail<br />
<code><br />
&lt;img src="/scripts/timthumb.php?src=h t t p://www.mywebsite.com/wp-content/blogs.dir//&amp;h=195&amp;w=540&amp;zc=1&amp;q=95" alt="" /&gt;<br />
</code></p>
<p>This results in a link like:<br />
<code><br />
<a href="http://mywebsite.com/wp-content/themes/arthemia-premium/scripts/timthumb.php?src=/wp-content/blogs.dir/8/h" rel="nofollow">http://mywebsite.com/wp-content/themes/arthemia-premium/scripts/timthumb.php?src=/wp-content/blogs.dir/8/h</a> t t p://mywebsite.com/files/2009/05/imagetest.jpg&amp;w=200&amp;h=225&amp;zc=1&amp;q=100<br />
</code></p>
<p>now if I could get it to remove the h t t p://mywebsite.com from the second part of the url, after /8/ it would be perfect, but for some reason I can&#8217;t seem to get it to remove that part.<br />
(***h t t p does not have spaces, I have to do that to get it by your comment spam as it wont allow it without spaces)</p>
<p>What do you think I may be missing?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shawn</title>
		<link>http://sheaallen.com/2008/08/making-timthumbphp-work-with-wpmu/comment-page-1/#comment-9</link>
		<dc:creator>shawn</dc:creator>
		<pubDate>Wed, 13 May 2009 23:52:14 +0000</pubDate>
		<guid isPermaLink="false">http://sheaallen.com/?p=50#comment-9</guid>
		<description>I think I am getting close using your solution, but still have an issue. I am using 2.7.1 wordpress mu

here is the header template code I am using to change the thumbnail
&lt;code&gt;
&lt;img src=&quot;/scripts/timthumb.php?src=h t t p://www.mywebsite.com/wp-content/blogs.dir//&amp;h=195&amp;w=540&amp;zc=1&amp;q=95&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;
&lt;/code&gt;

This results in a link like:
&lt;code&gt;
http://mywebsite.com/wp-content/themes/arthemia-premium/scripts/timthumb.php?src=/wp-content/blogs.dir/8/h t t p://mywebsite.com/files/2009/05/imagetest.jpg&amp;w=200&amp;h=225&amp;zc=1&amp;q=100
&lt;/code&gt;

now if I could get it to remove the h t t p://mywebsite.com from the second part of the url, after /8/ it would be perfect, but for some reason I can&#039;t seem to get it to remove that part.
(***h t t p does not have spaces, I have to do that to get it by your comment spam as it wont allow it without spaces)

What do you think I may be missing?</description>
		<content:encoded><![CDATA[<p>I think I am getting close using your solution, but still have an issue. I am using 2.7.1 wordpress mu</p>
<p>here is the header template code I am using to change the thumbnail<br />
<code><br />
&lt;img src="/scripts/timthumb.php?src=h t t p://www.mywebsite.com/wp-content/blogs.dir//&amp;h=195&amp;w=540&amp;zc=1&amp;q=95" alt="" /&gt;<br />
</code></p>
<p>This results in a link like:<br />
<code><br />
<a href="http://mywebsite.com/wp-content/themes/arthemia-premium/scripts/timthumb.php?src=/wp-content/blogs.dir/8/h" rel="nofollow">http://mywebsite.com/wp-content/themes/arthemia-premium/scripts/timthumb.php?src=/wp-content/blogs.dir/8/h</a> t t p://mywebsite.com/files/2009/05/imagetest.jpg&amp;w=200&amp;h=225&amp;zc=1&amp;q=100<br />
</code></p>
<p>now if I could get it to remove the h t t p://mywebsite.com from the second part of the url, after /8/ it would be perfect, but for some reason I can&#8217;t seem to get it to remove that part.<br />
(***h t t p does not have spaces, I have to do that to get it by your comment spam as it wont allow it without spaces)</p>
<p>What do you think I may be missing?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shea Allen</title>
		<link>http://sheaallen.com/2008/08/making-timthumbphp-work-with-wpmu/comment-page-1/#comment-8</link>
		<dc:creator>Shea Allen</dc:creator>
		<pubDate>Mon, 13 Apr 2009 00:04:30 +0000</pubDate>
		<guid isPermaLink="false">http://sheaallen.com/?p=50#comment-8</guid>
		<description>@ Scorpion - you are correct. It will only work for blog #1. However, as Drew mentioned up there you can automatically generate the blog ID using the $blog_id function.

Updated you could use this:

&lt;img src = scripts/timthumb.php?src=http://www.sheaallen.com/wp-content/blogs.dir//&amp;w=300&amp;h=275&amp;zc=1&amp;q=100&gt;</description>
		<content:encoded><![CDATA[<p>@ Scorpion &#8211; you are correct. It will only work for blog #1. However, as Drew mentioned up there you can automatically generate the blog ID using the $blog_id function.</p>
<p>Updated you could use this:</p>
<p>&lt;img src = scripts/timthumb.php?src=http://www.sheaallen.com/wp-content/blogs.dir//&amp;w=300&amp;h=275&amp;zc=1&amp;q=100&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scorpion</title>
		<link>http://sheaallen.com/2008/08/making-timthumbphp-work-with-wpmu/comment-page-1/#comment-7</link>
		<dc:creator>Scorpion</dc:creator>
		<pubDate>Sat, 14 Mar 2009 06:56:59 +0000</pubDate>
		<guid isPermaLink="false">http://sheaallen.com/?p=50#comment-7</guid>
		<description>&lt;img src = scripts/timthumb.php?src=http://www.sheaallen.com/wp-content/blogs.dir/1/&amp;w=300&amp;h=275&amp;zc=1&amp;q=100&gt;


The only trouble with that code is, it&#039;s only going to work for a singel user.  The next user, whose media file will be stored in blogs.dir/2  will have bigger problems since the blogs.dir/1 is hard coded into the template</description>
		<content:encoded><![CDATA[<p>&lt;img src = scripts/timthumb.php?src=http://www.sheaallen.com/wp-content/blogs.dir/1/&amp;w=300&amp;h=275&amp;zc=1&amp;q=100&gt;</p>
<p>The only trouble with that code is, it&#8217;s only going to work for a singel user.  The next user, whose media file will be stored in blogs.dir/2  will have bigger problems since the blogs.dir/1 is hard coded into the template</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KD</title>
		<link>http://sheaallen.com/2008/08/making-timthumbphp-work-with-wpmu/comment-page-1/#comment-6</link>
		<dc:creator>KD</dc:creator>
		<pubDate>Wed, 08 Oct 2008 02:15:20 +0000</pubDate>
		<guid isPermaLink="false">http://sheaallen.com/?p=50#comment-6</guid>
		<description>I may as well join the club I am having the same problem view images on my site. I made some changes that you have suggested but I may have lost a step when you used /wp-content/blogs/1/ , I interpreted that as /wp-content/themes/blogname/. Here is my script, I&#039;ve been trying to be as careful as possible, could you take a look and lend me a hand if possible.


 	&lt;a href=&quot;&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to &quot;&gt;
&lt;img src=http://www.hollaatyoboy.com/hwp/wp-content/themes/arthemia/scripts/timthumb.php?src=/wp-content/uploads/&amp;w=300&amp;h=275&amp;zc=1&amp;q=100&quot;
alt=&quot;&quot; class=&quot;left&quot; width=&quot;300px&quot; height=&quot;275px&quot;  /&gt;&lt;/a&gt;

	&lt;a href=&quot;&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to &quot;&gt;Read the full story &#187;&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>I may as well join the club I am having the same problem view images on my site. I made some changes that you have suggested but I may have lost a step when you used /wp-content/blogs/1/ , I interpreted that as /wp-content/themes/blogname/. Here is my script, I&#8217;ve been trying to be as careful as possible, could you take a look and lend me a hand if possible.</p>
<p> 	&lt;a href=&#8221;" rel=&#8221;bookmark&#8221; title=&#8221;Permanent Link to &#8220;&gt;<br />
&lt;img src=http://www.hollaatyoboy.com/hwp/wp-content/themes/arthemia/scripts/timthumb.php?src=/wp-content/uploads/&amp;w=300&amp;h=275&amp;zc=1&amp;q=100&#8243;<br />
alt=&#8221;" class=&#8221;left&#8221; width=&#8221;300px&#8221; height=&#8221;275px&#8221;  /&gt;</p>
<p>	&lt;a href=&#8221;" rel=&#8221;bookmark&#8221; title=&#8221;Permanent Link to &#8220;&gt;Read the full story &raquo;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
