<?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>donburnside.com &#187; WordPress Fixes</title>
	<atom:link href="http://donburnside.com/section/blog/wordpress-fixes/feed/" rel="self" type="application/rss+xml" />
	<link>http://donburnside.com</link>
	<description>inter-media-gineering empire of Don Burnside</description>
	<lastBuildDate>Tue, 07 Feb 2012 20:59:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>WordPress + Amazon S3</title>
		<link>http://donburnside.com/wordpress-amazon-s3/</link>
		<comments>http://donburnside.com/wordpress-amazon-s3/#comments</comments>
		<pubDate>Fri, 12 Aug 2011 19:18:02 +0000</pubDate>
		<dc:creator>Don</dc:creator>
				<category><![CDATA[WordPress Fixes]]></category>
		<category><![CDATA[amazon s3]]></category>
		<category><![CDATA[amazon s3 for wordpress]]></category>
		<category><![CDATA[cdn]]></category>
		<category><![CDATA[cdn sync tool]]></category>
		<category><![CDATA[nextgen gallery]]></category>
		<category><![CDATA[nextgen gallery and amazon s3]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://donburnside.com/?p=4750</guid>
		<description><![CDATA[Recently I&#8217;ve been tasked with management of a couple of WordPress websites that get more traffic than I&#8217;m used to dealing with. Quite a bit more in fact. So much so that they were causing the server they lived on to have memory issues, random reboots and other odd issues. Step 1 In order to [...]
Related posts:<li>
<li><a href='http://donburnside.com/wordpress-as-image-gallery/' rel='bookmark' title='WordPress as Image Gallery'>WordPress as Image Gallery</a></li>
<li><a href='http://donburnside.com/another-new-wordpress-site/' rel='bookmark' title='Another new WordPress site'>Another new WordPress site</a></li>
<li><a href='http://donburnside.com/fetch-rss-with-wordpress/' rel='bookmark' title='Fetch RSS with WordPress'>Fetch RSS with WordPress</a></li>
</li>]]></description>
			<content:encoded><![CDATA[<p>Recently I&#8217;ve been tasked with management of a couple of WordPress websites that get more traffic than I&#8217;m used to dealing with.  Quite a bit more in fact.  So much so that they were causing the server they lived on to have memory issues, random reboots and other odd issues.</p>

<h2>Step 1</h2>

<p>In order to get the sites more stable, I started clearing out plug-ins.  Starting by deleting the ones that were being used and actually deleting them off the server.  Then removing plugins that weren&#8217;t <em>really</em> needed and replacing them with a WordPress function where possible.</p>

<p><strong>Result:</strong> Not enough to stablize the server</p>

<h2>Step 2</h2>

<p>Looking at the logs, I found quite a bit of traffic to the WordPress comment system.  These sites are running Disqus, so WordPress comments aren&#8217;t needed.  Got rid of them.  I also noticed quite a bit of traffic and strain on the servers coming from other sites, hotlinking to images, javascript files and content.  Turned on hot-link protection for all but a few sites and blocked a few IPs.</p>

<p><strong>Result:</strong> Better, but server still not 100% stable.
<span id="more-4750"></span></p>

<h2>Step 3</h2>

<p>Looking at the remaining plugins and with help from support, the next culprit was the NextGen Gallery plugin.  This is a key component on each site and disabling it actually was a bad thing.  But I had a server that was rebooting itself every day, so disabling it I had to do.</p>

<p>Support was also able to temporarily upgrade the server (it&#8217;s a virtual server, so easy for them to do).</p>

<p><strong>Result:</strong> Stable server!</p>

<p></h2>Step 4</h2>
Needing to allowing more hotlinking than I had setup, NextGen gallery support and to improve the overall speed of the sites, it was time to look for solutions. It was recommended to look at using a Content Delivery Network (CDN) like Rackspace or Amazon S3.  Having not used a CDN before, I figured it was as good a time as any to give it a whirl, and I decided (based primarily on price) to use Amazon S3.</p>

<p>Starting here at <a href="/">donburnside.com</a>.</p>

<p>The google pointed me at a few plugins that have been crucial in making the switch to S3 possible.</p>

<ul>
  <li>Creating a CNAME DNS entry for the S3 bucket.</li>
  <li><a href="http://wordpress.org/extend/plugins/wp-super-cache/">WP Super Cache</a>.  Some recommended W3 Total Cache, but I read it gave memory errors on occassion (a problem I was trying to escape) and Super Cache was already installed on both sites</li>
  <li><a href="http://wordpress.org/extend/plugins/tantan-s3/">Amazon S3 for WordPress</a>.  What this does is take anything that is uploaded using the WordPress media uploader and automatically moves it into the S3 bucket of my choosing.
  <li><a href="http://wordpress.org/extend/plugins/cdn-sync-tool/">CDN Sync Tool</a>.  While it acts weird on my server because a depreciated piece of PHP is missing, I was still able to make it work to get all of the data needed over to the Amazon S3 bucket and keep them updated, kind of.</li>
</ul>

<p>Starting with the CNAME entry, I mapped it to an <strong>identically named</strong> S3 bucket.  This is needed to make sure everything works correctly.  The CNAME entry is required for the Amazon S3 plugin to work correctly.</p>

<p>Once that was setup, I used CDN Sync to get all of the necessary files to the bucket.  It&#8217;s also used to keep certain directories updated, like the gallery directory.  That part happens manually which I will discuss later.</p>

<p>Finally, turning on CDN support in Total Cache.  This redirects any call to any folder specified (wp-content and wp-includes are default) to the CNAME&#8217;d entry that I previously specified.</p>

<p>Done and done.  WordPress, within a few hours, running from a CDN.  Since I&#8217;ve not done this before, it took much longer than a few hours.  Now that I know how easy it is, it won&#8217;t next time.</p>

<h2>NextGen Gallery + Amazon S3</h2>

<p>Currently, there is no support for <strong>any</strong> CDN within the <a href="http://wordpress.org/extend/plugins/nextgen-gallery/">NextGen Gallery Plugin</a>. This is a problem because, like I mentioned, the sites rely heavily on that plugin.  Some more googling brings me to <a href="http://wordpress.org/support/topic/plugin-nextgen-gallery-nextgen-gallery-and-amazon-cloudspaces3">this thread</a> at the WordPress.org support forums offering a hack to redirect the plugin to look at the S3 bucket I needed.  And it works very well with 1 minor hitch.  Hacking a plugin to work outside of it&#8217;s normal parameters means with the next update, your hack will be gone.  So I created a duplicate of the file that I modified so I can replace it (or duplicate the hack) after an update.</p>

<p>Once that is done, when you upload images to the gallery they go into the gallery folder on the server just like always, but you can&#8217;t see any of the images or thumbnails since they are being referenced back to the CDN.  That means that once a gallery is created and images are uploaded, you have to go back into CDN Sync Tool and run a sync on the <code>wp-content/gallery/[directory name here]</code>.  That will move all of the images and thumbnails to the CDN and you can post the gallery, serving images from the CDN.</p>

<p>Now I have sites that are not only running faster than before, but they are using half as much bandwidth from the hosting company and fewer resources (all js and css files are also being served from the CDN).  And, at least on Amazon, for not very much cost.  On 2 sites that get approximately 175K views per month, the cost is going to be about $30 or less, and the bandwidth savings on the server is close to 75%!</p>

<p>If you are looking for a way to speed up a site or reduce the load on a server, I can not recommend this enough.</p>

<p>Comments are open if you have any questions!</p>
<p>Related posts:</p><li>
<li><a href='http://donburnside.com/wordpress-as-image-gallery/' rel='bookmark' title='WordPress as Image Gallery'>WordPress as Image Gallery</a></li>
<li><a href='http://donburnside.com/another-new-wordpress-site/' rel='bookmark' title='Another new WordPress site'>Another new WordPress site</a></li>
<li><a href='http://donburnside.com/fetch-rss-with-wordpress/' rel='bookmark' title='Fetch RSS with WordPress'>Fetch RSS with WordPress</a></li>
</li>]]></content:encoded>
			<wfw:commentRss>http://donburnside.com/wordpress-amazon-s3/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Hacked?  Me?</title>
		<link>http://donburnside.com/hacked-me/</link>
		<comments>http://donburnside.com/hacked-me/#comments</comments>
		<pubDate>Mon, 21 Mar 2011 16:47:18 +0000</pubDate>
		<dc:creator>Don</dc:creator>
				<category><![CDATA[Site News]]></category>
		<category><![CDATA[WordPress Fixes]]></category>
		<category><![CDATA[admin username]]></category>
		<category><![CDATA[don't use admin]]></category>
		<category><![CDATA[wordpress admin]]></category>

		<guid isPermaLink="false">http://donburnside.com/?p=4463</guid>
		<description><![CDATA[For those of you that might have visited <a href="/">donburnside.com</a> yesterday, you might have noticed a little something different.  Different in as much as a redirect to some website that wasn't english.  Nothing bad as far as I could tell, just not here.
Related posts:<li>
<li><a href='http://donburnside.com/zune-hacked-share-songs-without-drm/' rel='bookmark' title='Zune Hacked &#8211; Share songs without DRM'>Zune Hacked &#8211; Share songs without DRM</a></li>
<li><a href='http://donburnside.com/wp-26/' rel='bookmark' title='WP 2.6?'>WP 2.6?</a></li>
</li>]]></description>
			<content:encoded><![CDATA[<p>For those of you that might have visited <a href="/">donburnside.com</a> yesterday, you might have noticed a little something different.  Different in as much as a redirect to some website that wasn&#8217;t english.  Nothing bad as far as I could tell, just not here.</p>

<p>Turns out, this was completely avoidable and has been corrected.  You see, I never bothered to stop using the default &#8216;admin&#8217; user.  My password was brute forced and the main index.php file was over written, and my themes index.php file was blanked out.  Good thing I had backups.</p>

<p>So, let this be a lesson to you.  Don&#8217;t use WordPress with the admin username.  While I&#8217;m a little late to this party, better late than never.</p>
<p>Related posts:</p><li>
<li><a href='http://donburnside.com/zune-hacked-share-songs-without-drm/' rel='bookmark' title='Zune Hacked &#8211; Share songs without DRM'>Zune Hacked &#8211; Share songs without DRM</a></li>
<li><a href='http://donburnside.com/wp-26/' rel='bookmark' title='WP 2.6?'>WP 2.6?</a></li>
</li>]]></content:encoded>
			<wfw:commentRss>http://donburnside.com/hacked-me/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>I still want to do this</title>
		<link>http://donburnside.com/i-still-want-to-do-this/</link>
		<comments>http://donburnside.com/i-still-want-to-do-this/#comments</comments>
		<pubDate>Mon, 10 May 2010 14:00:19 +0000</pubDate>
		<dc:creator>Don</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[WordPress Fixes]]></category>

		<guid isPermaLink="false">http://donburnside.com/?p=4000</guid>
		<description><![CDATA[Earlier I posted <a href="http://donburnside.com/archive/something-new/">this</a> about a really cool idea that I have.  I've written it up to the first revision, had a rough mock done and was ready to move forward.

Until I found out that Apple recently patented my idea.  Well, not exactly, but pretty dang close.  Close enough for me to put the brakes on it and go about it in a different way.
Related posts:<li>
<li><a href='http://donburnside.com/podcamp-socal/' rel='bookmark' title='PodCamp SoCal'>PodCamp SoCal</a></li>
</li>]]></description>
			<content:encoded><![CDATA[<p>Earlier I posted <a href="http://donburnside.com/archive/something-new/">this</a> about a really cool idea that I have.  I&#8217;ve written it up to the first revision, had a rough mock done and was ready to move forward.</p>

<p>Until I found out that Apple <a href="http://www.patentlyapple.com/patently-apple/2010/04/apple-introduces-us-to-a-new-itunes-concert-ticket-system.html">recently patented</a> my idea.  Well, not exactly, but pretty dang close.  Close enough for me to put the brakes on it and go about it in a different way.</p>

<h2>The Idea</h2>

<p>This one came to me during my 8 hour long drive from Las Vegas after <a href="http://amviv.com">the last AMVIV</a>.  I missed a few things during the event that were changed, and so did a few other people.  This got me to thinking.  Wouldn&#8217;t it be cool to follow an event?</p>

<p>Twitter would be pretty keen, but what if you aren&#8217;t following the right people?  Or, what if you are following the right people but the noise gets in the way and you miss important information about the event/conference that you are attending?  Wouldn&#8217;t it be cool to have a twitter-like experience at the next conference or meeting or [insert large event here]?  Full push updates to your smart phone, updates as they happen and reminders about schedules?</p>

<p>Yea.</p>

<p>Not to worry.  instead of trying to find the funds and people necessary to completely build this out from scratch (which might still happen), I am instead going to start doing this with WordPress, a handful of plugins and twitter.</p>

<p>If you are looking for a way to keep your event goers up-to-date on the latest news and information about your event, <a href="/contact">let me know</a>.  I&#8217;m going to be putting something like this for the upcoming MTTS as a test, but would be interested in setting it up for one other event for a <em>smokin&#8217; good price</em>.</p>
<p>Related posts:</p><li>
<li><a href='http://donburnside.com/podcamp-socal/' rel='bookmark' title='PodCamp SoCal'>PodCamp SoCal</a></li>
</li>]]></content:encoded>
			<wfw:commentRss>http://donburnside.com/i-still-want-to-do-this/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facebook Connect mod</title>
		<link>http://donburnside.com/facebook-connect-mod/</link>
		<comments>http://donburnside.com/facebook-connect-mod/#comments</comments>
		<pubDate>Mon, 23 Mar 2009 15:44:39 +0000</pubDate>
		<dc:creator>Don</dc:creator>
				<category><![CDATA[Site News]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[WordPress Fixes]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[facebook connect]]></category>
		<category><![CDATA[how-to install facebook connect plugin]]></category>

		<guid isPermaLink="false">http://donburnside.com/?p=3046</guid>
		<description><![CDATA[You might remember my Facebook Connect how-to that I posted back in January. I got a request about how to modify the widget in the shape of a comment, but I deleted by mistake. I did reply via email and thought I would add it here for wiki purposes. From Archchef at casualgaminformer.com comes this [...]
Related posts:<li>
<li><a href='http://donburnside.com/facebook-connect/' rel='bookmark' title='Facebook Connect'>Facebook Connect</a></li>
<li><a href='http://donburnside.com/facebook-connect-part-ii/' rel='bookmark' title='Facebook Connect, Part II'>Facebook Connect, Part II</a></li>
<li><a href='http://donburnside.com/how-to-blog/' rel='bookmark' title='How to blog'>How to blog</a></li>
</li>]]></description>
			<content:encoded><![CDATA[<p>You might remember <a href="http://donburnside.com/archive/facebook-connect/">my Facebook Connect how-to</a> that I posted back in January.  I got a request about how to modify the widget in the shape of a comment, but I deleted by mistake.  I did reply via email and thought I would add it here for wiki purposes.</p>

<hr />

<p>From Archchef at <a href="http://www.casualgaminformer.com">casualgaminformer.com</a> comes this question.</p>

<blockquote>
  <p>Is there a way to disable the &#8220;Last visitors&#8221; section in the widget? I don&#8217;t exactly want nor need it but can&#8217;t find any way of killing the darn thing <img src='http://donburnside.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
</blockquote>

<p>This one is very easy.  To remove the part of the widget you don&#8217;t want to see, open fbconnect_widget.php and scroll down to line 31, or there about.  There are 2 lines below that, remove them, save and upload.  You should be good to go.  If you want the code, leave a comment below and I&#8217;ll hook you up.</p>

<p>I know the plugin still isn&#8217;t 100% here.  I hope to have that fixed before I go to Vegas this coming weekend.</p>
<p>Related posts:</p><li>
<li><a href='http://donburnside.com/facebook-connect/' rel='bookmark' title='Facebook Connect'>Facebook Connect</a></li>
<li><a href='http://donburnside.com/facebook-connect-part-ii/' rel='bookmark' title='Facebook Connect, Part II'>Facebook Connect, Part II</a></li>
<li><a href='http://donburnside.com/how-to-blog/' rel='bookmark' title='How to blog'>How to blog</a></li>
</li>]]></content:encoded>
			<wfw:commentRss>http://donburnside.com/facebook-connect-mod/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Man I love this theme</title>
		<link>http://donburnside.com/man-i-love-this-theme/</link>
		<comments>http://donburnside.com/man-i-love-this-theme/#comments</comments>
		<pubDate>Wed, 04 Feb 2009 07:29:15 +0000</pubDate>
		<dc:creator>Don</dc:creator>
				<category><![CDATA[Site News]]></category>
		<category><![CDATA[WordPress Fixes]]></category>

		<guid isPermaLink="false">http://donburnside.com/?p=2794</guid>
		<description><![CDATA[When I originally built the theme for this site, I didn&#8217;t think about making it work for anyone but me. I know, quite selfish of me, right? Then, as dev continued, I got the idea that I really should try to make it more of a standard WP theme, make sure it works in all [...]
Related posts:<li>
<li><a href='http://donburnside.com/new-theme/' rel='bookmark' title='New theme'>New theme</a></li>
<li><a href='http://donburnside.com/why-i-love-wordpress/' rel='bookmark' title='Why I love WordPress'>Why I love WordPress</a></li>
<li><a href='http://donburnside.com/i-love-this/' rel='bookmark' title='I love this'>I love this</a></li>
</li>]]></description>
			<content:encoded><![CDATA[<p><a href="http://img.skitch.com/20090204-qkkw88bt7u63jar9mud6exs7h5.jpg" rel="lightbox-2794"><img src="http://img.skitch.com/20090204-qkkw88bt7u63jar9mud6exs7h5.jpg" style="width:250px;margin:3px;padding:3px;float:left;" alt="mcp screen shot"></a>When I originally built the theme for this site, I didn&#8217;t think about making it work for anyone but me.  I know, quite selfish of me, right?</p>

<p>Then, as dev continued, I got the idea that I really should try to make it more of a standard WP theme, make sure it works in all browsers, make sure it looks good in all browsers and works with just about any plugin I throw at it.  All of that is the reason why this theme took me over 3 months of tweaking to develop.</p>

<p>And, for the first time ever, it has been replicated.  You can see the screen shot above, or view it live <a href="http://www.mycruiseplanner.net">here</a>.  That&#8217;s right, it&#8217;s the My Cruise Planner site that Michael and his lovely wife work on, post <a href="http://www.mycruiseplanner.net/news">news articles</a> to and <a href="http://www.mycruiseplanner.net/podcast">host their Mail Buoy podcast</a> from.</p>

<p>Of course I had way too much of the hand coded stuff in it for them to use, primarily in the sidebar.  If I were to distribute this as a stand-alone-anyone-can-use-it theme, I would leave that almost blank anyway and let whoever took it use it for whatever they wanted, much like I have done for the MCP site.</p>

<p>I did have to make a few others changes as well.  Primarily in the categories, and this is my best wordpress trick and I&#8217;m using it everywhere I need this functionality.</p>

<ul>
  <li>Create a main, or parent, category</li>
  <li>Create sub, or child, categories under the parent</li>
  <li>Set category base to &#8216;section&#8217; (it could be anything really)</li>
</ul>

<p>Doing this allows separation of the parent categories within the structure of the site while at the same time not excluding anything from the RSS feed.  I&#8217;m sure many of you have already noticed that the podcasts are showing up in your feeds, yet you do not see them on the &#8216;blog&#8217; section here.</p>

<p>Just thought I&#8217;d toot my own before I changed the <a href="/portfolio/web">portfolio page</a>.</p>

<p>If you do need any kind of travel, you really should talk to them first.  No foolin&#8217;, they have saved my butt more than a few times.  It&#8217;s also why they are the official travel planners of <a href="http://www.whiteroofradio.com">White Roof Radio</a>.</p>
<p>Related posts:</p><li>
<li><a href='http://donburnside.com/new-theme/' rel='bookmark' title='New theme'>New theme</a></li>
<li><a href='http://donburnside.com/why-i-love-wordpress/' rel='bookmark' title='Why I love WordPress'>Why I love WordPress</a></li>
<li><a href='http://donburnside.com/i-love-this/' rel='bookmark' title='I love this'>I love this</a></li>
</li>]]></content:encoded>
			<wfw:commentRss>http://donburnside.com/man-i-love-this-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facebook Connect</title>
		<link>http://donburnside.com/facebook-connect/</link>
		<comments>http://donburnside.com/facebook-connect/#comments</comments>
		<pubDate>Mon, 26 Jan 2009 19:07:00 +0000</pubDate>
		<dc:creator>Don</dc:creator>
				<category><![CDATA[Site News]]></category>
		<category><![CDATA[WordPress Fixes]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[facebook connect]]></category>
		<category><![CDATA[how to install facebook connect wordpress plugin]]></category>

		<guid isPermaLink="false">http://donburnside.com/?p=2702</guid>
		<description><![CDATA[A quick personal wiki/how-to entry on getting the Facebook connect plugin working with a custom Wordpress theme.
No related posts.]]></description>
			<content:encoded><![CDATA[<p>A quick personal wiki/how-to entry on getting the Facebook connect plugin working with a custom WordPress theme.</p>

<hr/>

<p>I spent a good part of the day setting up the <a href="http://www.sociable.es/facebook-connect/">Facebook Connect</a> plugin over at <a href="http://motoringfile.com">Motoringfile</a>.  I also set it up here, but haven&#8217;t spent nearly as long tweaking it.  That means it&#8217;s personal wiki time!  Weeeeeee<span id="more-2702"></span></p>

<p>This plug-in does require a few things to work correctly.</p>

<p>You need to add this to the html line in header.php.
<xmp style="overflow:auto">xmlns:fb=”http://www.facebook.com/2008/fbml”></xmp></p>

<p>Also in the header you should have
<xmp><?php wp_head(); ?></xmp>
 before your closing 
<xmp style="overflow:auto"></head></xmp></p>

<p>In the footer, you need 
<xmp style="overflow:auto"><?php wp_footer(); ?></xmp> 
right before your
 <xmp></body></xmp></p>

<p>Your theme should be widgetized.  There is a code chunk at the plugin site if it&#8217;s not.  I&#8217;ll be writing this up soon as well.</p>

<p>Once you do everything you need to do to get the plugin installed and configured so it works in your theme, then it&#8217;s time to make it look good in your theme as well.</p>

<p>The easiest way to do this is to copy the style from index.php.  This includes the call to header.php and any styles that happen <strong>before</strong> the loop.  You will also want to grab the call to footer.php.  Paste all of that into the top and bottom of the following files.</p>

<ul>
  <li><pre>myhome.php</pre></li>
  <li><pre>community.php</pre></li>
  <li><pre>userprofile.php</pre></li>
  <li><pre>invitefriends.php</pre></li>
</ul>

<p>Once that is done, it should fit nicely into your theme.  Don&#8217;t look at this one, yet.  Go over and check it out at <a href="http://motoringfile.com">Motoringfile.com</a> instead.</p>

<p>Finally, if you want to remove the check from the box in the comments, you will need to edit fbConnectInterface.php.  Find the following line on or around line 47.</p>

<p><xmp style="overflow:auto">echo &#8216;<input style="width:20px;" type="checkbox" name="sendToFacebook" id="sendToFacebook" checked="checked" />&#8216;.__(&#8216;Publish this comment to Facebook&#8217;, &#8216;fbconnect&#8217;);</xmp></p>

<p>And remove the part that says 
<pre>checked="checked"</pre>
Save and upload back to the fbconnect folder.</p>

<p>I am available for questions or to assist you should you need it.</p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://donburnside.com/facebook-connect/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Finding Instruction</title>
		<link>http://donburnside.com/finding-instruction/</link>
		<comments>http://donburnside.com/finding-instruction/#comments</comments>
		<pubDate>Tue, 20 Jan 2009 15:42:16 +0000</pubDate>
		<dc:creator>Don</dc:creator>
				<category><![CDATA[Rants]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[WordPress Fixes]]></category>
		<category><![CDATA[edit hosts file]]></category>
		<category><![CDATA[mamp]]></category>
		<category><![CDATA[osx hosts file edit]]></category>
		<category><![CDATA[smultron]]></category>

		<guid isPermaLink="false">http://donburnside.com/?p=2660</guid>
		<description><![CDATA[Been trying to do a few things lately that are a little bit more difficult than they should be. Really. Editing the hosts file on the Mac is one, installing WordPress MU on MAMP is the other. Starting with the editing of the hosts file. It should be. Just. This. Simple. Right? Yea, that doesn&#8217;t [...]
Related posts:<li>
<li><a href='http://donburnside.com/the-sunday-post-xiv/' rel='bookmark' title='The Sunday Post XIV'>The Sunday Post XIV</a></li>
</li>]]></description>
			<content:encoded><![CDATA[<p>Been trying to do a few things lately that are a little bit more difficult than they should be.  Really.  Editing the hosts file on the Mac is one, installing WordPress MU on MAMP is the other.</p>

<p>Starting with the editing of the hosts file.  It should be.  Just.  This.  Simple.</p>

<p><a href="http://twitter.com/mattg/status/1131660299"><img src="http://img.skitch.com/20090120-bwtxg7saq6y3qchjbk8mjjyi86.jpg"></a></p>

<p>Right?  Yea, that doesn&#8217;t work for me since vi makes no sense to me at all and I couldn&#8217;t figure out how to open it in such a way that I could actually make changes.</p>

<p>For those of you in the audience that are <em>neck beard and ponytail</em> challenged, here is what you do.</p>

<ul>
  <li>From the Finder menu, click Go &#8211;> Go to Folder</li>
  <li>Type in /etc</li>
  <li>Find your Hosts file.  Double click to open it.  I recommend editing it with <a href="http://www.apple.com/downloads/macosx/development_tools/smultron.html">Smultron</a> since it will allow you to authenticate to save.</li>
</ul>

<p>That&#8217;s how you do that.</p>

<p>Now, to install WordPress MU on MAMP.  I have spent more than an hour trying to find the solution.  All I manage to find are crappy responses on message boards, but not a single link to my solution.  It requires editing the httpconf file in MAMP and the hosts file I do know that.</p>

<p>So far it&#8217;s installed and I can get a 404 page.  Once I make it work, I will be posting it here as well.</p>
<p>Related posts:</p><li>
<li><a href='http://donburnside.com/the-sunday-post-xiv/' rel='bookmark' title='The Sunday Post XIV'>The Sunday Post XIV</a></li>
</li>]]></content:encoded>
			<wfw:commentRss>http://donburnside.com/finding-instruction/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>What I am Working on</title>
		<link>http://donburnside.com/what-i-am-working-on/</link>
		<comments>http://donburnside.com/what-i-am-working-on/#comments</comments>
		<pubDate>Fri, 09 Jan 2009 05:32:27 +0000</pubDate>
		<dc:creator>Don</dc:creator>
				<category><![CDATA[WordPress Fixes]]></category>
		<category><![CDATA[coda slider]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://donburnside.com/?p=2160</guid>
		<description><![CDATA[I&#8217;ve had a fairly productive 2 weeks at the new job doing some serious work with WordPress and it&#8217;s time for me to jot down some notes before I forget everything that I&#8217;ve done. The front page is 100% automated pulling posts from a single category twice, all of the posts once plus the feed [...]
Related posts:<li>
<li><a href='http://donburnside.com/stuff-ive-been-working-on-part-ii/' rel='bookmark' title='Stuff I&#8217;ve been working on, part II'>Stuff I&#8217;ve been working on, part II</a></li>
<li><a href='http://donburnside.com/wordpress-powered-site-2/' rel='bookmark' title='WordPress Powered Site'>WordPress Powered Site</a></li>
<li><a href='http://donburnside.com/changes-to-wtf/' rel='bookmark' title='Changes to w(t)f'>Changes to w(t)f</a></li>
</li>]]></description>
			<content:encoded><![CDATA[<p><img src="http://img.skitch.com/20090109-dnu6yfsccnrn4s2t8bknagupmd.png" style="width:250px;padding:3px;margin:3px;float:right;">I&#8217;ve had a fairly productive 2 weeks at the new job doing some serious work with WordPress and it&#8217;s time for me to jot down some notes before I forget everything that I&#8217;ve done.</p>

<p>The front page is 100% automated pulling posts from a single category twice, all of the posts once plus the feed from a message board.  Almost exactly like the <a href="/">homepage</a> here.  A new addition to the layout that I have not used before is a jQuery slider.  After some tweaking it&#8217;s actually very very cool.  To get an idea, it works like <a href="http://www.ndoherty.com/demos/coda-slider/1.1.1/">this</a>.  I will be getting more into jQuery in the very near future.</p>

<p>Moving off the home page is a custom category template where, if need be, a different header graphic can be displayed for each category.  Too keep the template file to a minimum, this is all driven from 2 php files and 1 css file.  Normally you could build out 1 category template for each category, but with over 20 cats, that would get to be a bit unweildy.  Same goes with the CSS.  It&#8217;s just easier to keep all those category page specific styles in their own file.  Turns out, I am not doing the individual templates, but should minds change, it&#8217;s ready to go.</p>

<p><span id="more-2160"></span></p>

<p>From there, it&#8217;s just a normal single.php and index.php to display everything else.</p>

<p>Something new I&#8217;m having to deal with is user accounts.  No comments without first creating an account and all that.  I did it once and did not like the fact that a regular user, upon logging in, sees the WP Dashboard.  A quick google search got me a hack for wp-login.php that redirects on login to whatever page I specify.  Very very cool.  I will be adding a login area anywhere that is needed to keep normal users from seeing either the WP login page or the Dashboard.</p>

<p>And, of course, since I have user logged in or not information, I&#8217;m able to do some cool if-else magic for displaying ads or not, changing sections of the page, or not.  Pretty much whatever I want to do.  Could probably have a completely different theme for users that are logged in if I wanted to.  Very very cool stuff.</p>

<p>In total there are 17 template files, 4 files for the script that runs the slider and 3 CSS files.  By far the most involved theme I have ever built.  And right now it is 100% operational.  I need to do a little tweaking on the layout yet plus run it through IE.</p>

<p>I hope it passes.</p>
<p>Related posts:</p><li>
<li><a href='http://donburnside.com/stuff-ive-been-working-on-part-ii/' rel='bookmark' title='Stuff I&#8217;ve been working on, part II'>Stuff I&#8217;ve been working on, part II</a></li>
<li><a href='http://donburnside.com/wordpress-powered-site-2/' rel='bookmark' title='WordPress Powered Site'>WordPress Powered Site</a></li>
<li><a href='http://donburnside.com/changes-to-wtf/' rel='bookmark' title='Changes to w(t)f'>Changes to w(t)f</a></li>
</li>]]></content:encoded>
			<wfw:commentRss>http://donburnside.com/what-i-am-working-on/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress 2.7</title>
		<link>http://donburnside.com/wordpress-27/</link>
		<comments>http://donburnside.com/wordpress-27/#comments</comments>
		<pubDate>Thu, 11 Dec 2008 16:06:36 +0000</pubDate>
		<dc:creator>Don</dc:creator>
				<category><![CDATA[WordPress Fixes]]></category>
		<category><![CDATA[wordpress 2.7]]></category>

		<guid isPermaLink="false">http://donburnside.com/?p=1959</guid>
		<description><![CDATA[After what seemed like about 2 weeks since WordPress 2.6.5 start to nag me across the top of the page, version 2.7 comes out. I&#8217;ve been kind of excited about this release since I&#8217;ve seen screen shots so I went ahead and installed it here. It definitely looks more like an application now, as opossed [...]
Related posts:<li>
<li><a href='http://donburnside.com/why-i-love-wordpress/' rel='bookmark' title='Why I love WordPress'>Why I love WordPress</a></li>
<li><a href='http://donburnside.com/wordpress-251-updates-and-other-kooky-things/' rel='bookmark' title='WordPress 2.5.1 updates and other kooky things'>WordPress 2.5.1 updates and other kooky things</a></li>
</li>]]></description>
			<content:encoded><![CDATA[<p>After what seemed like about 2 weeks since WordPress 2.6.5 start to nag me across the top of the page, version 2.7 comes out.  I&#8217;ve been kind of excited about this release since I&#8217;ve seen screen shots so I went ahead and installed it here.</p>

<p><a href="http://img.skitch.com/20081211-ne3udfhjkmgtr4yrpsejcbtfed.jpg" rel="lightbox-1959"><img src="http://img.skitch.com/20081211-ne3udfhjkmgtr4yrpsejcbtfed.jpg" style="width:500px;"></a></p>

<p>It definitely looks more like an application now, as opossed to something that runs in the browser.</p>

<p>Newest feature that rocks?</p>

<p><a href="http://img.skitch.com/20081211-b6ip5gpa66wmj4d3r7k3ifgeas.jpg" rel="lightbox-1959"><img src="http://img.skitch.com/20081211-b6ip5gpa66wmj4d3r7k3ifgeas.jpg" style="width:500px;"></a></p>

<p>Quick edit, right from the manage posts screen.  Sweet!  Also built-in automatic upgrade.  It&#8217;s about time.  That will definitely make it easier to install the always-too-soon updates to WP.</p>

<p>So far, this theme and most of the plugins check out.  There is a minor problem with the Viddler plug-in and the dashboard page, but it&#8217;s working well otherwise.</p>

<p>If you are wondering if you should update, I would.  Might as well get it out of the way.  With the auto-updater built in, the next update should be a piece of cake.</p>
<p>Related posts:</p><li>
<li><a href='http://donburnside.com/why-i-love-wordpress/' rel='bookmark' title='Why I love WordPress'>Why I love WordPress</a></li>
<li><a href='http://donburnside.com/wordpress-251-updates-and-other-kooky-things/' rel='bookmark' title='WordPress 2.5.1 updates and other kooky things'>WordPress 2.5.1 updates and other kooky things</a></li>
</li>]]></content:encoded>
			<wfw:commentRss>http://donburnside.com/wordpress-27/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fetch RSS with WordPress</title>
		<link>http://donburnside.com/fetch-rss-with-wordpress/</link>
		<comments>http://donburnside.com/fetch-rss-with-wordpress/#comments</comments>
		<pubDate>Sun, 05 Oct 2008 00:36:31 +0000</pubDate>
		<dc:creator>Don</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[WordPress Fixes]]></category>
		<category><![CDATA[fetch RSS]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.windthefrog.net/?p=1538</guid>
		<description><![CDATA[More for my personal WordPress Wiki, but I can&#8217;t believe I didn&#8217;t share this before. I&#8217;m sure you&#8217;ve seen the front page of donburnside.com or even the Motoringfile News Room. I built both of them using features built into WordPress and nothing else. How did I do it? Start by checking out this page at [...]
Related posts:<li>
<li><a href='http://donburnside.com/another-wordpress-nugget/' rel='bookmark' title='Another WordPress nugget'>Another WordPress nugget</a></li>
<li><a href='http://donburnside.com/wordpress-powered-site-2/' rel='bookmark' title='WordPress Powered Site'>WordPress Powered Site</a></li>
<li><a href='http://donburnside.com/wordpress-powered-site/' rel='bookmark' title='WordPress powered site'>WordPress powered site</a></li>
</li>]]></description>
			<content:encoded><![CDATA[<p>More for my personal WordPress Wiki, but I can&#8217;t believe I didn&#8217;t share this before.</p>

<p>I&#8217;m sure you&#8217;ve seen the front page of <a href="http://www.donburnside.com">donburnside.com</a> or even the <a href="http://www.motoringfile.com/news-room">Motoringfile News Room</a>.  I built both of them using features built into WordPress and nothing else.  How did I do it?</p>

<p>Start by checking out <a href="http://codex.wordpress.org/Function_Reference/fetch_rss">this page</a> at the <a href="http://codex.wordpress.org">Codex</a>.</p>

<blockquote>
  <p>Retrieves an RSS feed and parses it. Uses the MagpieRSS and RSSCache functions for parsing and automatic caching and the Snoopy HTTP client for the actual retrieval.</p>
</blockquote>

<p>If you scroll down the page a little bit there is an example of what you need to get things working.  In my testing, I started with that as a base and modified it for how I needed it to look and work.  Once you get it working the way you want, what do you do with it?</p>

<p>I built custom page templates within the WordPress theme that included the code to pull the RSS feeds I wanted.  Then, I created a page with a title and used that custom template for the page.  If you are familiar with modifying WP template files or creating custom template files, then it should be easy for you too.</p>
<p>Related posts:</p><li>
<li><a href='http://donburnside.com/another-wordpress-nugget/' rel='bookmark' title='Another WordPress nugget'>Another WordPress nugget</a></li>
<li><a href='http://donburnside.com/wordpress-powered-site-2/' rel='bookmark' title='WordPress Powered Site'>WordPress Powered Site</a></li>
<li><a href='http://donburnside.com/wordpress-powered-site/' rel='bookmark' title='WordPress powered site'>WordPress powered site</a></li>
</li>]]></content:encoded>
			<wfw:commentRss>http://donburnside.com/fetch-rss-with-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

