<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Shea Allen &#187; Wordpress</title>
	<atom:link href="http://sheaallen.com/category/design-coding/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://sheaallen.com</link>
	<description>When Life Gives You Lemons, You Paint That Sh-t Gold!</description>
	<lastBuildDate>Mon, 30 May 2011 23:38:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Allow all HTML in wpmu Posts</title>
		<link>http://sheaallen.com/2008/09/allow-all-html-in-wpmu-posts/</link>
		<comments>http://sheaallen.com/2008/09/allow-all-html-in-wpmu-posts/#comments</comments>
		<pubDate>Tue, 02 Sep 2008 18:46:11 +0000</pubDate>
		<dc:creator>Shea</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[post]]></category>
		<category><![CDATA[wpmu]]></category>

		<guid isPermaLink="false">http://sheaallen.com/?p=138</guid>
		<description><![CDATA[A solution has been found to stop WPMU from stripping the html tags from your posts! it's a quick easy fix even the shorthand coders can edit. This way you can embed flash video files from all your favorite sites without the use of a third party plugin or editing of the single.php pages. However, even if you DON'T want to edit your wpmu installation, I've also linked to a wpmu plugin that will allow you to easily add flash video files from your favorite websites without using html.]]></description>
			<content:encoded><![CDATA[<p>A simple fix to enable your wpmu to stop stripping html tags has been found! In your wp-includes folder is a file called kses.php. In the default wpmu installation about line 1015 reads the following:</p>
<blockquote><p>function kses_init_filters() {<br />
// Normal filtering.<br />
add_filter(&#8216;pre_comment_content&#8217;, &#8216;wp_filter_kses&#8217;);<br />
add_filter(&#8216;title_save_pre&#8217;, &#8216;wp_filter_kses&#8217;);</p>
<p>// Post filtering<br />
add_filter(&#8216;content_save_pre&#8217;, &#8216;wp_filter_post_kses&#8217;);<br />
add_filter(&#8216;excerpt_save_pre&#8217;, &#8216;wp_filter_post_kses&#8217;);<br />
add_filter(&#8216;content_filtered_save_pre&#8217;, &#8216;wp_filter_post_kses&#8217;);<br />
}</p></blockquote>
<p>All we have to do hear is comment out all the lines under post filtering of this function.</p>
<blockquote><p>function kses_init_filters() {<br />
// Normal filtering.<br />
add_filter(’pre_comment_content’, ‘wp_filter_kses’);<br />
add_filter(’title_save_pre’, ‘wp_filter_kses’);</p>
<p>// Post filtering<br />
//	add_filter(’content_save_pre’, ‘wp_filter_post_kses’);<br />
//	add_filter(’excerpt_save_pre’, ‘wp_filter_post_kses’);<br />
//	add_filter(’content_filtered_save_pre’, ‘wp_filter_post_kses’);<br />
}</p></blockquote>
<p>This allows you to stop filtering the tags in a post, but the tags in a comment are still filtered.</p>
<p>Readlink: <a href="http://dev.robertmao.com/2007/07/18/get-rid-of-boring-wpmus-post-htmljavascript-filtering/">http://dev.robertmao.com/2007/07/18/get-rid-of-boring-wpmus-post-htmljavascript-filtering/</a></p>
<p style="text-align: center;">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p style="text-align: left;">AND THEN! I used this plugin called WordPress Video Plugin. <a href="http://www.daburna.de/blog/2006/12/13/wordpress-video-plugin/">Details / Download here</a>. Super easy install, super easy to use. If you want a youtube video, in your post you just add the text [youtube VIDEOID]. Works for about 100 or so different video sites. They have an instruction guide that comes with it listing all the sites. Adding additional websites to the code is pretty simple if you know what you&#8217;re doing in the code. As of today, I get to disabled this plugin! Good luck!</p>
<div class="shr-publisher-138"></div><h3  class="related_post_title">Check Out These Related Posts!</h3><ul class="related_post"><li><a href="http://sheaallen.com/2008/08/making-timthumbphp-work-with-wpmu/" title="Making TimThumb.php work with WPMU">Making TimThumb.php work with WPMU</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://sheaallen.com/2008/09/allow-all-html-in-wpmu-posts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making TimThumb.php work with WPMU</title>
		<link>http://sheaallen.com/2008/08/making-timthumbphp-work-with-wpmu/</link>
		<comments>http://sheaallen.com/2008/08/making-timthumbphp-work-with-wpmu/#comments</comments>
		<pubDate>Thu, 28 Aug 2008 20:34:18 +0000</pubDate>
		<dc:creator>Shea</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[darren hoyt]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[mu]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[resizer]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[timthumb]]></category>
		<category><![CDATA[wpmu]]></category>

		<guid isPermaLink="false">http://sheaallen.com/?p=50</guid>
		<description><![CDATA[It has taken almost 16 hours dissecting the wpmu system after being semi familiar with the basic wordpress setup. There aren&#8217;t nearly as many people who use wpmu as opposed to wp so troubleshooting becomes tough and you begin to rely on yourself to figure it out. I&#8217;ve done search across the net for hours seeing if there is a solution, but to no avail. Now that I&#8217;ve figured it out I have to pass it on.
First off, if you&#8217;ve made any changes to the timthumb.php script, you&#8217;re on your ...]]></description>
			<content:encoded><![CDATA[<p>It has taken almost 16 hours dissecting the wpmu system after being semi familiar with the basic wordpress setup. There aren&#8217;t nearly as many people who use wpmu as opposed to wp so troubleshooting becomes tough and you begin to rely on yourself to figure it out. I&#8217;ve done search across the net for hours seeing if there is a solution, but to no avail. Now that I&#8217;ve figured it out I have to pass it on.</p>
<p>First off, if you&#8217;ve made any changes to the timthumb.php script, you&#8217;re on your own. So I&#8217;m going to start with the original script which you can download from <a href="http://www.darrenhoyt.com/2008/04/02/timthumb-php-script-released/">Darren Hoyt</a>&#8216;s blog. I created a folder inside my theme called scripts. Inside scripts we have timthumb.php and another folder called cache set to chmod 0777 permissions. Some people have told me you need to set the timthumb.php to 0777 but I have found that to be untrue as it doesn&#8217;t matter AND creates a security flaw. I recommend keeping the script at 0755 (default).</p>
<p>Start by making sure the script works. To do this access the file directly with no variables set. It should give you an error with &#8216;No Image Specified&#8217;. Here is an example:</p>
<p>http://sheaallen.com/wp-content/themes/arthemia/scripts/timthumb.php</p>
<p>This lets us know the script is working no problem. According to the creator&#8217;s instructions, we are told to use the following to call an image:</p>
<blockquote><p><code>&lt;img src="/scripts/timthumb.php?src=/images/whatever.jpg&amp;h=150&amp;w=150&amp;zc=1" alt="" /&gt;</code></p></blockquote>
<p>The idea is to add a custom value field named &#8220;Image&#8221; (with a capital i &#8211; there is a difference between image and Image) with the value pointing to the location of your image. In my case, when I upload an image using wordpress it puts it in the following place:</p>
<p>http://www.sheaallen.com/files/2008/08/file.gif</p>
<p>If you use this path in your image src using wpmu you&#8217;ll get the following error even though the image IS there:</p>
<p>//files/2008/08/file.gif not found.</p>
<p>Reason for this happening is because in the default .htaccess for wpmu, the modrewrite article is used to change the /files/ to wp-content/blogs.php?file=location. In return, the blogs.php file actually pulls the image from a totally seperate directory. In my case, it is blog 1. So the image is actually located</p>
<p>http://www.sheaallen.com/wp-content/blogs.dir/1/files/2008/08/file.gif</p>
<p>I&#8217;m not a programmer, i just learn what i need to know to make things work. So i cannot tell you why all these rewrites are causing the image to not display. Anyways, for the fix. In the code of your template you must put this:</p>
<blockquote><p>&lt;img src = scripts/timthumb.php?src=http://www.sheaallen.com/wp-content/blogs.dir/1/&lt;?php $values = get_post_custom_values(&#8220;Image&#8221;); echo $values[0]; ?&gt;&amp;w=300&amp;h=275&amp;zc=1&amp;q=100&gt;</p></blockquote>
<p>In my case, the custom Image value would be files/2008/08/file.gif (no slash at the beginning). Yes, there may be other ways to do this, possibly something simpler and easier on the end user, but this method DOES work and it currently doesn&#8217;t have any flaws. If you have another way to make this fix, please let me know. Once again, I&#8217;m not a programmer but I&#8217;ll attempt to help you if it still doesn&#8217;t work. Good luck!</p>
<blockquote><p><strong>UPDATE 3/7/2010!</strong><br /><em>This code will work better than hardcoding your web address and blog directory as shown above:</em></p>
<p>&lt;?php bloginfo(&#8216;template_url&#8217;);?&gt;/scripts/timthumb.php?w=203px&amp;h=138&amp;src=&lt;?php bloginfo(&#8216;url&#8217;); ?&gt;/wp-content/blogs.dir/&lt;?php echo $wpdb->blogid; ?&gt;/&lt;?php $values = get_post_custom_values(”Image”); echo $values[0]; ?&gt;&amp;zc=1&amp;q=100</p></blockquote>
<div class="shr-publisher-50"></div><h3  class="related_post_title">Check Out These Related Posts!</h3><ul class="related_post"><li><a href="http://sheaallen.com/2008/09/allow-all-html-in-wpmu-posts/" title="Allow all HTML in wpmu Posts">Allow all HTML in wpmu Posts</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://sheaallen.com/2008/08/making-timthumbphp-work-with-wpmu/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>

