<?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>Simmons Consulting &#187; WordPress</title>
	<atom:link href="http://www.simmonsconsulting.com/category/computers/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.simmonsconsulting.com</link>
	<description>Web Design &#38; Personal Blog</description>
	<lastBuildDate>Mon, 21 Nov 2011 04:36:01 +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>Integrating WP in external PHP pages</title>
		<link>http://www.simmonsconsulting.com/2010/06/24/integrating-wp-in-external-php-pages/</link>
		<comments>http://www.simmonsconsulting.com/2010/06/24/integrating-wp-in-external-php-pages/#comments</comments>
		<pubDate>Thu, 24 Jun 2010 16:00:11 +0000</pubDate>
		<dc:creator>Toby Simmons</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.simmonsconsulting.com/?p=612</guid>
		<description><![CDATA[I have several external pages that use the WP theme engine to wrap the content. I use the method found here, which worked great under WordPress 2.9.2. After upgrading to WP 3.0, these pages no longer worked as expected but instead generated 404s; it turns out the fix is rather simple. The code to include [...]]]></description>
			<content:encoded><![CDATA[<p>I have several external pages that use the WP theme engine to wrap the content. I use the method found <a href="http://codex.wordpress.org/Integrating_WordPress_with_Your_Website" title="Integrating WordPress with Your Website" rel="external">here</a>, which worked great under WordPress 2.9.2.  After upgrading to WP 3.0, these pages no longer worked as expected but instead generated 404s; it turns out the fix is rather simple.</p>
<p><span id="more-612"></span>The code to include the WP theme in external pages used to look like this:</p>
<div class="geshi no php">
<div class="head">< ?php</div>
<ol>
<li class="li1">
<div class="de1"><span class="kw1">require</span><span class="br0">&#40;</span><span class="st0">&#39;./wp&#45;blog&#45;header.php&#39;</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">get_header<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">?&gt;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="sy0">&lt;</span>h2<span class="sy0">&gt;</span>This is the external content<span class="sy0">.&lt;/</span>h2<span class="sy0">&gt;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="sy0">&lt;</span> ?php</div>
</li>
<li class="li1">
<div class="de1">get_sidebar<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">get_footer<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">?&gt;</span></div>
</li>
</ol>
</div>
<p>The newest version of WP merged the old WordPress Multi-User (WPMU) and the standalone version of WordPress. Since this merger, the new way to include WP in external pages is to change the require() statement to pull in wp-load.php (instead of wp-blog-header.php) like this:</p>
<div class="geshi no php">
<div class="head">< ?php</div>
<ol>
<li class="li1">
<div class="de1"><span class="kw1">require</span><span class="br0">&#40;</span><span class="st0">&#39;./wp&#45;load.php&#39;</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">get_header<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">?&gt;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="sy0">&lt;</span>h2<span class="sy0">&gt;</span>This is the external content<span class="sy0">.&lt;/</span>h2<span class="sy0">&gt;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="sy0">&lt;</span> ?php</div>
</li>
<li class="li1">
<div class="de1">get_sidebar<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">get_footer<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">?&gt;</span></div>
</li>
</ol>
</div>
<p>Now your external pages work just like they used to! I found the answer on a <a href="http://bbpress.org/forums/topic/deep-integration-google-might-not-be-indexing-your-forum-pages" title="Deep integration? Google might not be indexing your forum pages" rel="external">BBPress forum post</a> from nine months ago.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simmonsconsulting.com/2010/06/24/integrating-wp-in-external-php-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Can Guide Missiles?</title>
		<link>http://www.simmonsconsulting.com/2010/06/14/wordpress-can-guide-missiles/</link>
		<comments>http://www.simmonsconsulting.com/2010/06/14/wordpress-can-guide-missiles/#comments</comments>
		<pubDate>Mon, 14 Jun 2010 17:35:26 +0000</pubDate>
		<dc:creator>Toby Simmons</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.simmonsconsulting.com/?p=607</guid>
		<description><![CDATA[This is just so funny! http://www.viper007bond.com/2010/06/12/so-apparently-wordpress-can-guide-missiles/]]></description>
			<content:encoded><![CDATA[<p>This is just so funny!</p>
<p><a href="http://www.viper007bond.com/2010/06/12/so-apparently-wordpress-can-guide-missiles/" rel="external">http://www.viper007bond.com/2010/06/12/so-apparently-wordpress-can-guide-missiles/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.simmonsconsulting.com/2010/06/14/wordpress-can-guide-missiles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress and duplicate sites in stats plugin</title>
		<link>http://www.simmonsconsulting.com/2008/07/18/wordpress-and-duplicate-sites-in-stats-plugin/</link>
		<comments>http://www.simmonsconsulting.com/2008/07/18/wordpress-and-duplicate-sites-in-stats-plugin/#comments</comments>
		<pubDate>Fri, 18 Jul 2008 17:45:03 +0000</pubDate>
		<dc:creator>Toby Simmons</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[duplicate sites]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[stats]]></category>

		<guid isPermaLink="false">http://www.simmonsconsulting.com/2008/07/18/wordpress-and-duplicate-sites-in-stats-plugin/</guid>
		<description><![CDATA[I use the WordPress.com Stats plugin on my blog. It is great for generating basic traffic statistics. When I upgraded my WordPress version to 2.6, something happened during the process to create a duplicate site in my stats drop down. The biggest problem is that all my old stats are associated with the original site, [...]]]></description>
			<content:encoded><![CDATA[<p>I use the <a href="http://wordpress.org/extend/plugins/stats/" class="offsite" title="WordPress.com Stats plugin">WordPress.com Stats plugin</a> on my blog. It is great for generating basic traffic statistics. When I upgraded my WordPress version to 2.6, something happened during the process to create a duplicate site in my stats drop down. The biggest problem is that all my old stats are associated with the original site, while all my new stats (from 7/15/2008 forward) are being pushed into the new site.<span id="more-320"></span><br />
Based on <a href="http://wordpress.org/support/topic/189272" class="offsite">searching</a> <a href="http://wordpress.org/support/topic/186599" class="offsite">through</a> the <a href="http://wordpress.org/support/topic/149485" class="offsite">support groups</a>, I don&#8217;t think I&#8217;m the only person to have seen this or similar issues with the stats plugin and WP 2.6.</p>
<p>While upgrading, I disabled all my plugins. After the upgrade, when I re-enabled all my plugins, I was prompted to re-enter my API key for the stats plugin. I entered (what must have been) the wrong API key because when I entered it, it threw an error. I then doubled-checked the key and re-entered it (apparently correctly this time) and it was accepted but duplicate site was created.</p>
<p>I&#8217;m not sure how to go about merging the stats and deleting the duplicate site, but it sure would be nice to be able to do that.</p>
<p>I&#8217;ve opened a <a href="http://plugins.trac.wordpress.org/ticket/888" class="offsite" title="Like to have the ability to merge site stats and/or delete duplicate sites">trac ticket</a> to hopefully find out what can be done to fix this. if you have experienced this, please go and add your comments to the ticket as well.</p>
<p>Here&#8217;s what the drop down with the duplicate sites looks like:</p>
<p><img src="http://www.simmonsconsulting.com/wp-content/uploads/2008/07/dupe1.png" width="433" height="98" style="border: 1px solid #666; margin: 0 0 0 20px;" alt="Screenshot of duplicate sites in the WordPress.com stats plugin" title="Screenshot of duplicate sites in the WordPress.com stats plugin" /></p>
<p>Updated @ 2008-07-29 02:14:10 p.m: There might be a workaround <a href="http://wordpress.org/support/topic/189272?replies=14" class="offsite" title="WordPress support forums">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simmonsconsulting.com/2008/07/18/wordpress-and-duplicate-sites-in-stats-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running a WordPress blog in site root using IIS</title>
		<link>http://www.simmonsconsulting.com/2008/04/21/running-a-wordpress-blog-in-site-root-using-iis/</link>
		<comments>http://www.simmonsconsulting.com/2008/04/21/running-a-wordpress-blog-in-site-root-using-iis/#comments</comments>
		<pubDate>Mon, 21 Apr 2008 16:59:13 +0000</pubDate>
		<dc:creator>Toby Simmons</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[cgi]]></category>
		<category><![CDATA[iis]]></category>
		<category><![CDATA[isapi]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.simmonsconsulting.com/2008/04/21/running-a-wordpress-blog-in-site-root-using-iis/</guid>
		<description><![CDATA[Up until recently, I had never been able to setup a WordPress blog as the root of a web site under IIS. But I have discovered the secret and have recently changed my own site so that my content no longer shows up under a &#8220;/wordpress&#8221; directory but instead in the root. The problem stems [...]]]></description>
			<content:encoded><![CDATA[<p>Up until recently, I had never been able to setup a WordPress blog as the root of a web site under IIS. But I have discovered the secret and have recently changed my own site so that my content no longer shows up under a &#8220;/wordpress&#8221; directory but instead in the root.<br />
<span id="more-305"></span><br />
The problem stems from the way PHP is installed. On Windows IIS, you can run PHP in two modes: ISAPI and CGI/FastCGI. I had always installed it using ISAPI because, at least in the past, the <a href="http://en.wikipedia.org/wiki/ISAPI#Performance_and_compromise" class="offsite" title="WikiPedia : ISAPI">performance gain</a> was substantial. When running as ISAPI, the PHP processing engine gets loaded when the first PHP page is requested, then it stays in memory. Each subsequent PHP page request is then processed through that pre-loaded image which results in a bit of a speed up.</p>
<p>It turns out that recent versions (5.2.5) of PHP are pretty unstable under IIS when running as ISAPI. For example (and this is why you couldn&#8217;t run a WordPress blog in the root of a site) the current working directory is inconsistent (see <a href="http://bugs.php.net/bug.php?id=42460" class="offsite" title="Working directory reporting inconsistent">bug #42460</a> and <a href="http://bugs.php.net/bug.php?id=44777" class="offsite" title="PHP ISAPI random working dir only in Root of website">bug #44777</a>)</p>
<p>The symptom is the main index.php cannot find the first required file, ./wp-blog-header.php:</p>
<div class="geshi no php">
<ol>
<li class="li1">
<div class="de1"><span class="coMULTI">/**</span></div>
</li>
<li class="li1">
<div class="de1"><span class="coMULTI">&nbsp;* Front to the WordPress application. This file doesn&#39;t do anything, but loads</span></div>
</li>
<li class="li1">
<div class="de1"><span class="coMULTI">&nbsp;* wp&#45;blog&#45;header.php which does and tells WordPress to load the theme.</span></div>
</li>
<li class="li1">
<div class="de1"><span class="coMULTI">&nbsp;*</span></div>
</li>
<li class="li1">
<div class="de1"><span class="coMULTI">&nbsp;* @package WordPress</span></div>
</li>
<li class="li1">
<div class="de1"><span class="coMULTI">&nbsp;*/</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="coMULTI">/**</span></div>
</li>
<li class="li1">
<div class="de1"><span class="coMULTI">&nbsp;* Tells WordPress to load the WordPress theme and output it.</span></div>
</li>
<li class="li1">
<div class="de1"><span class="coMULTI">&nbsp;*</span></div>
</li>
<li class="li1">
<div class="de1"><span class="coMULTI">&nbsp;* @var bool</span></div>
</li>
<li class="li1">
<div class="de1"><span class="coMULTI">&nbsp;*/</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">define</span><span class="br0">&#40;</span><span class="st0">&#39;WP_USE_THEMES&#39;</span><span class="sy0">,</span> <span class="kw2">true</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="coMULTI">/** Loads the WordPress Environment and Template */</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">require</span><span class="br0">&#40;</span><span class="st0">&#39;./wp&#45;blog&#45;header.php&#39;</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
</ol>
</div>
<p>When index.php tries to load wp-blog-header.php, it looks in the &#8220;current&#8221; directory (the ./ indicates &#8220;the current directory&#8221;). The problem is that the current working directory is unpredictable every time the page loads when the PHP page is called from the root of a web site so it can never find the wp-blog-header.php. </p>
<p>The fix is to install PHP using CGI/FastCGI. This is usually as simple as changing the script map to use php.exe or php-cgi.exe (depending on the version of PHP you are running) instead of php4isapi.dll.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simmonsconsulting.com/2008/04/21/running-a-wordpress-blog-in-site-root-using-iis/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WordPress 2.5 file uploader and IE7</title>
		<link>http://www.simmonsconsulting.com/2008/03/29/wordpress-25-file-uploader-and-ie7/</link>
		<comments>http://www.simmonsconsulting.com/2008/03/29/wordpress-25-file-uploader-and-ie7/#comments</comments>
		<pubDate>Sat, 29 Mar 2008 18:44:19 +0000</pubDate>
		<dc:creator>Toby Simmons</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[browser bias]]></category>
		<category><![CDATA[ie7]]></category>

		<guid isPermaLink="false">http://www.simmonsconsulting.com/wpbeta/2008/03/29/wordpress-25-file-uploader-and-ie7/</guid>
		<description><![CDATA[So, you just upgraded your WordPress blog to 2.5 and you excitedly go to the admin screen to check out the new vaunted multi-file upload with progress bar. You click on the Write tab then click on any of the &#8220;Add Media&#8221; icons. The screen dims a bit then you are presented with &#8230; not [...]]]></description>
			<content:encoded><![CDATA[<p>So, you just upgraded your <a href="http://wordpress.org/development/2008/03/wordpress-25-brecker/" class="offsite" title="WordPress 2.5 announcement" rel="external">WordPress blog to 2.5</a> and you excitedly go to the admin screen to check out the new vaunted multi-file upload with progress bar. You click on the Write tab then click on any of the &#8220;Add Media&#8221; icons. The screen dims a bit then you are presented with &#8230; not the super-sexy, <a href="http://swfupload.org/" class="offsite" title="SWFUpload" rel="external">swfupload-based</a> multi-file uploader but instead a dull, a simple, single file upload form and a script error. Why? It&#8217;s because you are running IE7. Fortunately, there is a pretty easy fix (that appears to be <a href="http://trac.wordpress.org/ticket/6443" class="offsite" title="WordPress bug trac, ticket 6443" rel="external">planned for 2.5.1</a>) There are just two commas that need to be deleted, in two different files.</p>
<p>The first fix is in the file <strong>wp-admin/includes/media.php</strong> &#8230; down at line 817, delete the comma &#8230;</p>
<p>Change this:</p>
<div class="geshi no javascript">
<ol>
<li class="li1">
<div class="de1">debug: <span class="kw2">false</span>,</div>
</li>
</ol>
</div>
<p>To this:</p>
<div class="geshi no javascript">
<ol>
<li class="li1">
<div class="de1">debug: <span class="kw2">false</span></div>
</li>
</ol>
</div>
<p>The next file to edit is <strong>wp-includes/js/swfupload/handlers.js</strong> &#8230; down at line 99, delete the comma right after the number 36 &#8230;</p>
<p>Change this:</p>
<div class="geshi no javascript">
<ol>
<li class="li1">
<div class="de1">.<span class="me1">animate</span><span class="br0">&#40;</span><span class="br0">&#123;</span>minHeight:<span class="nu0">0</span>,height:<span class="nu0">36</span>,<span class="br0">&#125;</span>, <span class="nu0">400</span>, <span class="kw2">null</span>, <span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#123;</span>jQuery<span class="br0">&#40;</span><span class="kw1">this</span><span class="br0">&#41;</span>.<span class="me1">children</span><span class="br0">&#40;</span><span class="st0">&#39;.describe&#39;</span><span class="br0">&#41;</span>.<span class="me1">remove</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#125;</span><span class="br0">&#41;</span></div>
</li>
</ol>
</div>
<p>To this:</p>
<div class="geshi no javascript">
<ol>
<li class="li1">
<div class="de1">.<span class="me1">animate</span><span class="br0">&#40;</span><span class="br0">&#123;</span>minHeight:<span class="nu0">0</span>,height:<span class="nu0">36</span><span class="br0">&#125;</span>, <span class="nu0">400</span>, <span class="kw2">null</span>, <span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#123;</span>jQuery<span class="br0">&#40;</span><span class="kw1">this</span><span class="br0">&#41;</span>.<span class="me1">children</span><span class="br0">&#40;</span><span class="st0">&#39;.describe&#39;</span><span class="br0">&#41;</span>.<span class="me1">remove</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#125;</span><span class="br0">&#41;</span></div>
</li>
</ol>
</div>
<p>That&#8217;s it! The fancy multi-uploader now works in Internet Explorer 7!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simmonsconsulting.com/2008/03/29/wordpress-25-file-uploader-and-ie7/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Daylight saving time and WordPress XMLRPC</title>
		<link>http://www.simmonsconsulting.com/2008/02/29/daylight-saving-time-and-wordpress-xmlrpc/</link>
		<comments>http://www.simmonsconsulting.com/2008/02/29/daylight-saving-time-and-wordpress-xmlrpc/#comments</comments>
		<pubDate>Fri, 29 Feb 2008 20:27:17 +0000</pubDate>
		<dc:creator>Toby Simmons</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Zempt]]></category>
		<category><![CDATA[daylight]]></category>
		<category><![CDATA[standard]]></category>
		<category><![CDATA[timezone]]></category>
		<category><![CDATA[xmlrpc]]></category>

		<guid isPermaLink="false">http://www.simmonsconsulting.com/wpbeta/2008/02/29/daylight-saving-time-and-wordpress-xmlrpc/</guid>
		<description><![CDATA[Zempt is a desktop blogging client and writing tool that is especially useful for those that have multiple blogs. It enables you to write, edit and spell check new blog posts as well as edit previous blog entries by downloading, editing and reposting them. Having been involved with the Zempt project for five years (and [...]]]></description>
			<content:encoded><![CDATA[<p>Zempt is a desktop blogging client and writing tool that is especially useful for those that have multiple blogs. It enables you to write, edit and spell check new blog posts as well as edit previous blog entries by downloading, editing and reposting them. Having been involved with the Zempt project for five years (and being the only developer for the last two or three) I am pretty familiar with some of the issues that can come up with remote editing of blog posts.<br />
<span id="more-296"></span><br />
One of the most puzzling issues has been how to handle daylight saving time offsets with WordPress. Every time I think I have the issue solved, I discover that I&#8217;ve broken something else. This might be an issue particular to WP and how it handles timezone offsets.</p>
<p>Using Zempt to create brand new posts using the default date (which is &#8220;right now, whenever you post it&#8221;) works fine, every time. And editing previous posts from your blog that were written during the <em>current</em> daylight saving time state also works fine. In other words, if <em>right now</em> it is daylight saving time and the post you are editing was written during daylight saving time, that post&#8217;s time will stay the same. By the same token, If it is <em>currently</em> standard time and the post you are editing was <em>written</em> during standard time, again, the post&#8217;s time stamp will remain unaffected.</p>
<p>The problem comes when editing a post that was written in a <em>different</em> daylight savings state. Stay with me here.</p>
<p>Let&#8217;s suppose you keep your WordPress blog settings up to date &#8230; when daylight saving time kicks in, you update your blog&#8217;s timezone offset promptly. Same thing when daylight time ends, you change your blog&#8217;s timezone offset the same day. Take my blog for example. I am in the Central timezone, so my timezone offsets are -0500 during daylight time and -0600 during standard time.</p>
<p>Now let&#8217;s say it is currently NOT daylight saving time (-0600 for me) and my blog settings are up to date and I want to edit a post that was written while daylight time was in effect. The post I am editing has a time stamp of 9:00 am on Oct. 31, 2007 (CDT).</p>
<p>When I download that post and edit it with Zempt, it knows that Oct. 31 was during daylight time. When I save that post back to my blog, Zempt will dutifully convert that time stamp to University Time Coordinate (UTC) <em>based on the post&#8217;s date</em>, which means in this example, it will add five hours, which is 2:00 pm on Oct. 31, 2007 (UTC).</p>
<p>Unfortunately, WordPress thinks that <em>any post</em> it receives (regardless of the date) must be -0600 hours off from UTC because that&#8217;s what its timezone offset is, so it makes the post&#8217;s time 8:00 am on Oct. 31, 2007 (which is UTC minus six hours) so my original post shows that it is an hour earlier than it really was.</p>
<p>If I edit this post again with Zempt, the same thing happens, which means it becomes 7:00 am on Oct. 31, 2007. If you do this enough times, the time stamp gets really screwed up.</p>
<p>A similar problem occurs if you edit a post <em>during</em> daylight time  that has an original post date that was standard time, except the post gets pushed forward an hour each time you save it to your blog.</p>
<p>I&#8217;ve tested <a rel="external" href="http://infinite-sushi.com/software/ecto/" class="offset" title="Ecto desktop blogging client">Ecto</a> (on Windows) and it has the same problem.</p>
<p>So here is my question: What should an offline blog writing tool like Zempt do to accommodate this problem? One thing I&#8217;ve considered is to have Zempt check the local machine&#8217;s current daylight setting vs. the post&#8217;s date and either add or subtract the appropriate amount from the post date&#8217;s UTC to have it work out but this seems to be a poor workaround. What would be nice is if there was a way through XMLRPC to tell WordPress to use a specified timezone offset for a particular post.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simmonsconsulting.com/2008/02/29/daylight-saving-time-and-wordpress-xmlrpc/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WordPress, IIS, timezone auto updating!</title>
		<link>http://www.simmonsconsulting.com/2008/02/04/wordpress-iis-timezone-auto-updating/</link>
		<comments>http://www.simmonsconsulting.com/2008/02/04/wordpress-iis-timezone-auto-updating/#comments</comments>
		<pubDate>Mon, 04 Feb 2008 22:35:59 +0000</pubDate>
		<dc:creator>Toby Simmons</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[dst]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[timezone]]></category>

		<guid isPermaLink="false">http://www.simmonsconsulting.com/wpbeta/2008/02/04/wordpress-iis-timezone-auto-updating/</guid>
		<description><![CDATA[Most folks running WordPress use some flavor of Unix/Linux and Apache. If you are like me and run WordPress on IIS, it can be frustrating at times because you tend to feel a bit like a stepchild. There are several cool plugins for WP out there, but many just don&#8217;t run on Windows, at least [...]]]></description>
			<content:encoded><![CDATA[<p>Most folks running WordPress use some flavor of Unix/Linux and Apache. If you are like me and run WordPress on IIS, it can be frustrating at times because you tend to feel a bit like a stepchild. There are several cool plugins for WP out there, but many just don&#8217;t run on Windows, at least not without heavy modifications.<br />
<span id="more-294"></span><br />
One particular issue about WP that had driven me crazy was the issue of having to <em>manually</em> update your timezone offset every time daylight savings time started or ended. There is a <a href="http://kimmo.suominen.com/sw/timezone/" class="offsite" title="Timezone plugin for WordPress">plugin</a> that is supposed to make this adjustment automagically for you based on either the server settings or the specified timezone setting you give it. The <a href="http://wordpress.org/extend/ideas/topic.php?id=369" class="offsite" title="Idea: Automatically adjust for daylight saving time">problem</a> is that the plugin didn&#8217;t work on Windows. However, you can make it work by editing one line of the plugin.</p>
<p>The problem is due to the different way the strftime() function works on *nix vs. Windows. However, with one small edit you can make the plugin work on Windows.</p>
<p>Go to line 150 (of version 2.3 of the plugin, the latest as of this writing) and replace:</p>
<div class="geshi no php">
<ol>
<li class="li1">
<div class="de1">&nbsp; &nbsp;<span class="re1">$offset</span> <span class="sy0">=</span> <span class="kw3">strftime</span><span class="br0">&#40;</span><span class="st0">&#39;%z&#39;</span><span class="sy0">,</span> <span class="kw3">time</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
</ol>
</div>
<p>with</p>
<div class="geshi no php">
<ol>
<li class="li1">
<div class="de1">&nbsp; &nbsp;<span class="re1">$offset</span> <span class="sy0">=</span> <span class="kw3">date</span><span class="br0">&#40;</span><span class="st0">&#39;O&#39;</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
</ol>
</div>
<p>You can now specify your timezone and it should automatically (as if by magic!) change the offset from GMT for you. Now stop feeling sorry for yourself!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simmonsconsulting.com/2008/02/04/wordpress-iis-timezone-auto-updating/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgraded to 2.1, Zempt works swell</title>
		<link>http://www.simmonsconsulting.com/2007/02/11/upgraded-to-21-zempt-works-swell/</link>
		<comments>http://www.simmonsconsulting.com/2007/02/11/upgraded-to-21-zempt-works-swell/#comments</comments>
		<pubDate>Sun, 11 Feb 2007 21:01:46 +0000</pubDate>
		<dc:creator>Toby Simmons</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.simmonsconsulting.com/wpbeta/2007/02/11/upgraded-to-21-zempt-works-swell/</guid>
		<description><![CDATA[I finally updated my blog to WordPress 2.1 and Zempt works just swell. I thought I might have more problems than I actually have had. One thing about the 2.1 out of the box, though, is that WordPress returns invalid XMLRPC response to edit an existing entry. The problem was that WordPress was returning the [...]]]></description>
			<content:encoded><![CDATA[<p>I finally updated my blog to WordPress 2.1 and Zempt works just swell. I thought I might have more problems than I actually have had. One thing about the 2.1 out of the box, though, is that WordPress returns invalid XMLRPC response to edit an existing entry. The problem was that WordPress was returning the categoryId as an &lt;int&gt; instead of a &lt;string&gt; as the XMLRPC spec says. This would make Zempt crash. Fortunately, someone committed a <a href="http://trac.wordpress.org/ticket/3662" title="Change to XMLRPC for compliance" class="offsite">patch</a> to the WordPress Trac which fixes it perfectly.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simmonsconsulting.com/2007/02/11/upgraded-to-21-zempt-works-swell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apostrophe in title causes IE script error in WordPress admin</title>
		<link>http://www.simmonsconsulting.com/2006/04/06/apostrophe-in-title-causes-ie-script-error-in-wordpress-admin/</link>
		<comments>http://www.simmonsconsulting.com/2006/04/06/apostrophe-in-title-causes-ie-script-error-in-wordpress-admin/#comments</comments>
		<pubDate>Fri, 07 Apr 2006 02:59:15 +0000</pubDate>
		<dc:creator>Toby Simmons</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.simmonsconsulting.com/wpbeta/2006/04/06/apostrophe-in-title-causes-ie-script-error-in-wordpress-admin/</guid>
		<description><![CDATA[If you go to your admin panel and click on Manage, you might notice that occasionally Internet Explorer throws a script error. The error will likely be: Error:Expected ')' The script that throws the error is the confirmation dialog box that WordPress creates for when you click to delete a post or page entry. The [...]]]></description>
			<content:encoded><![CDATA[<p>If you go to your admin panel and click on <strong>Manage</strong>, you might notice that occasionally Internet Explorer throws a script error.<br />
<span id="more-237"></span><br />
 The error will likely be:</p>
<pre>Error:Expected ')'</pre>
<p>The script that throws the error is the confirmation dialog box that WordPress creates for when you click to delete a post or page entry. The script runs a javascript function called deleteSomething(). One of the parameters passed to this function is the title of the post or page.  If the title of your item has an apostrophe in it, when the title is passed to the function as a quoted string, the apostrophe would terminate the string early resulting in a script error. Thankfully, WordPress converts any apostrophes in the title to the numeric HTML entity <em>&amp;#039;</em>. This works great in Firefox.</p>
<p>Unfortunately, IE still sees it as a single quote mark and throws a script error.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simmonsconsulting.com/2006/04/06/apostrophe-in-title-causes-ie-script-error-in-wordpress-admin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WP upgrade (1.5.2 to 2.0.1) &#8212; so far, so good</title>
		<link>http://www.simmonsconsulting.com/2006/02/14/wp-upgrade-152-to-201-so-far-so-good/</link>
		<comments>http://www.simmonsconsulting.com/2006/02/14/wp-upgrade-152-to-201-so-far-so-good/#comments</comments>
		<pubDate>Tue, 14 Feb 2006 21:26:32 +0000</pubDate>
		<dc:creator>Toby Simmons</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.simmonsconsulting.com/wpbeta/2006/02/14/wp-upgrade-152-to-201-so-far-so-good/</guid>
		<description><![CDATA[Well, I&#8217;ve updated my WP to 2.0.1. The upgrade wasn&#8217;t without hitches, but it seems to be pretty stable right now. Permalinks under IIS was the main issue, but the 404-handler is working so far. On my test machine (Windows XP) the 404-handler doesn&#8217;t work consistently, but under Windows server it works fine.]]></description>
			<content:encoded><![CDATA[<p>Well, I&#8217;ve updated my WP to 2.0.1. The upgrade wasn&#8217;t without hitches, but it seems to be pretty stable right now. Permalinks under IIS was the main issue, but the <a href="http://www.simmonsconsulting.com/2005/11/22/wordpress-permalinks-on-iis/" title="Permalinks for WP on IIS without rewrite!">404-handler</a> is working so far. On my test machine (Windows XP) the 404-handler doesn&#8217;t work consistently, but under Windows server it works fine.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simmonsconsulting.com/2006/02/14/wp-upgrade-152-to-201-so-far-so-good/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached (User agent is rejected)
Database Caching 9/18 queries in 0.026 seconds using memcached

Served from: www.simmonsconsulting.com @ 2012-02-08 00:20:02 -->
