<?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; code</title>
	<atom:link href="http://sheaallen.com/tag/code/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, 05 Apr 2010 21:14:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</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-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://sheaallen.com/2008/09/allow-all-html-in-wpmu-posts/&amp;title=Allow+all+HTML+in+wpmu+Posts" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://sheaallen.com/2008/09/allow-all-html-in-wpmu-posts/&amp;title=Allow+all+HTML+in+wpmu+Posts" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://sheaallen.com/2008/09/allow-all-html-in-wpmu-posts/&amp;title=Allow+all+HTML+in+wpmu+Posts" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Allow+all+HTML+in+wpmu+Posts+-+http://sl.ly/03c7f&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-yahoomail">
			<a href="http://compose.mail.yahoo.com/?Subject=Allow+all+HTML+in+wpmu+Posts&amp;body=Link: http://sheaallen.com/2008/09/allow-all-html-in-wpmu-posts/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A A%20solution%20has%20been%20found%20to%20stop%20WPMU%20from%20stripping%20the%20html%20tags%20from%20your%20posts%21%20it%27s%20a%20quick%20easy%20fix%20even%20the%20shorthand%20coders%20can%20edit.%20This%20way%20you%20can%20embed%20flash%20video%20files%20from%20all%20your%20favorite%20sites%20without%20the%20use%20of%20a%20third%20party%20plugin%20or%20editing%20of%20the%20single.php%20pages.%20However%2C%20even%20if%20you%20DON%27T%20want%20to%20edit%20your%20wpmu%20installation%2C%20I%27ve%20also%20linked%20to%20a%20wpmu%20plugin%20that%20will%20allow%20you%20to%20easily%20add%20flash%20video%20files%20from%20your%20favorite%20websites%20without%20using%20html." rel="nofollow" class="external" title="Email this via Yahoo! Mail">Email this via Yahoo! Mail</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://sheaallen.com/2008/09/allow-all-html-in-wpmu-posts/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://sheaallen.com/2008/09/allow-all-html-in-wpmu-posts/&amp;title=Allow+all+HTML+in+wpmu+Posts" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-gmail">
			<a href="https://mail.google.com/mail/?ui=2&amp;view=cm&amp;fs=1&amp;tf=1&amp;su=Allow+all+HTML+in+wpmu+Posts&amp;body=Link: http://sheaallen.com/2008/09/allow-all-html-in-wpmu-posts/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A A%20solution%20has%20been%20found%20to%20stop%20WPMU%20from%20stripping%20the%20html%20tags%20from%20your%20posts%21%20it%27s%20a%20quick%20easy%20fix%20even%20the%20shorthand%20coders%20can%20edit.%20This%20way%20you%20can%20embed%20flash%20video%20files%20from%20all%20your%20favorite%20sites%20without%20the%20use%20of%20a%20third%20party%20plugin%20or%20editing%20of%20the%20single.php%20pages.%20However%2C%20even%20if%20you%20DON%27T%20want%20to%20edit%20your%20wpmu%20installation%2C%20I%27ve%20also%20linked%20to%20a%20wpmu%20plugin%20that%20will%20allow%20you%20to%20easily%20add%20flash%20video%20files%20from%20your%20favorite%20websites%20without%20using%20html." rel="nofollow" class="external" title="Email this via Gmail">Email this via Gmail</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://sheaallen.com/2008/09/allow-all-html-in-wpmu-posts/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
</ul>
<div style="clear:both;"></div>
</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>
	</channel>
</rss>
