<?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>Steve Strutt</title>
	<atom:link href="http://sjstrutt.com/feed" rel="self" type="application/rss+xml" />
	<link>http://sjstrutt.com</link>
	<description>Web Developer &#38; Internet Marketing Consultant in New Orleans, LA</description>
	<lastBuildDate>Thu, 12 Apr 2012 00:05:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>WP Admin Toolbar Disappears After Changing URL</title>
		<link>http://sjstrutt.com/wp-admin-toolbar-disappears-after-changing-site-address.htm</link>
		<comments>http://sjstrutt.com/wp-admin-toolbar-disappears-after-changing-site-address.htm#comments</comments>
		<pubDate>Thu, 12 Apr 2012 00:05:25 +0000</pubDate>
		<dc:creator>sjstrutt</dc:creator>
				<category><![CDATA[quick-tip]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://sjstrutt.com/?p=190</guid>
		<description><![CDATA[When changing your Site Address within WordPress, the Admin Toolbar on the front end of the site will disappear.  Your user profile has the Admin Toolbar turned on and your theme has wp_head() and wp_footer() in the correct places, but &#8230; <a href="http://sjstrutt.com/wp-admin-toolbar-disappears-after-changing-site-address.htm">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>When changing your Site Address within WordPress, the Admin Toolbar on the front end of the site will disappear.  Your user profile has the Admin Toolbar turned on and your theme has wp_head() and wp_footer() in the correct places, but the Admin Toolbar is still gone.</p>
<p>When you changed your WordPress Site Address, WordPress didn&#8217;t update your cookie path, which prevents WordPress from loading the Admin Toolbar.</p>
<p>To fix this, clear your site cookies by signing out of WordPress and signing back in.  Signing out and signing back in will set your login cookies with the correct path.</p>
]]></content:encoded>
			<wfw:commentRss>http://sjstrutt.com/wp-admin-toolbar-disappears-after-changing-site-address.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Entering 2012</title>
		<link>http://sjstrutt.com/entering-2012.htm</link>
		<comments>http://sjstrutt.com/entering-2012.htm#comments</comments>
		<pubDate>Sat, 31 Dec 2011 23:03:25 +0000</pubDate>
		<dc:creator>sjstrutt</dc:creator>
				<category><![CDATA[personal]]></category>

		<guid isPermaLink="false">http://sjstrutt.com/?p=178</guid>
		<description><![CDATA[&#8220;Engineers instinctively measure their days by what they built.&#8221; &#8211; Rands While I plan to continue full-time development and consulting, I will build and sell software as a service in 2012. &#8220;Real artists ship&#8221; &#8211; Steve Jobs]]></description>
			<content:encoded><![CDATA[<blockquote><p>&#8220;Engineers instinctively measure their days by what they built.&#8221; &#8211; <a href="https://twitter.com/#!/rands/statuses/119838939656892416">Rands</a></p></blockquote>
<p>While I plan to continue full-time development and consulting, I will build <em>and sell</em> software as a service in 2012.</p>
<blockquote><p>&#8220;Real artists ship&#8221; &#8211; <a href="http://www.folklore.org/StoryView.py?story=Real_Artists_Ship.txt">Steve Jobs</a></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://sjstrutt.com/entering-2012.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To: Add SKU to WP e-Commerce Admin Reports</title>
		<link>http://sjstrutt.com/add-sku-to-wp-ecommerce-admin-report.htm</link>
		<comments>http://sjstrutt.com/add-sku-to-wp-ecommerce-admin-report.htm#comments</comments>
		<pubDate>Sun, 04 Sep 2011 11:00:55 +0000</pubDate>
		<dc:creator>sjstrutt</dc:creator>
				<category><![CDATA[how-to]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wp-e-commerce]]></category>

		<guid isPermaLink="false">http://sjstrutt.com/?p=152</guid>
		<description><![CDATA[WP eCommerce offers a feature where an email is dispatched to the administrator when an order is completed.  WP eCommerce calls this email an &#8220;Admin Report&#8221;. These emails are useful for order fulfilment, but they are lacking a key piece &#8230; <a href="http://sjstrutt.com/add-sku-to-wp-ecommerce-admin-report.htm">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>WP eCommerce offers a feature where an email is dispatched to the administrator when an order is completed.  WP eCommerce calls this email an &#8220;Admin Report&#8221;.</p>
<p>These emails are useful for order fulfilment, but they are lacking a key piece of data that you may need to fulfill an order: <strong>the product&#8217;s SKU</strong>.</p>
<p>Fortunately, there&#8217;s a way to include the each product&#8217;s SKU in the Admin Report.  To accomplish this, you need to edit file within the plugin folder: <strong>wp‑e‑commerce\wpsc‑theme\functions\wpsc‑transaction_results_functions.php</strong></p>
<p>In this file find the following code around line 235 (in version 3.8.6):</p>
<pre>$report_product_list.= " - " . $row['quantity'] . " " . $row['name'] . "  " . $message_price . "\n\r";</pre>
<p>And paste the following line in it&#8217;s place:</p>
<pre>$report_product_list.= " - " . $row['quantity'] . " " . wpsc_product_sku($row['prodid']) . " " . $row['name'] . "  " . $message_price . "\n\r";</pre>
<p>With this change, the SKU will be added to your Admin Report after each item&#8217;s quantity.</p>
<p><strong>Please remember</strong>: you may need to edit this code with each WP eCommerce update, so please bookmark this page.</p>
]]></content:encoded>
			<wfw:commentRss>http://sjstrutt.com/add-sku-to-wp-ecommerce-admin-report.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To: Force the &#8220;Blog&#8221; View on Lifehacker &amp; Gawker</title>
		<link>http://sjstrutt.com/how-to-force-the-blog-view-on-lifehacker-gawker.htm</link>
		<comments>http://sjstrutt.com/how-to-force-the-blog-view-on-lifehacker-gawker.htm#comments</comments>
		<pubDate>Fri, 02 Sep 2011 16:35:54 +0000</pubDate>
		<dc:creator>sjstrutt</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sjstrutt.com/?p=134</guid>
		<description><![CDATA[Note: This is an update to a previous post. With their new website design, Lifehacker lost me as a reader.  And I wasn&#8217;t alone—the readership of lifehacker.com dropped almost 40% since the redesign. Gawker and Lifehacker maintain an old &#8220;blog&#8221; &#8230; <a href="http://sjstrutt.com/how-to-force-the-blog-view-on-lifehacker-gawker.htm">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p class="message">Note: This is an update to a <a href="http://sjstrutt.com/how-to-restore-the-old-lifehacker-gawker-layouts.htm" rel="nofollow">previous post</a>.</p>
<p>With their new website design, <a href="http://lifehacker.com">Lifehacker </a>lost me as a reader.  <a href="http://www.signature9.com/electrotech/gawker-networks-redesign-is-killing-traffic-to-all-but-two-sites">And I wasn&#8217;t alone</a>—the readership of lifehacker.com dropped almost 40% since the redesign.</p>
<p><a href="http://siteanalytics.compete.com/lifehacker.com/"><img class="alignnone size-full wp-image-54" title="Lifehacker.com Traffic" src="http://sjstrutt.com/wp-content/uploads/2011/04/lifehacker-com_uv_1y.png" alt="" width="620" height="200" /></a></p>
<p>Gawker and Lifehacker maintain an old &#8220;blog&#8221; layout at blog.lifehacker.com, but unfortunately there&#8217;s no way to set the &#8220;blog view&#8221; as your default view.</p>
<p>It would be nice if these URLs could be rewritten on the fly though, eh?  Well, they can be with the <a href="https://chrome.google.com/webstore/detail/langnpndhfmohaeoedgipojfaiffdfck?hc=search&amp;hcp=ext">X-Rewrite extension</a> for Google Chrome!</p>
<p>The URL Rewrite extension has a simple configuration screen with three input fields that allow you to use <a href="http://en.wikipedia.org/wiki/Regular_expression">regular expressions</a> to redirect one URL to another.</p>
<p><img class="aligncenter size-large wp-image-135" title="lifehackerrewrite" src="http://sjstrutt.com/wp-content/uploads/2011/09/lifehackerrewrite-600x65.png" alt="" width="600" height="65" /></p>
<p>The &#8220;Pattern&#8221; is:<br />
<code>(.*)://lifehacker.com/(.*)</code></p>
<p>The &#8220;Rewrite&#8221; pattern is:</p>
<p><code>$1://blog.lifehacker.com/$2</code></p>
<p>And <em>voila</em>, Lifehacker is back to it&#8217;s old self and has me back as a happy reader!</p>
]]></content:encoded>
			<wfw:commentRss>http://sjstrutt.com/how-to-force-the-blog-view-on-lifehacker-gawker.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To: Test for a WordPress Custom Post Type</title>
		<link>http://sjstrutt.com/test-for-a-wordpress-custom-post-type.htm</link>
		<comments>http://sjstrutt.com/test-for-a-wordpress-custom-post-type.htm#comments</comments>
		<pubDate>Fri, 22 Jul 2011 15:44:53 +0000</pubDate>
		<dc:creator>sjstrutt</dc:creator>
				<category><![CDATA[how-to]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://sjstrutt.com/?p=114</guid>
		<description><![CDATA[There instances where a WordPress developer may need to test whether a specific post is a Custom Post Type.  You can test whether a post is a specific Custom Post Type from within the loop, outside of the loop, or &#8230; <a href="http://sjstrutt.com/test-for-a-wordpress-custom-post-type.htm">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>There instances where a WordPress developer may need to test whether a specific post is a Custom Post Type.  You can test whether a post is a specific Custom Post Type from within the loop, outside of the loop, or from within the Single Post view (<em>single.php</em>, <em>single-*.php</em>, and more).</p>
<h2>Testing for a Custom Post Type from within The Loop</h2>
<p>In this example, we will be using the <a title="WordPress Codex: get_post_type()" href="http://codex.wordpress.org/Function_Reference/get_post_type">get_post_type()</a> function to determine whether a post is a &#8216;photo&#8217; or &#8216;illustration&#8217; Custom Post Type.</p>
<pre>if ( get_post_type() == 'photo' ) { echo 'Post is type: photo'; }
elseif ( get_post_type() == 'illustration' ) { echo 'Post is type: illustration'; }</pre>
<h2>Testing for a Custom Post Type outside of The Loop</h2>
<p>To test for a Custom Post Type from outside of the loop, we need to know the post_id.  In this example, the post_id we are testing is &#8220;1&#8243;.</p>
<pre>if ( get_post_type(1) == 'photo' ) { echo 'Post is type: photo'; }
elseif ( get_post_type(1) == 'illustration' ) { echo 'Post is type: illustration'; }</pre>
<h2>Testing for a Custom Post Type within single.php</h2>
<p>The built-in WordPress function <a title="WordPress Codex: is_singular()" href="http://codex.wordpress.org/Function_Reference/is_singular">is_singular()</a> will test whether any of the following is true for a page: <a title="Function Reference/is single" href="http://codex.wordpress.org/Function_Reference/is_single">is_single()</a>, <a title="Function Reference/is page" href="http://codex.wordpress.org/Function_Reference/is_page">is_page()</a> or <a title="Function Reference/is attachment" href="http://codex.wordpress.org/Function_Reference/is_attachment">is_attachment()</a>.  The is_singular() function also has the ability to test whether a page is a specific type.  You can test whether a page is a blog post or a &#8216;photo&#8217; type in the following example:</p>
<pre>if ( is_singular('post') ) { echo 'Post is type: post'; }
elseif ( is_singular('photo') ) { echo 'Post is type: photo'; }
elseif ( is_singular('illustration') ) { echo 'Post is type: illustration'; }</pre>
<p>You can also test a page against any number of Custom Post types by using arrays:</p>
<pre>if ( is_singular(array( 'post', 'photo', 'illustration' )) ) { echo 'Post is type is either: post, photo, or illustration'; }</pre>
<p>You can learn more about the WordPress functions used in this post (<a title="WordPress Codex: get_post_type()" href="http://codex.wordpress.org/Function_Reference/get_post_type">get_post_type()</a> and <a title="WordPress Codex: is_singular()" href="http://codex.wordpress.org/Function_Reference/is_singular">is_singular()</a>) at the <a href="http://codex.wordpress.org/Main_Page">WordPress.org Codex</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://sjstrutt.com/test-for-a-wordpress-custom-post-type.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Problems With Large Menus (16+ Items) in WP 3.0</title>
		<link>http://sjstrutt.com/errors-creating-large-menus-16-items-in-wordpress-3-0.htm</link>
		<comments>http://sjstrutt.com/errors-creating-large-menus-16-items-in-wordpress-3-0.htm#comments</comments>
		<pubDate>Thu, 07 Apr 2011 16:29:08 +0000</pubDate>
		<dc:creator>sjstrutt</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://sjstrutt.com/?p=43</guid>
		<description><![CDATA[Some users of WordPress 3.0+ have a problem saving menus with more than 16 items. No error is displayed, but some menu items are missing when the menu is saved. If this is happening to you, your web server may &#8230; <a href="http://sjstrutt.com/errors-creating-large-menus-16-items-in-wordpress-3-0.htm">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Some users of WordPress 3.0+ have a problem saving menus with more than 16 items.  No error is displayed, but some menu items are missing when the menu is saved.  If this is happening to you, your web server may have the <a href="http://www.hardened-php.net/suhosin/">Suhosin</a> Hardening-Patch or Suhosin Extension for PHP installed.</p>
<blockquote><p>Suhosin is an advanced protection system for PHP installations. It was designed to protect servers and users from known and unknown flaws in PHP applications and the PHP core. Suhosin comes in two independent parts, that can be used separately or in combination. The first part is a small patch against the PHP core, that implements a few low-level protections against bufferoverflows or format string vulnerabilities and the second part is a powerful PHP extension that implements all the other protections.</p></blockquote>
<p>The (probable) reason for this is that your suhosin.post.max_vars and suhosin.request.max_vars options are set too low.  Ask your host to increase the values on these options.</p>
<p>If you host the website yourself, you&#8217;ll need to edit your php.ini file (located in /etc/php5/apache2/php.ini on Debian Linux servers).  Simply add these lines to the bottom of your php.ini:</p>
<p><code>suhosin.post.max_vars = 5000<br />
suhosin.request.max_vars = 5000</code></p>
<p>And <em>voila</em>, you should be able to save menus with more than 16 items!</p>
]]></content:encoded>
			<wfw:commentRss>http://sjstrutt.com/errors-creating-large-menus-16-items-in-wordpress-3-0.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Different Kind of URL Shortener</title>
		<link>http://sjstrutt.com/is-short.htm</link>
		<comments>http://sjstrutt.com/is-short.htm#comments</comments>
		<pubDate>Fri, 22 Oct 2010 17:19:16 +0000</pubDate>
		<dc:creator>sjstrutt</dc:creator>
				<category><![CDATA[projects]]></category>

		<guid isPermaLink="false">http://sjstrutt.com/?p=12</guid>
		<description><![CDATA[Short URLs are here to stay and some people aren&#8217;t too happy about it. While shortened URLs have some benefits, they have their problems too: If a URL shortening service stops working (or is shut down, like vb.ly), the redirects &#8230; <a href="http://sjstrutt.com/is-short.htm">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Short URLs are here to stay and some people aren&#8217;t too happy about it. While shortened URLs have some benefits, they have their problems too:</p>
<ul></ul>
<ul>
<li>If a URL shortening service stops working (or is shut down, like vb.ly), the redirects are lost (commonly referred to as “link rot”).</li>
<li>Cloaking a link&#8217;s destination using short URLs can be used to send a user to a malicious web site.</li>
<li>Some web sites block users from posting links from URL shortening services for the above reasons.</li>
</ul>
<h2>Solutions: rev=&#8221;canonical&#8221; and rel=&#8221;shorturl&#8221;</h2>
<p>The problem addressed above can be resolved if a web site&#8217;s publisher provides their own short URLs. With this in mind, the <a href="http://revcanonical.appspot.com/">rev=&#8221;canonical&#8221;</a> and <a href="http://relshorturl.appspot.com/">rel=&#8221;shorturl&#8221;</a> standards were proposed to allow publishers to specify a short URL for a web page.</p>
<p>These two standards offer different ways of saying the same thing:</p>
<blockquote><p>Instead of using that service you like for shortening my URLs, I&#8217;ll provide you with my own short URL. The short URL I provide will (likely) be short enough for your needs and my URLs won&#8217;t be subject to the drawbacks associated with the URL shortening service you choose.</p></blockquote>
<p>It doesn&#8217;t matter which standard is better—both are being used by major web sites. (Also, are there any others that I&#8217;m missing that are actually being used? Let me know by emailing steve @ this domain.)</p>
<h2>Introducing isshort.com</h2>
<p>Currently, there aren&#8217;t any tools to grab <em>all </em>of the publisher-provided shorter URL in a standards-agnostic way. Tools that will grab either rev=&#8221;canonical&#8221; or rel=&#8221;shorturl&#8221;, but not both.</p>
<p>That&#8217;s where <a href="http://isshort.com">isshort.com</a> comes in. <a href="http://isshort.com">isshort</a> doesn&#8217;t care what URL shortening standard the publisher uses, it will find them all. This user-focused design will hopefully spur more sites and apps to provide their own short URLs.</p>
<h2>Supported Short URLs</h2>
<p>Currently, isshort.com supports short URLs using the rel=&#8221;canonical&#8221;, rel=&#8221;shortlink&#8221;, and rel=&#8221;shorturl&#8221; standards.  Also, isshort shortens Amazon.com (amzn.com), YouTube (youtu.be), and NPR (n.pr) links.  Here are some links to try:</p>
<ul>
<li><a href="http://isshort.com/?url=http://www.youtube.com/watch?v=NA90IlymdZ4">http://www.youtube.com/watch?v=NA90IlymdZ4</a></li>
<li><a href="http://isshort.com/?url=http://www.amazon.com/Kindle-Wireless-Reader-Wifi-Graphite/dp/B002Y27P3M/">http://www.amazon.com/Kindle-Wireless-Reader-Wifi-Graphite/dp/B002Y27P3M/</a></li>
<li><a href="http://isshort.com/?url=http://www.flickr.com/photos/sjstrutt/3455773875/">http://www.flickr.com/photos/sjstrutt/3455773875/</a></li>
<li><a href="http://isshort.com/?url=http://daringfireball.net/2010/09/starstruck">http://daringfireball.net/2010/09/starstruck</a></li>
<li><a href="http://isshort.com/?url=http://wordpress.org/news/2010/06/thelonious/">http://wordpress.org/news/2010/06/thelonious/</a></li>
<li><a href="http://isshort.com/?url=http://www.npr.org/blogs/pictureshow/2010/10/21/130727951/tedprize">http://www.npr.org/blogs/pictureshow/2010/10/21/130727951/tedprize</a></li>
<li><a href="http://isshort.com/?url=http://news.ycombinator.com/item?id=1820781">http://news.ycombinator.com/item?id=1820781</a></li>
</ul>
<h2>There&#8217;s an API, too.</h2>
<p>The current version of the API is located at <a href="http://isshort.com/api.php">http://isshort.com/api.php</a>.  You can always access this version (version 1) of the API with the URL parameter &#8220;v=1&#8243;.  Version 1 of the API can output a short URL in <a href="http://isshort.com/api.php?v=1&amp;format=text&amp;url=http://news.ycombinator.com/item?id=1780984">plain text</a> (default), <a href="http://isshort.com/api.php?v=1&amp;format=json&amp;url=http://news.ycombinator.com/item?id=1780984">JSON</a> or <a href="http://isshort.com/api.php?v=1&amp;format=xml&amp;url=http://news.ycombinator.com/item?id=1780984">XML</a> formats.</p>
]]></content:encoded>
			<wfw:commentRss>http://sjstrutt.com/is-short.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

