<?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>Ben Huson</title>
	<atom:link href="http://www.benhuson.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.benhuson.co.uk</link>
	<description>Web Designer and Developer</description>
	<lastBuildDate>Mon, 14 May 2012 08:28:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>WordPress Media Uploader &#8211; Another HTTP Error Solution</title>
		<link>http://www.benhuson.co.uk/2011/12/16/wordpress-media-uploader-another-http-error-solution/</link>
		<comments>http://www.benhuson.co.uk/2011/12/16/wordpress-media-uploader-another-http-error-solution/#comments</comments>
		<pubDate>Fri, 16 Dec 2011 20:03:12 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.benhuson.co.uk/?p=2244</guid>
		<description><![CDATA[Tweet There are countless posts in the WordPress.org forums about errors that occur when using the media uploader. Otto does a pretty good job of outlining the main issues and solution in this post. In my experience these errors usually occur because of your server setup or memory issues. To help you diagnose where your [...]]]></description>
			<content:encoded><![CDATA[
<!-- This is the start of the WP Twitter Button code -->
<div id="rk_wp_twitter_button" style="margin: 0px 0px 0px 0px; float: left"><a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Ftwitter.com%2Fshare&sref=rss" class="twitter-share-button" data-url="http://www.benhuson.co.uk/2011/12/16/wordpress-media-uploader-another-http-error-solution/" data-count="horizontal" data-via="benhuson">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>
<!-- This is the end of the WP Twitter Button code -->

<p>There are countless posts in the WordPress.org forums about errors that occur when using the media uploader.</p>
<p>Otto does a pretty good job of outlining the main issues and solution <a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2F25-imagemedia-uploader-problems&sref=rss">in this post</a>.</p>
<p>In my experience these errors usually occur because of your server setup or memory issues. To help you diagnose where your problem lies:</p>
<p>1. If the file appears to upload and then you get an HTTP Error, this is most likely your server settings preventing you from uploading or processing large files in some way.</p>
<p>2. If you get as far as &#8220;Crunching&#8230;&#8221; being displayed, this is most likely a memory issue &#8211; the image is so big that the server struggles to create the other images sizes. Also note that it is often the actual physical dimensions of the image not the filesize that is too big and causes the memory issue.</p>
<h3>MaxLen</h3>
<p>The most recent occasion when I ran into this issue was on a <a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2F1and1.co.uk%2Fxml%2Finit%2F%3Fk_id%3D7507424&sref=rss">1&amp;1 Virtual Server</a>. None of the fixes I could find solved my issue and I eventually tracked it down to needing to increase to MaxLen setting on the server.</p>
<p><span id="more-2244"></span></p>
<h3>The Solution</h3>
<p>To do this I needed to add the following into the vhost.conf file on the server. My vhost.conf file was located here:</p>
<pre>/var/www/vhosts/domain.com/conf/vhost.conf</pre>
<p>The following sets to value to 31457280 bytes which is 30MB:</p>
<pre>&lt;IfModule mod_fcgid.c&gt;
FcgidMaxRequestLen 31457280
&lt;/IfModule&gt;</pre>
<p>I also added some additional settings to help with timeout issues:</p>
<pre>&lt;IfModule mod_fcgid.c&gt;
FcgidMaxRequestLen 31457280
ProcessLifeTime 7200
IPCCommTimeout 7200
IPCConnectTimeout 300
&lt;/IfModule&gt;</pre>
<p>Then I needed to tell Plesk to update it&#8217;s information but running the following:</p>
<pre># /usr/local/psa/admin/sbin/websrvmng -u --vhost-name=domain.com</pre>
<p>This configures Plesk only for one single domain, in this case domain.com. If you want to configure it for all sites run:</p>
<pre># /usr/local/psa/admin/bin/websrvmng -a</pre>
<p>All done.</p>
<h3>Reference</h3>
<ul>
<li><a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2F25-imagemedia-uploader-problems&sref=rss">Image/Media Uploader problems?</a> <em>on WordPress.org</em></li>
<li><a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fforum.parallels.com%2Fshowthread.php%3Ft%3D112735&sref=rss">MaxRequestLen Issue</a> <em>on Parallels Forums</em></li>
</ul>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.benhuson.co.uk/2011/12/16/wordpress-media-uploader-another-http-error-solution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Graphic Art Prints by Susie Huson</title>
		<link>http://www.benhuson.co.uk/2011/09/25/graphic-art-prints-by-susie-huson/</link>
		<comments>http://www.benhuson.co.uk/2011/09/25/graphic-art-prints-by-susie-huson/#comments</comments>
		<pubDate>Sun, 25 Sep 2011 22:04:57 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[E-Commerce]]></category>
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.benhuson.co.uk/?p=2219</guid>
		<description><![CDATA[Tweet Please take a look at these brilliant graphic art prints by Susie Huson. View more at www.susiehuson.co.uk]]></description>
			<content:encoded><![CDATA[
<!-- This is the start of the WP Twitter Button code -->
<div id="rk_wp_twitter_button" style="margin: 0px 0px 0px 0px; float: left"><a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Ftwitter.com%2Fshare&sref=rss" class="twitter-share-button" data-url="http://www.benhuson.co.uk/2011/09/25/graphic-art-prints-by-susie-huson/" data-count="horizontal" data-via="benhuson">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>
<!-- This is the end of the WP Twitter Button code -->

<p><strong>Please take a look at these brilliant <a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fwww.susiehuson.co.uk%2F&sref=rss">graphic art prints by Susie Huson</a>.</strong></p>
<p><a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fwww.susiehuson.co.uk%2Fshop%2Fteddy-bears%2Fgirl-bear-family%2F&sref=rss"><img class="alignnone size-full wp-image-2222 border" title="Pink Bear Family by Susie Huson" src="http://www.benhuson.co.uk/wp-content/uploads/susie-huson-pink-bears.jpg" alt="" width="400" height="191" /></a></p>
<p><a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fwww.susiehuson.co.uk%2Fshop%2Funder-the-sea%2Fwhale-with-baby%2F&sref=rss"><img class="alignnone size-full wp-image-2224 border" title="Whale with Baby by Susie Huson" src="http://www.benhuson.co.uk/wp-content/uploads/susie-huson-whale.jpg" alt="" width="400" height="191" /></a></p>
<p><a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fwww.susiehuson.co.uk%2Fshop%2Fspace%2Fouter-space%2F&sref=rss"><img class="alignnone size-full wp-image-2223 border" title="Space Man by Susie Huson" src="http://www.benhuson.co.uk/wp-content/uploads/susie-huson-space-man.jpg" alt="" width="400" height="191" /></a></p>
<p><a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fwww.susiehuson.co.uk%2Fshop%2Fbugs%2Fbusy-bee%2F&sref=rss"><img class="alignnone size-full wp-image-2221 border" title="Busy Bee by Susie Huson" src="http://www.benhuson.co.uk/wp-content/uploads/susie-huson-bee.jpg" alt="" width="400" height="191" /></a></p>
<p>View more at <a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fwww.susiehuson.co.uk%2F&sref=rss">www.susiehuson.co.uk</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.benhuson.co.uk/2011/09/25/graphic-art-prints-by-susie-huson/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WP e-Commerce Cross Sales</title>
		<link>http://www.benhuson.co.uk/2011/08/21/wp-e-commerce-cross-sales/</link>
		<comments>http://www.benhuson.co.uk/2011/08/21/wp-e-commerce-cross-sales/#comments</comments>
		<pubDate>Sun, 21 Aug 2011 20:36:17 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[E-commerce]]></category>
		<category><![CDATA[WordPress Plugins]]></category>
		<category><![CDATA[WP e-Commerce]]></category>

		<guid isPermaLink="false">http://www.benhuson.co.uk/?p=2155</guid>
		<description><![CDATA[Tweet The latest version of WP e-Commerce (3.8.x) for WordPress is a significant move on both in terms of stability and extensibility. This is partly down to an extensive re-build on the codebase to take advantage of some of WordPress&#8217; latest features; custom post type and taxonomies. This has the added benefit of making it [...]]]></description>
			<content:encoded><![CDATA[
<!-- This is the start of the WP Twitter Button code -->
<div id="rk_wp_twitter_button" style="margin: 0px 0px 0px 0px; float: left"><a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Ftwitter.com%2Fshare&sref=rss" class="twitter-share-button" data-url="http://www.benhuson.co.uk/2011/08/21/wp-e-commerce-cross-sales/" data-count="horizontal" data-via="benhuson">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>
<!-- This is the end of the WP Twitter Button code -->

<p><strong>The latest version of <a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fgetshopped.org%2F&sref=rss" target="_blank">WP e-Commerce</a> (3.8.x) for WordPress is a significant move on both in terms of stability and extensibility.</strong></p>
<p>This is partly down to an extensive re-build on the codebase to take advantage of some of WordPress&#8217; latest features; custom post type and taxonomies. This has the added benefit of making it much easier for plugin developers to create add-on plugin to enhance WP e-Commerce functionality.</p>
<p>The key objectives now seem to be to keep WP e-Commerce &#8216;lean and mean&#8217; to provide a solid platform on which to develop WordPress-based e-commerce sites, and provide additional functionality through plugins.</p>
<p>Part of this process includes stripping out some of the less-used parts of WP e-Commerce and turning them into plugins. Once such example is the automated &#8216;Also Bought&#8217; functionality which can be found in the Marketing tab of WP e-Commerce settings.</p>
<p><a href="http://www.benhuson.co.uk/wp-content/uploads/wpsc-marketing-current.jpg"><img class="alignnone size-medium wp-image-2192 border" title="WP e-Commerce Cross Sales - Current Marketing Panel" src="http://www.benhuson.co.uk/wp-content/uploads/wpsc-marketing-current-400x162.jpg" alt="" width="400" height="162" /></a></p>
<p>I have worked extensively with WP e-Commerce over the last 2-3 years and frequently try to get involved wether it be fixing the odd bug or helping out on the forum &#8211; when I have time ;) so I jumped on board to help separate the &#8216;Also Bought&#8217; functionality into a WordPress plugin.</p>
<p><span id="more-2155"></span></p>
<h3>Also Bought &gt; Cross Sales</h3>
<p>The &#8216;Also Bought&#8217; functionality is now available to download as the &#8216;Cross Sales&#8217; plugin on <a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fwordpress.org%2Fextend%2Fplugins%2Fwp-e-commerce-cross-sales%2F&sref=rss">WordPress Extend</a>.</p>
<p>The plugin will function exactly the same way as the current Also Bought feature in WP e-Commerce. When someone buys multiple products, this information will be saved so that we can identify that &#8220;someone who bought this also bought that&#8221;.</p>
<p>There are few small additions though:</p>
<p><a href="http://www.benhuson.co.uk/wp-content/uploads/wpsc-cross-sales-panel.jpg"><img class="alignnone size-medium wp-image-2191 border" title="WP e-Commerce Cross Sales - Panel" src="http://www.benhuson.co.uk/wp-content/uploads/wpsc-cross-sales-panel-400x157.jpg" alt="" width="400" height="157" /></a></p>
<p>You will be able to set a limit for the amount of cross sales you want to show &#8211; what looks best may  depend on the theme you are using.</p>
<p>By default, cross sale product images will be the same size as product thumbnail images, but there are now settings to override this if you want.</p>
<h3>Installing/Upgrading</h3>
<p>In WP e-Commerce 3.9 the also bought functionality will not be available by default, you&#8217;ll need to install the plugin. For those of you who are already using that functionality, don&#8217;t worry, I&#8217;ve made it easy for you&#8230; you&#8217;ll be able to install the plugin directly from the Marketing tab in WP e-Commerce and have it back up and running straight away.</p>
<p><a href="http://www.benhuson.co.uk/wp-content/uploads/wpsc-cross-sales-install-now.jpg"><img class="alignnone size-medium wp-image-2189 border" title="WP e-Commerce Cross Sales - Install Now" src="http://www.benhuson.co.uk/wp-content/uploads/wpsc-cross-sales-install-now-400x73.jpg" alt="" width="400" height="73" /></a></p>
<p>You can even install the plugin now if you like. It won&#8217;t do anything until you upgrade to WP e-Commerce 3.9 and the transition will be seamless.</p>
<p><img class="alignnone size-full wp-image-2190 border" title="WP e-Commerce Cross Sales - Upgrade Notice" src="http://www.benhuson.co.uk/wp-content/uploads/wpsc-cross-sales-notice.jpg" alt="" width="400" height="132" /></p>
<p>I recommend that you change the <code>wpsc_also_bought()</code> references in your single product theme template to the following:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'wpsc_cross_sales'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> wpsc_cross_sales<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$product_id</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>This will ensure compatibility in the future if you deactivate the plugin, and ensure it works with future versions. You don&#8217;t <em>need</em> to change this as the wpsc_also_bought() function should work for the time being, but it will cease to work in a future version of this plugin so do get around to changing it sooner rather than later.</p>
<h3>What next&#8230;?</h3>
<p>Expect to see other areas of WP e-Commerce being moved to separate plugins. My guess is the following features may at some point find themselves moved to external plugins:</p>
<ul>
<li>Social Integration, Like, Tweet etc&#8230;</li>
<li>Intense Debate comment integration</li>
<li>Custom survey</li>
<li>Off site product links</li>
<li>Personalisation options</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.benhuson.co.uk/2011/08/21/wp-e-commerce-cross-sales/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>&#8220;Harecule Poirot&#8221; &#8211; My Hare Styling Canvas</title>
		<link>http://www.benhuson.co.uk/2011/04/14/harecule-poirot-my-hare-styling-canvas/</link>
		<comments>http://www.benhuson.co.uk/2011/04/14/harecule-poirot-my-hare-styling-canvas/#comments</comments>
		<pubDate>Thu, 14 Apr 2011 21:33:49 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.benhuson.co.uk/?p=2140</guid>
		<description><![CDATA[Tweet This is my contribution towards the Hare Styling project, raising money for Great Ormond Street Children&#8217;s Hospital. My canvas &#8220;Harecule Poirot&#8221; is just one over 200 canvases being auctioned including contributions from Helena Bonham Carter, Alastair Campbell, Cheryl Cole, Tracey Emin, Sir Alex Ferguson, Stella McCartney, Jamie Oliver, Mark Quinn, Sir Paul Smith, and Jack Vettriano. The canvases are being exhibited at Heartbreak Gallery: [...]]]></description>
			<content:encoded><![CDATA[
<!-- This is the start of the WP Twitter Button code -->
<div id="rk_wp_twitter_button" style="margin: 0px 0px 0px 0px; float: left"><a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Ftwitter.com%2Fshare&sref=rss" class="twitter-share-button" data-url="http://www.benhuson.co.uk/2011/04/14/harecule-poirot-my-hare-styling-canvas/" data-count="horizontal" data-via="benhuson">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>
<!-- This is the end of the WP Twitter Button code -->

<p><a href="http://www.benhuson.co.uk/wp-content/uploads/harecule-poirot-small.jpg"><img class="alignnone size-medium wp-image-2142 border" title="Harecule Poirot (small)" src="http://www.benhuson.co.uk/wp-content/uploads/harecule-poirot-small-400x506.jpg" alt="" width="400" height="506" /></a></p>
<p><strong>This is my contribution towards the </strong><a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fwww.harestyling.com%2F&sref=rss"><strong>Hare Styling</strong></a><strong> project, raising money for <a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fwww.gosh.org&sref=rss">Great Ormond Street Children&#8217;s Hospital</a>.</strong></p>
<p>My canvas &#8220;<a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fwww.harestyling.com%2Fcanvas%2Fben-huson%2F&sref=rss">Harecule Poirot</a>&#8221; is just one <a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fwww.harestyling.com%2Fgallery%2F&sref=rss">over 200 canvases</a> being auctioned including contributions from Helena Bonham Carter, Alastair Campbell, Cheryl Cole, Tracey Emin, Sir Alex Ferguson, Stella McCartney, Jamie Oliver, Mark Quinn, Sir Paul Smith, and Jack Vettriano.</p>
<p>The canvases are being exhibited at Heartbreak Gallery:</p>
<p><strong>Date:</strong> Saturday 16th April – Sunday 8th May<br />
<strong>Opening times:</strong> Mon to Sat 10am – 6pm / Sun 11am – 4pm<br />
<strong>Admission:</strong> Free</p>
<p><strong>Address:</strong> 17 Bulstrode Street, Marylebone, London W1U 2JH<br />
<strong>Nearest Tube:</strong> Bond Street (Central and Jubilee line)<br />
<strong>Website:</strong> <a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fwww.heart-break.co.uk%2F&sref=rss">www.heart-break.co.uk</a></p>
<p>Pop down there and take a look&#8230;</p>
<p><em>PS. You can </em><a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fwww.givinglots.co.uk%2Flots%2Fben-huson&sref=rss"><em>bid on my canvas here&#8230;</em></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.benhuson.co.uk/2011/04/14/harecule-poirot-my-hare-styling-canvas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Improving the UI for Hierarchical Taxonomies in WordPress</title>
		<link>http://www.benhuson.co.uk/2010/12/20/improving-the-ui-for-hierarchical-taxonomies-in-wordpress/</link>
		<comments>http://www.benhuson.co.uk/2010/12/20/improving-the-ui-for-hierarchical-taxonomies-in-wordpress/#comments</comments>
		<pubDate>Mon, 20 Dec 2010 08:45:55 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://www.benhuson.co.uk/?p=2031</guid>
		<description><![CDATA[Tweet Since being able to easy add new taxonomies to any post type in WordPress, I have had a little gripe about the UI&#8230; Creating taxonomies can be a really useful way of categorising and navigating your content but what happens if I want to add many taxonomies to my post type? You have the [...]]]></description>
			<content:encoded><![CDATA[
<!-- This is the start of the WP Twitter Button code -->
<div id="rk_wp_twitter_button" style="margin: 0px 0px 0px 0px; float: left"><a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Ftwitter.com%2Fshare&sref=rss" class="twitter-share-button" data-url="http://www.benhuson.co.uk/2010/12/20/improving-the-ui-for-hierarchical-taxonomies-in-wordpress/" data-count="horizontal" data-via="benhuson">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>
<!-- This is the end of the WP Twitter Button code -->

<p><strong>Since being able to easy add new taxonomies to any post type in WordPress, I have had a little gripe about the UI&#8230;</strong></p>
<p>Creating taxonomies can be a really useful way of categorising and navigating your content but what happens if I want to add many taxonomies to my post type?</p>
<p>You have the choice of specifying when a taxonomy is &#8216;hierarchical&#8217; or not. If set to false then the UI is the admin will display in the same way as it does for tags; a text field which you can use to add terms. If set to true then the UI displays in the same way as categories; a box with a list of checkboxes for each term.</p>
<p><a href="http://www.benhuson.co.uk/wp-content/uploads/wordpress-tag-cat-ui.jpg"><img class="alignnone size-full wp-image-2048 border" title="WordPress Default Tag/Category UI" src="http://www.benhuson.co.uk/wp-content/uploads/wordpress-tag-cat-ui.jpg" alt="" width="299" height="452" /></a></p>
<h3>So what&#8217;s my issue?</h3>
<p>My issue is <strong>all that space</strong> if you only have a couple of categories.</p>
<p>It&#8217;s not so much of an issue if you only have categories but if you add multiple hierarchical taxonomies it can make your edit screen really long for no reason.</p>
<p><span id="more-2031"></span></p>
<h3>&#8230;and the solution?</h3>
<p>To solve this issue I would suggest using the css property max-height to limit the height of the hierarchical taxonomy box. This way if you only have several terms the box will collapse to fit them. If you have many terms the box will become scrollable at a certain maximum height.</p>
<p>Look at all that space you can save&#8230;</p>
<p><img class="alignnone size-full wp-image-2032 border" title="WordPress Hierarchical Taxonomy UI" src="http://www.benhuson.co.uk/wp-content/uploads/wp-hierarchical-taxonomy-ui.jpg" alt="" width="400" height="329" /></p>
<p>One problem though is that Internet Explorer 6 does not support the max-height property and will display the box long enough to fit the content &#8211; it won&#8217;t restrain the height to 200 pixels and make it scrollable.</p>
<p>If this is an issue for you you could use a css hack to <a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fwww.visibilityinherit.com%2Fcode%2Fie6-min-max-height-width.php&sref=rss">get IE6 to support max-height</a>.</p>
<h3>How do I fix this?</h3>
<p>You&#8217;ll need to update the WordPress admin stylesheet:<br />
/wp-admin/css/wp-admin.dev.css</p>
<p><small>(You&#8217;ll also need to patch the minified version /wp-admin/css/wp-admin.css)</small></p>
<p>In the following two instance I have changed &#8220;height: 200px;&#8221; to &#8220;max-height: 200px;&#8221;.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">.wp-tab-panel<span style="color: #00AA00;">,</span>
<span style="color: #6666ff;">.categorydiv</span> div.tabs-panel<span style="color: #00AA00;">,</span>
<span style="color: #6666ff;">.customlinkdiv</span> div.tabs-panel<span style="color: #00AA00;">,</span>
<span style="color: #6666ff;">.posttypediv</span> div.tabs-panel<span style="color: #00AA00;">,</span>
<span style="color: #6666ff;">.taxonomydiv</span> div.tabs-panel<span style="color: #00AA00;">,</span>
<span style="color: #cc00cc;">#linkcategorydiv</span> div<span style="color: #6666ff;">.tabs-panel</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">max-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">200px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0.5em</span> <span style="color: #933;">0.9em</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">solid</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.categorydiv</span> div.tabs-panel<span style="color: #00AA00;">,</span>
<span style="color: #6666ff;">.customlinkdiv</span> div.tabs-panel<span style="color: #00AA00;">,</span>
<span style="color: #6666ff;">.posttypediv</span> div.tabs-panel<span style="color: #00AA00;">,</span>
<span style="color: #6666ff;">.taxonomydiv</span> div.tabs-panel<span style="color: #00AA00;">,</span>
<span style="color: #cc00cc;">#linkcategorydiv</span> div<span style="color: #6666ff;">.tabs-panel</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">max-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">200px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0.5em</span> <span style="color: #933;">0.9em</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">solid</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<h3>So what do you think?</h3>
<p>Would you like to see this change make it&#8217;s way into WordPress core? Let me know what you think by voting below or <a href="#respond">leaving a comment</a>.</p>
<p>I have also added a <a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fcore.trac.wordpress.org%2Fticket%2F15925&sref=rss">trac ticket</a> so if you want this to be included in WordPress core please support it there too.</p>
Note: There is a poll embedded within this post, please visit the site to participate in this post's poll.
]]></content:encoded>
			<wfw:commentRss>http://www.benhuson.co.uk/2010/12/20/improving-the-ui-for-hierarchical-taxonomies-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Why has my OS X dock icon disappeared?</title>
		<link>http://www.benhuson.co.uk/2010/11/10/dock-icon-disappeared/</link>
		<comments>http://www.benhuson.co.uk/2010/11/10/dock-icon-disappeared/#comments</comments>
		<pubDate>Wed, 10 Nov 2010 22:49:53 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Icons]]></category>
		<category><![CDATA[OS X]]></category>

		<guid isPermaLink="false">http://www.benhuson.co.uk/?p=1998</guid>
		<description><![CDATA[Tweet So after finding that one of my dock icons appeared pixelated, I recently experienced some of my dock icons become invisible. I&#8217;m not sure what caused it although I think I was running low on disk space at the time so it may have been memory related. All I did to fix it was [...]]]></description>
			<content:encoded><![CDATA[
<!-- This is the start of the WP Twitter Button code -->
<div id="rk_wp_twitter_button" style="margin: 0px 0px 0px 0px; float: left"><a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Ftwitter.com%2Fshare&sref=rss" class="twitter-share-button" data-url="http://www.benhuson.co.uk/2010/11/10/dock-icon-disappeared/" data-count="horizontal" data-via="benhuson">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>
<!-- This is the end of the WP Twitter Button code -->

<p><img class="alignnone size-full wp-image-2000 border" title="Why has my OS X dock icon dissapeared?" src="http://www.benhuson.co.uk/wp-content/uploads/pixelate-safari-icon1.jpg" alt="" width="400" height="190" /></p>
<p><strong>So after finding that one of my </strong><a href="http://www.benhuson.co.uk/2009/10/20/dock-icon-pixelated/"><strong>dock icons appeared pixelated</strong></a><strong>, I recently experienced some of my dock icons become invisible.</strong></p>
<p>I&#8217;m not sure what caused it although I think I was running low on disk space at the time so it may have been memory related. All I did to fix it was re-drag the application into the dock and the icon reappeared. There&#8217;s also a <a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fdiscussions.apple.com%2Fmessage.jspa%3FmessageID%3D10076494&sref=rss">discussion in the Apple support forums</a> about disappearing icons.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.benhuson.co.uk/2010/11/10/dock-icon-disappeared/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>FancyBox causing hanging in Internet Explorer</title>
		<link>http://www.benhuson.co.uk/2010/10/29/fancybox-hanging-in-ie/</link>
		<comments>http://www.benhuson.co.uk/2010/10/29/fancybox-hanging-in-ie/#comments</comments>
		<pubDate>Fri, 29 Oct 2010 21:33:10 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Web Developer]]></category>
		<category><![CDATA[FancyBox]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[lightBox]]></category>

		<guid isPermaLink="false">http://www.benhuson.co.uk/?p=2008</guid>
		<description><![CDATA[Tweet I recently received feedback from people saying that some web sites I had worked on were loading slowly and freezing for a second or two in Internet Explorer on each page load. After checking that images were well optimised I guessed the next thing to check should be any JavaScript the pages were loading. [...]]]></description>
			<content:encoded><![CDATA[
<!-- This is the start of the WP Twitter Button code -->
<div id="rk_wp_twitter_button" style="margin: 0px 0px 0px 0px; float: left"><a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Ftwitter.com%2Fshare&sref=rss" class="twitter-share-button" data-url="http://www.benhuson.co.uk/2010/10/29/fancybox-hanging-in-ie/" data-count="horizontal" data-via="benhuson">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>
<!-- This is the end of the WP Twitter Button code -->

<p><img class="alignnone size-medium wp-image-2010 border" title="FancyBox Hanging in Internet Explorer" src="http://www.benhuson.co.uk/wp-content/uploads/fancybox-400x250.jpg" alt="" width="400" height="250" /></p>
<p><strong>I recently received feedback from people saying that some web sites I had worked on were loading slowly and freezing for a second or two in Internet Explorer on each page load.</strong></p>
<p>After checking that images were well optimised I guessed the next thing to check should be any JavaScript the pages were loading.</p>
<p>I removed all JavaScript includes and the pages loaded fine so I added them in again until I was able to re-create the &#8216;hanging&#8217; issue &#8211; <a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Ffancybox.net%2F&sref=rss">FancyBox</a> seemed to be the culprit.</p>
<p>I&#8217;ve not yet figured out why, but the hang appears to happen around the same time that the HTML DOM structure finishes loading. During the &#8216;freeze&#8217; the browser hangs completely and you cannot click any links, scroll, or interact with the page in any way.</p>
<p>The hang even happens when viewing the FancyBox web site in IE although is it for a much shorter period of time &#8211; maybe the duration of the hand is influence but the amount of HTML or links on a page?</p>
<p>As I don&#8217;t have enough time to investigate further, for the moment I shall continue to use <a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fleandrovieira.com%2Fprojects%2Fjquery%2Flightbox%2F&sref=rss">jQuery lightBox</a> or one of the other image popup scripts. Shame, as FancyBox is the nicest and cleanest I have found so far.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.benhuson.co.uk/2010/10/29/fancybox-hanging-in-ie/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Single Column Gallery in WordPress</title>
		<link>http://www.benhuson.co.uk/2010/09/25/single-col-wordpress-gallery/</link>
		<comments>http://www.benhuson.co.uk/2010/09/25/single-col-wordpress-gallery/#comments</comments>
		<pubDate>Sat, 25 Sep 2010 14:02:08 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Gallery]]></category>
		<category><![CDATA[Images]]></category>
		<category><![CDATA[Patch]]></category>
		<category><![CDATA[Shortcode]]></category>

		<guid isPermaLink="false">http://www.benhuson.co.uk/?p=1768</guid>
		<description><![CDATA[Tweet You may (or may not) have noticed that in WordPress if you want to insert an image gallery into your post it does not give you the option of insert a gallery only 1 column wide. This seems like an oversight. I have seen loads of photo and inspiration blogs around that often include [...]]]></description>
			<content:encoded><![CDATA[
<!-- This is the start of the WP Twitter Button code -->
<div id="rk_wp_twitter_button" style="margin: 0px 0px 0px 0px; float: left"><a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Ftwitter.com%2Fshare&sref=rss" class="twitter-share-button" data-url="http://www.benhuson.co.uk/2010/09/25/single-col-wordpress-gallery/" data-count="horizontal" data-via="benhuson">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>
<!-- This is the end of the WP Twitter Button code -->

<p><strong>You may (or may not) have noticed that in WordPress if you want to insert an image gallery into your post it does not give you the option of insert a gallery only 1 column wide.</strong></p>
<p>This seems like an oversight. I have seen loads of photo and inspiration blogs around that often include multiple images in a single column so it would seem that being able to easily insert a single column gallery would be a useful feature.</p>
<p><img class="alignnone size-full wp-image-1842 border" title="WordPress Gallery Settings" src="http://www.benhuson.co.uk/wp-content/uploads/wp-gallery-settings.jpg" alt="" width="400" height="325" /></p>
<p>Fortunately it is possible to insert a gallery one column wide, just not through the popup media window. Here&#8217;s how&#8230;</p>
<p><span id="more-1768"></span></p>
<h3>How to insert a single column gallery</h3>
<p>It&#8217;s just a simple shortcode:</p>
<pre>[<span>gallery columns="1"</span>]</pre>
<p>Unfortunately in the Visual editor, when you go back to edit your post the gallery shortcode will be displayed as a gallery preview. If you click the gallery edit button (top left) then the media window will pop up but the columns menu will default to 3 as there is no value of 1.</p>
<p><img class="alignnone size-full wp-image-1910" title="WP Gallery Preview (over)" src="http://www.benhuson.co.uk/wp-content/uploads/wp-gallery-preview-over.jpg" alt="" width="400" height="212" /></p>
<h3>So, what&#8217;s the fix?</h3>
<p>It&#8217;s a change to WordPress core code but it&#8217;s really simple. Just edit wp-admin/includes/media.php and around line 1818 insert an select menu option with a value of 1.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1817
1818
1819
1820
1821
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>select id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;columns&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;columns&quot;</span><span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;</span>option value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;1&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">&lt;/</span>option<span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;</span>option value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;2&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #cc66cc;">2</span><span style="color: #339933;">&lt;/</span>option<span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;</span>option selected<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;selected&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;3&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #cc66cc;">3</span><span style="color: #339933;">&lt;/</span>option<span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;</span>option value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;4&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #cc66cc;">4</span><span style="color: #339933;">&lt;/</span>option<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>I&#8217;ve submitted a <a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fcore.trac.wordpress.org%2Fticket%2F14836&sref=rss">WordPress patch here</a>. If you would like this change to be made to WordPress please add your support to the <a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fcore.trac.wordpress.org%2Fticket%2F14836&sref=rss">Trac ticket</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.benhuson.co.uk/2010/09/25/single-col-wordpress-gallery/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Setting a short menu name when registering a new custom post type in WordPress</title>
		<link>http://www.benhuson.co.uk/2010/09/15/register-post-type-menu-name/</link>
		<comments>http://www.benhuson.co.uk/2010/09/15/register-post-type-menu-name/#comments</comments>
		<pubDate>Wed, 15 Sep 2010 19:52:49 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Custom Post Types]]></category>
		<category><![CDATA[Patch]]></category>
		<category><![CDATA[register_post_type]]></category>

		<guid isPermaLink="false">http://www.benhuson.co.uk/?p=1737</guid>
		<description><![CDATA[Tweet When registering a new custom post type in WordPress, there are a whole array of labels you can set for how your post type will be displayed in the admin. The post type I was creating had quite a long descriptive label which was fine in most scenarios but in the case of the [...]]]></description>
			<content:encoded><![CDATA[
<!-- This is the start of the WP Twitter Button code -->
<div id="rk_wp_twitter_button" style="margin: 0px 0px 0px 0px; float: left"><a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Ftwitter.com%2Fshare&sref=rss" class="twitter-share-button" data-url="http://www.benhuson.co.uk/2010/09/15/register-post-type-menu-name/" data-count="horizontal" data-via="benhuson">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>
<!-- This is the end of the WP Twitter Button code -->

<p><strong>When registering a new custom post type in WordPress, there are a whole </strong><a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fcodex.wordpress.org%2FFunction_Reference%2Fregister_post_type%23Arguments&sref=rss"><strong>array of labels</strong></a><strong> you can set for how your post type will be displayed in the admin.</strong></p>
<p>The post type I was creating had quite a long descriptive label which was fine in most scenarios but in the case of the main admin menu it pushed the menu text onto several lines.</p>
<p>See the example on the left below &#8211; I have deliberately shown any extremely long title to illustrate the point.</p>
<p><img class="alignnone size-full wp-image-1811 border" title="WordPress: Short Menu Name" src="http://www.benhuson.co.uk/wp-content/uploads/wordpress-short-menu-name.gif" alt="" width="400" height="362" /></p>
<p>It would be really useful to have an extra label for &#8216;menu-name&#8217; so that you can use a different title for the menu item as illustrated in the example on the right.</p>
<p>I have submitted a WordPress patch which <a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Ftwitter.com%2Fnacin&sref=rss">Andrew Nacin</a> seems to have taken under his wing. You can follow the <a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fcore.trac.wordpress.org%2Fticket%2F14832&sref=rss">progress of the patch here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.benhuson.co.uk/2010/09/15/register-post-type-menu-name/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Using HeadSpace with Custom Post Types</title>
		<link>http://www.benhuson.co.uk/2010/09/14/headspace-custom-post-types/</link>
		<comments>http://www.benhuson.co.uk/2010/09/14/headspace-custom-post-types/#comments</comments>
		<pubDate>Tue, 14 Sep 2010 19:56:46 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Custom Post Types]]></category>
		<category><![CDATA[HeadSpace]]></category>
		<category><![CDATA[WordPress Plugins]]></category>

		<guid isPermaLink="false">http://www.benhuson.co.uk/?p=1771</guid>
		<description><![CDATA[Tweet I frequently install HeadSpace, the WordPress SEO plugin by John Godley, when I work on a WordPress site. Recently I have been making use of the new custom post type features of WordPress 3.0 but found that the HeadSpace meta box for editing the title and description tags did not show on my custom [...]]]></description>
			<content:encoded><![CDATA[
<!-- This is the start of the WP Twitter Button code -->
<div id="rk_wp_twitter_button" style="margin: 0px 0px 0px 0px; float: left"><a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Ftwitter.com%2Fshare&sref=rss" class="twitter-share-button" data-url="http://www.benhuson.co.uk/2010/09/14/headspace-custom-post-types/" data-count="horizontal" data-via="benhuson">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>
<!-- This is the end of the WP Twitter Button code -->

<p><strong>I frequently install <a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fwordpress.org%2Fextend%2Fplugins%2Fheadspace2%2F&sref=rss">HeadSpace</a></strong><strong>, the WordPress SEO plugin by <a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Ftwitter.com%2Fall_noodles&sref=rss">John Godley</a></strong><strong>, when I work on a WordPress site.</strong></p>
<p>Recently I have been making use of the new custom post type features of WordPress 3.0 but found that the HeadSpace meta box for editing the title and description tags did not show on my custom post type edit screens.</p>
<p>After a bit of delving through the code I figured out the way to do this &#8211; note that this may only work if your custom post type uses the default post capabilities.</p>
<p>It checks that the HeadSpace class is available and if so adds the meta box to your custom post type edit screen. Just add the following code into your plugin or theme&#8217;s functions.php file replacing &#8216;myposttype&#8217; with your custom post type.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #009933; font-style: italic;">/**
 * Add Headspace plugin support for myposttype
 */</span>
<span style="color: #000000; font-weight: bold;">function</span> myposttype_headpspace_add_custom_box<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$headspace2</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'add_meta_box'</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #990000;">is_object</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$headspace2</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		add_meta_box<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'headspacestuff'</span><span style="color: #339933;">,</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'HeadSpace'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'headspace'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span> <span style="color: #339933;">&amp;</span><span style="color: #000088;">$headspace2</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'metabox'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'myposttype'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'normal'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'high'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
add_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'wp_print_scripts'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'myposttype_headpspace_add_custom_box'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.benhuson.co.uk/2010/09/14/headspace-custom-post-types/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Google Analytics for WordPress plugin not tracking WP e-Commerce transactions?</title>
		<link>http://www.benhuson.co.uk/2010/08/11/google-analytics-wpecommerce-transactions/</link>
		<comments>http://www.benhuson.co.uk/2010/08/11/google-analytics-wpecommerce-transactions/#comments</comments>
		<pubDate>Wed, 11 Aug 2010 21:23:05 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[E-commerce]]></category>
		<category><![CDATA[Google Analytics]]></category>
		<category><![CDATA[Joost de Valk]]></category>
		<category><![CDATA[WP e-Commerce]]></category>

		<guid isPermaLink="false">http://www.benhuson.co.uk/?p=1673</guid>
		<description><![CDATA[Tweet I recently tried out Joost de Valk&#8217;s Google Analytics for WordPress (version 4) and was happy to see it supported ecommerce tracking for WP e-Commerce. I had the latest version of WP e-Commerce installed, version 3.7.6.7, and configured the analytics plugin to track transactions but for some reason my ecommerce purchases were not being tracked by [...]]]></description>
			<content:encoded><![CDATA[
<!-- This is the start of the WP Twitter Button code -->
<div id="rk_wp_twitter_button" style="margin: 0px 0px 0px 0px; float: left"><a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Ftwitter.com%2Fshare&sref=rss" class="twitter-share-button" data-url="http://www.benhuson.co.uk/2010/08/11/google-analytics-wpecommerce-transactions/" data-count="horizontal" data-via="benhuson">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>
<!-- This is the end of the WP Twitter Button code -->

<p><strong>I recently tried out Joost de Valk&#8217;s <a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fyoast.com%2Fgoogle-analytics-wordpress-v4%2F&sref=rss">Google Analytics for WordPress</a> (version 4) and was happy to see it supported ecommerce tracking for <a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fgetshopped.org%2F&sref=rss">WP e-Commerce</a>.</strong></p>
<p>I had the latest version of WP e-Commerce installed, version 3.7.6.7, and configured the analytics plugin to track transactions but for some reason my ecommerce purchases were not being tracked by Google Analytics.</p>
<p><img class="alignnone size-full wp-image-1686 border" title="E-commerce Conversion Rate" src="http://www.benhuson.co.uk/wp-content/uploads/ecommerce-conv-rate.jpg" alt="" width="400" height="172" /></p>
<p>I did a bit of digging around and discovered the Analytics plugin was looking for the global variable $cart_log_id from which it could get the transaction details, but this variable did not seem to exist (it did seem to be in pre 3.7.6.x versions of WP e-Commerce though).</p>
<p>I have submitted a patch for this for the forthcoming WP e-Commerce version 3.8 (which is currently in beta and looking great, by the way).</p>
<p>In the meantime, if you&#8217;re having this problem here&#8217;s how you can fix it&#8230;</p>
<p><span id="more-1673"></span></p>
<h3>The Fix</h3>
<p>You&#8217;ll need to get your hands a little bit dirty, but fortunately you only have to edit one file. In the WP e-Commerce plugin folder open the transaction_results.php file.</p>
<h4>Step 1</h4>
<p>Change the first line that defines global variables to add the $cart_log_id variable:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>2
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">,</span> <span style="color: #000088;">$user_ID</span><span style="color: #339933;">,</span> <span style="color: #000088;">$nzshpcrt_gateways</span><span style="color: #339933;">,</span> <span style="color: #000088;">$sessionid</span><span style="color: #339933;">,</span> <span style="color: #000088;">$cart_log_id</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<h4>Step 2</h4>
<p>At the end of the file just before the closing php tag we&#8217;ll query the database to get the $cart_log_id that will be used by the analytics plugin:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>46
47
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$cart_log_id</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">get_var</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;SELECT `id` FROM `&quot;</span> <span style="color: #339933;">.</span> WPSC_TABLE_PURCHASE_LOGS <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;` WHERE `sessionid`= &quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$sessionid</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot; LIMIT 1&quot;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>&#8230;and hopefully that should fix it.</p>
<p>I haven&#8217;t tested this for all versions of WP e-Commerce but it should certainly work on the latest 3.7.6.7 version.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.benhuson.co.uk/2010/08/11/google-analytics-wpecommerce-transactions/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>WordPress.org Goshdarnit!</title>
		<link>http://www.benhuson.co.uk/2010/07/20/wordpress-goshdarnit/</link>
		<comments>http://www.benhuson.co.uk/2010/07/20/wordpress-goshdarnit/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 21:03:54 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Error]]></category>

		<guid isPermaLink="false">http://www.benhuson.co.uk/?p=1629</guid>
		<description><![CDATA[Tweet Was just browsing WordPress.org and got this server error message. Matt, if there&#8217;s a WordPress problem is it always your fault? Made me chuckle ;)]]></description>
			<content:encoded><![CDATA[
<!-- This is the start of the WP Twitter Button code -->
<div id="rk_wp_twitter_button" style="margin: 0px 0px 0px 0px; float: left"><a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Ftwitter.com%2Fshare&sref=rss" class="twitter-share-button" data-url="http://www.benhuson.co.uk/2010/07/20/wordpress-goshdarnit/" data-count="horizontal" data-via="benhuson">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>
<!-- This is the end of the WP Twitter Button code -->

<p><strong>Was just browsing </strong><a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fwordpress.org%2F&sref=rss"><strong>WordPress.org</strong></a><strong> and got this server error message.</strong></p>
<p><a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fma.tt%2F&sref=rss">Matt</a>, if there&#8217;s a WordPress problem is it always your fault?<br />
Made me chuckle ;)</p>
<p><img class="alignnone size-full wp-image-1631 border" title="WordPress.org Goshdarnit!" src="http://www.benhuson.co.uk/wp-content/uploads/goshdarnit.gif" alt="" width="400" height="276" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.benhuson.co.uk/2010/07/20/wordpress-goshdarnit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Body Classes for Styling WordPress Taxonomies</title>
		<link>http://www.benhuson.co.uk/2010/06/24/wordpress-taxonomies-body-classes/</link>
		<comments>http://www.benhuson.co.uk/2010/06/24/wordpress-taxonomies-body-classes/#comments</comments>
		<pubDate>Thu, 24 Jun 2010 16:00:30 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Taxonomies]]></category>

		<guid isPermaLink="false">http://www.benhuson.co.uk/?p=1591</guid>
		<description><![CDATA[Tweet I recently noticed that WordPress does not seem to add style classes to the body tag for custom taxonomies in the same way that it does on category archives. You can fix this by adding the following to your functions.php file. function taxonomy_body_class&#40; $classes &#41; &#123; if &#40; is_tax&#40;&#41; &#41; &#123; $tax = get_query_var&#40; [...]]]></description>
			<content:encoded><![CDATA[
<!-- This is the start of the WP Twitter Button code -->
<div id="rk_wp_twitter_button" style="margin: 0px 0px 0px 0px; float: left"><a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Ftwitter.com%2Fshare&sref=rss" class="twitter-share-button" data-url="http://www.benhuson.co.uk/2010/06/24/wordpress-taxonomies-body-classes/" data-count="horizontal" data-via="benhuson">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>
<!-- This is the end of the WP Twitter Button code -->

<p>I recently noticed that WordPress does not seem to add style classes to the body tag for custom taxonomies in the same way that it does on category archives.</p>
<p>You can fix this by adding the following to your functions.php file.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> taxonomy_body_class<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$classes</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> is_tax<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$tax</span> <span style="color: #339933;">=</span> get_query_var<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'taxonomy'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$term</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$tax</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'-'</span> <span style="color: #339933;">.</span> get_query_var<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'term'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$classes</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array_merge</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$classes</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'taxonomy-archive'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$tax</span><span style="color: #339933;">,</span> <span style="color: #000088;">$term</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #b1b100;">return</span> <span style="color: #000088;">$classes</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
add_filter<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'body_class'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'taxonomy_body_class'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>I don&#8217;t know why WordPress doesn&#8217;t do this automatically &#8211; I guess it should be added to core. What do you think?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.benhuson.co.uk/2010/06/24/wordpress-taxonomies-body-classes/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Making your plugin meta boxes work with custom post types in WordPress 3.0</title>
		<link>http://www.benhuson.co.uk/2010/06/18/wp-meta-box-post-types/</link>
		<comments>http://www.benhuson.co.uk/2010/06/18/wp-meta-box-post-types/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 19:36:25 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Web Developer]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Custom Post Types]]></category>
		<category><![CDATA[Meta Boxes]]></category>
		<category><![CDATA[Robots]]></category>
		<category><![CDATA[WordPress Plugins]]></category>

		<guid isPermaLink="false">http://www.benhuson.co.uk/?p=1580</guid>
		<description><![CDATA[Tweet Getting to grips with custom post types in WordPress 3.0? I am, and am finding they&#8217;re a great way to organise different content on your site and very easy to implement in just a few lines of code. However, the challenge now is for plugin developers to make their plugins play nice with custom [...]]]></description>
			<content:encoded><![CDATA[
<!-- This is the start of the WP Twitter Button code -->
<div id="rk_wp_twitter_button" style="margin: 0px 0px 0px 0px; float: left"><a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Ftwitter.com%2Fshare&sref=rss" class="twitter-share-button" data-url="http://www.benhuson.co.uk/2010/06/18/wp-meta-box-post-types/" data-count="horizontal" data-via="benhuson">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>
<!-- This is the end of the WP Twitter Button code -->

<p><strong>Getting to grips with custom post types in WordPress 3.0?</strong></p>
<p>I am, and am finding they&#8217;re a great way to organise different content on your site and very easy to implement in <a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fcodex.wordpress.org%2FFunction_Reference%2Fregister_post_type&sref=rss">just a few lines of code</a>.</p>
<p>However, the challenge now is for plugin developers to make their plugins play nice with custom post types. The main thing I&#8217;ve noticed so far is that most plugins only tend to add meta boxes to posts and pages, so here&#8217;s the first step &#8211; getting your WordPress plugin meta boxes to work with custom post types.</p>
<p><span id="more-1580"></span></p>
<h3>A Real World Example</h3>
<p>I needed to set some of my custom post type pages not to be indexed by search engines so I picked out the <a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fwordpress.org%2Fextend%2Fplugins%2Frobots-meta%2F&sref=rss">Robots Meta</a> plugin by <a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fyoast.com&sref=rss">Joost de Valk</a> &#8211; the best plugin for the job in my opinion &#8211; installed it, and found it was only showing a meta box when editing my posts and pages.</p>
<p>I&#8217;m going to use Joost&#8217;s plugin (version 3.3.1) to illustrate how you can get meta boxes to show for custom post types so <a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fwordpress.org%2Fextend%2Fplugins%2Frobots-meta%2F&sref=rss">download it</a> and continue reading below.</p>
<h3>The Meta Boxes</h3>
<p>The file you&#8217;ll need to edit is robots-meta.php. The meta boxes are added to posts and pages by the meta_box function on line 24:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>24
25
26
27
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> meta_box<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	add_meta_box<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'robotsmeta'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'Robots Meta'</span><span style="color: #339933;">,</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'RobotsMeta_Admin'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'noindex_option_fill'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'post'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'side'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	add_meta_box<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'robotsmeta'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'Robots Meta'</span><span style="color: #339933;">,</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'RobotsMeta_Admin'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'noindex_option_fill'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'page'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'side'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<h3>Meta Boxes for Custom Post Types</h3>
<p>Firstly we&#8217;re going to check that the &#8216;get_post_types&#8217; function exists. If it does then we&#8217;ll loop through all the post types and add meta boxes. If not we&#8217;ll continue just to add for posts and pages.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>24
25
26
27
28
29
30
31
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> meta_box<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'get_post_types'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #666666; font-style: italic;">// Handle posts, pages and custom post types here</span>
	<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
		add_meta_box<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'robotsmeta'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'Robots Meta'</span><span style="color: #339933;">,</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'RobotsMeta_Admin'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'noindex_option_fill'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'post'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'side'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		add_meta_box<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'robotsmeta'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'Robots Meta'</span><span style="color: #339933;">,</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'RobotsMeta_Admin'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'noindex_option_fill'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'page'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'side'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>The next step is to get all the post types that have been registered &#8211; this will include the built-in post types for posts and pages. We then loop through them:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$post_types</span> <span style="color: #339933;">=</span> get_post_types<span style="color: #009900;">&#40;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'objects'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$post_types</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$post_type</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #666666; font-style: italic;">// Handle each post type here</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Then for each post type we are going to add a meta box. It is import to note that when you add a custom post type you can choose wether or not to automatically create the WordPress UI in the admin. We only want to add meta boxes if the UI is generated by WordPress so we add in an &#8216;if&#8217; statement to check.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>24
25
26
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$post_type</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">show_ui</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	add_meta_box<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'robotsmeta'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Robots Meta'</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'RobotsMeta_Admin'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'noindex_option_fill'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$post_type</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">name</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'side'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<h3>The Finished Function</h3>
<p>So put all that together and this is what you get:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>24
25
26
27
28
29
30
31
32
33
34
35
36
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> meta_box<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'get_post_types'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$post_types</span> <span style="color: #339933;">=</span> get_post_types<span style="color: #009900;">&#40;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'objects'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$post_types</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$post_type</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$post_type</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">show_ui</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
				add_meta_box<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'robotsmeta'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Robots Meta'</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'RobotsMeta_Admin'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'noindex_option_fill'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$post_type</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">name</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'side'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
		add_meta_box<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'robotsmeta'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'Robots Meta'</span><span style="color: #339933;">,</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'RobotsMeta_Admin'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'noindex_option_fill'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'post'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'side'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		add_meta_box<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'robotsmeta'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'Robots Meta'</span><span style="color: #339933;">,</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'RobotsMeta_Admin'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'noindex_option_fill'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'page'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'side'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p><strong>Please Note:</strong> This only deomstrates how you can add meta boxes for custom post types. There are other aspects such as checking user capabilities for different post types that may be applicable when you are saving your meta box data. See the capabilities arguments you can set in the <a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fcodex.wordpress.org%2FFunction_Reference%2Fregister_post_type&sref=rss">register_post_type</a> function.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.benhuson.co.uk/2010/06/18/wp-meta-box-post-types/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Google Inline Jump To Links</title>
		<link>http://www.benhuson.co.uk/2010/03/18/google-inline-jump-to-links/</link>
		<comments>http://www.benhuson.co.uk/2010/03/18/google-inline-jump-to-links/#comments</comments>
		<pubDate>Thu, 18 Mar 2010 22:25:34 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.benhuson.co.uk/?p=1514</guid>
		<description><![CDATA[Tweet It is now fairly common to see Google insert jump to anchor links for popular pages in their search results. For example, a search for &#8220;wordpress loop&#8221; returned 3 anchor links. Inline Jump To Links Then I did a search for &#8220;wordpress multiple loops&#8221; and noticed an additional jump to link within the description text. [...]]]></description>
			<content:encoded><![CDATA[
<!-- This is the start of the WP Twitter Button code -->
<div id="rk_wp_twitter_button" style="margin: 0px 0px 0px 0px; float: left"><a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Ftwitter.com%2Fshare&sref=rss" class="twitter-share-button" data-url="http://www.benhuson.co.uk/2010/03/18/google-inline-jump-to-links/" data-count="horizontal" data-via="benhuson">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>
<!-- This is the end of the WP Twitter Button code -->

<p>It is now fairly common to see Google insert jump to anchor links for popular pages in their search results. For example, a search for <strong>&#8220;wordpress loop&#8221;</strong> returned 3 anchor links.</p>
<p><img class="border" title="Google Jump To Links" src="http://www.benhuson.co.uk/wp-content/uploads/google-jump-to-link-simple.gif" alt="" width="400" height="92" /></p>
<h3>Inline Jump To Links</h3>
<p>Then I did a search for <strong>&#8220;wordpress multiple loops&#8221;</strong> and noticed an additional jump to link within the description text.</p>
<p><img class="border" title="Google Inline Jump To Links" src="http://www.benhuson.co.uk/wp-content/uploads/google-jump-to-link.gif" alt="" width="400" height="92" /></p>
<p>Google has picked that section of the page as being more relevant to my search terms and has included a link to that anchor. Not only that but the description is taken from the page content immediately after that anchor point and heading. Clever.</p>
<h3>Let&#8217;s look at the source code</h3>
<p>In this example, looking at the page source code reveals an anchor tag followed by a heading tag followed by a paragraph of content.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>347
348
349
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>a name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Multiple_Loops_in_Action&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Multiple_Loops_in_Action&quot;</span><span style="color: #339933;">&gt;&lt;/</span>a<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>h4<span style="color: #339933;">&gt;&lt;</span>span <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;mw-headline&quot;</span><span style="color: #339933;">&gt;</span>Multiple Loops in Action<span style="color: #339933;">&lt;/</span>span<span style="color: #339933;">&gt;&lt;/</span>h4<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span>The best way to understand how to <span style="color: #000000; font-weight: bold;">use</span> multiple loops is to actually show an example of its <span style="color: #000000; font-weight: bold;">use</span><span style="color: #339933;">...</span></pre></td></tr></table></div>

<p>It&#8217;s unclear wether Google in picking the &#8220;Multiple Loops in Action&#8221; link text from the anchor name or the following heading text.</p>
<p>Interestingly the &#8216;mw-headline&#8217; class applied to the heading seems to be a fairly standard <a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fwww.mediawiki.org%2Fwiki%2FExtension%3AH1_CSS&sref=rss">class applied to headings in Wikis</a>, so maybe this is what Google is picking up on.</p>
<p>I think I may have to try out some of this HTML markup and see what happens&#8230;</p>
<h3>Further Reading</h3>
<ul>
<li><a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fgoogleblog.blogspot.com%2F2009%2F09%2Fjump-to-information-you-want-right-from.html&sref=rss">Official Google Blog: Jump to the information you want right from the search snippets</a></li>
<li><a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fsearchengineland.com%2Fgoogle-jump-to-links-within-search-snippets-26603&sref=rss">Google “Jump To” Links Within Search Snippets</a></li>
<li><a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fblog.thinksem.com%2F2009%2F12%2Fgoogle-jump-to-links.html&sref=rss">Google Jump To Links in Snippets</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.benhuson.co.uk/2010/03/18/google-inline-jump-to-links/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Category Paging Functions in WP e-Commerce 3.7.6</title>
		<link>http://www.benhuson.co.uk/2010/03/10/wpsc-paging/</link>
		<comments>http://www.benhuson.co.uk/2010/03/10/wpsc-paging/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 09:30:31 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[E-Commerce]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[E-commerce]]></category>
		<category><![CDATA[Paging]]></category>
		<category><![CDATA[WordPress Plugins]]></category>
		<category><![CDATA[WP e-Commerce]]></category>

		<guid isPermaLink="false">http://www.benhuson.co.uk/?p=1461</guid>
		<description><![CDATA[Tweet WP e-Commerce 3.7.6 now includes better support for paging on category pages. The latest release contains a suite of functions (my little contribution) to help you customise how pagination is displayed in your WPSC templates. You can find an in-depth look at these functions and how to use them in the WP e-Commerce Documentation. [...]]]></description>
			<content:encoded><![CDATA[
<!-- This is the start of the WP Twitter Button code -->
<div id="rk_wp_twitter_button" style="margin: 0px 0px 0px 0px; float: left"><a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Ftwitter.com%2Fshare&sref=rss" class="twitter-share-button" data-url="http://www.benhuson.co.uk/2010/03/10/wpsc-paging/" data-count="horizontal" data-via="benhuson">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>
<!-- This is the end of the WP Twitter Button code -->

<p><strong><a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fgetshopped.org%2Fgetshopped-news%2Fwp-e-commerce-3-7-6-rc-1-is-out%2F&sref=rss">WP e-Commerce 3.7.6</a> now includes better support for paging on category pages.</strong></p>
<p>The latest release contains a suite of functions (my little contribution) to help you customise how pagination is displayed in your WPSC templates.</p>
<p>You can find an in-depth look at these functions and how to use them in the <a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fgetshopped.org%2Fresources%2Fdocs%2Fdesign-and-layout%2Fpagination%2F&sref=rss">WP e-Commerce Documentation</a>.</p>
<p>Below are some quick examples of what you can do&#8230;</p>
<p><span id="more-1461"></span></p>
<h3>Basic paging</h3>
<p><img class="border" title="wpsc-paging" src="http://www.benhuson.co.uk/wp-content/uploads/wpsc-paging.gif" alt="" width="400" height="50" /></p>
<p>Some fairly standard paging with linked page numbers, previous and next links, and arrow links to take to to the first and last pages. You can customise the text that is used for previous, next, first and last links.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> wpsc_first_products_link<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'&amp;laquo;'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> wpsc_previous_products_link<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'previous'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> wpsc_pagination<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> wpsc_next_products_link<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'next'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> wpsc_last_products_link<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'&amp;raquo;'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<h3>Limit the amount of pages</h3>
<p><img class="alignnone size-full wp-image-1462 border" title="wpsc-paging-page-x-of-x" src="http://www.benhuson.co.uk/wp-content/uploads/wpsc-paging-page-x-of-x.gif" alt="" width="400" height="90" /></p>
<p>You can limit the amount of page links to show at one time. The above example shows what happens if there are 10 pages of products, but only showing 7 page links at a time. Notice also the text describing which page you&#8217;re on and that the previous and first links are greyed out when not applicable &#8211; you can also choose to hide them instead of showing inactive links.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">Page <span style="color: #000000; font-weight: bold;">&lt;?php</span> wpsc_showing_products_page<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>:
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> wpsc_first_products_link<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'&amp;laquo;'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> wpsc_previous_products_link<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'previous'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> wpsc_pagination<span style="color: #009900;">&#40;</span> <span style="color: #cc66cc;">7</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> wpsc_next_products_link<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'next'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> wpsc_last_products_link<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'&amp;raquo;'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<h3>Total number of products</h3>
<p><img class="border" title="wpsc-paging-showing-x-products" src="http://www.benhuson.co.uk/wp-content/uploads/wpsc-paging-showing-x-products.gif" alt="" width="400" height="50" /></p>
<p>There is a function to easily display the total number of products. You can detect if the category has multiple pages and if it doesn&#8217;t display something like this instead.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> wpsc_has_pages<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
   &lt;!-- Insert pagination for multiple pages --&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">else</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
   Showing <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> wpsc_total_product_count<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> products
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<h3>Number of products showing</h3>
<p><img class="alignnone size-full wp-image-1463 border" title="wpsc-paging-showing-x-of-x-products" src="http://www.benhuson.co.uk/wp-content/uploads/wpsc-paging-showing-x-of-x-products.gif" alt="" width="400" height="50" /></p>
<p>You can display an indication as to which products are showing depending on which page you&#8217;re viewing.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">Showing <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> wpsc_showing_products<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> of <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> wpsc_total_product_count<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> products:</pre></div></div>

<h3>What next?</h3>
<p>The new WP e-Commerce default themes contain examples of pagination so hop into your templates and <a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fgetshopped.org%2Fresources%2Fdocs%2Fdesign-and-layout%2Fpagination%2F&sref=rss">create some nice pagination&#8230;</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.benhuson.co.uk/2010/03/10/wpsc-paging/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>WordPress Permalinks on a Namesco Zeus Server</title>
		<link>http://www.benhuson.co.uk/2010/03/01/wordpress-permalinks-zeus-server/</link>
		<comments>http://www.benhuson.co.uk/2010/03/01/wordpress-permalinks-zeus-server/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 22:50:24 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Namesco]]></category>
		<category><![CDATA[Permalinks]]></category>
		<category><![CDATA[Zeus Server]]></category>

		<guid isPermaLink="false">http://www.benhuson.co.uk/?p=1444</guid>
		<description><![CDATA[Tweet I had a bit of a problem recently trying to convert a WordPress .htaccess file to a rewrite.script file for a Zeus server. My knowledge of the syntax for rewrite.script was non-existant so I tried the .htaccess converter provided in the Namesco admin. This managed to get me part of the way there but [...]]]></description>
			<content:encoded><![CDATA[
<!-- This is the start of the WP Twitter Button code -->
<div id="rk_wp_twitter_button" style="margin: 0px 0px 0px 0px; float: left"><a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Ftwitter.com%2Fshare&sref=rss" class="twitter-share-button" data-url="http://www.benhuson.co.uk/2010/03/01/wordpress-permalinks-zeus-server/" data-count="horizontal" data-via="benhuson">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>
<!-- This is the end of the WP Twitter Button code -->

<p>I had a bit of a problem recently trying to convert a WordPress .htaccess file to a rewrite.script file for a Zeus server. My knowledge of the syntax for rewrite.script was non-existant so I tried the .htaccess converter provided in the Namesco admin.</p>
<p>This managed to get me part of the way there but the permalinks included &#8220;index.php&#8221; before the custom permalink setting.</p>
<p><span id="more-1444"></span></p>
<p>Hunting around I found <a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fwww.adamchristie.co.uk%2Fwordpress%2Fseo-friendly-wordpress-urls-on-namesco-zeus-servers%2F&sref=rss">this blog post by Adam Christie</a> in which he documents a rewrite.script for WordPress &#8211; and it works! I have provide the code below for your reference.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">RULE_0_START<span style="color: #339933;">:</span>
<span style="color: #666666; font-style: italic;"># get the document root
</span>map path into SCRATCH<span style="color: #339933;">:</span>DOCROOT from <span style="color: #339933;">/</span>
<span style="color: #666666; font-style: italic;"># initialize our variables
</span>set SCRATCH<span style="color: #339933;">:</span>ORIG_URL <span style="color: #339933;">=</span> <span style="color: #339933;">%</span><span style="color: #009900;">&#123;</span>URL<span style="color: #009900;">&#125;</span>
set SCRATCH<span style="color: #339933;">:</span>REQUEST_URI <span style="color: #339933;">=</span> <span style="color: #339933;">%</span><span style="color: #009900;">&#123;</span>URL<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># see if theres any queries in our URL
</span>match URL into $ with ^<span style="color: #009900;">&#40;</span><span style="color: #339933;">.*</span><span style="color: #009900;">&#41;</span>\?<span style="color: #009900;">&#40;</span><span style="color: #339933;">.*</span><span style="color: #009900;">&#41;</span>$
<span style="color: #b1b100;">if</span> matched then
set SCRATCH<span style="color: #339933;">:</span>REQUEST_URI <span style="color: #339933;">=</span> $<span style="color:#800080;">1</span>
set SCRATCH<span style="color: #339933;">:</span>QUERY_STRING <span style="color: #339933;">=</span> $<span style="color:#800080;">2</span>
<span style="color: #b1b100;">endif</span>
RULE_0_END<span style="color: #339933;">:</span>
&nbsp;
RULE_1_START<span style="color: #339933;">:</span>
<span style="color: #666666; font-style: italic;"># prepare to search for file, rewrite if its not found
</span>set SCRATCH<span style="color: #339933;">:</span>REQUEST_FILENAME <span style="color: #339933;">=</span> <span style="color: #339933;">%</span><span style="color: #009900;">&#123;</span>SCRATCH<span style="color: #339933;">:</span>DOCROOT<span style="color: #009900;">&#125;</span>
set SCRATCH<span style="color: #339933;">:</span>REQUEST_FILENAME <span style="color: #339933;">.</span> <span style="color: #339933;">%</span><span style="color: #009900;">&#123;</span>SCRATCH<span style="color: #339933;">:</span>REQUEST_URI<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># check to see if the file requested is an actual file or
</span><span style="color: #666666; font-style: italic;"># a directory with possibly an index.  don’t rewrite if so
</span>look <span style="color: #b1b100;">for</span> <span style="color: #990000;">file</span> at <span style="color: #339933;">%</span><span style="color: #009900;">&#123;</span>SCRATCH<span style="color: #339933;">:</span>REQUEST_FILENAME<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">if</span> not exists then
look <span style="color: #b1b100;">for</span> <span style="color: #990000;">dir</span> at <span style="color: #339933;">%</span><span style="color: #009900;">&#123;</span>SCRATCH<span style="color: #339933;">:</span>REQUEST_FILENAME<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">if</span> not exists then
set URL <span style="color: #339933;">=</span> <span style="color: #339933;">/</span>index<span style="color: #339933;">.</span>php?q<span style="color: #339933;">=%</span><span style="color: #009900;">&#123;</span>SCRATCH<span style="color: #339933;">:</span>REQUEST_URI<span style="color: #009900;">&#125;</span>
goto QSA_RULE_START
<span style="color: #b1b100;">endif</span>
<span style="color: #b1b100;">endif</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># if we made it here then its a file or dir and no rewrite
</span>goto <span style="color: #990000;">END</span>
RULE_1_END<span style="color: #339933;">:</span>
&nbsp;
QSA_RULE_START<span style="color: #339933;">:</span>
<span style="color: #666666; font-style: italic;"># append the query string if there was one originally
</span><span style="color: #666666; font-style: italic;"># the same as [QSA,L] for apache
</span>match SCRATCH<span style="color: #339933;">:</span>ORIG_URL into <span style="color: #339933;">%</span> with \?<span style="color: #009900;">&#40;</span><span style="color: #339933;">.*</span><span style="color: #009900;">&#41;</span>$
<span style="color: #b1b100;">if</span> matched then
set URL <span style="color: #339933;">=</span> <span style="color: #339933;">%</span><span style="color: #009900;">&#123;</span>URL<span style="color: #009900;">&#125;</span><span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;%</span><span style="color: #009900;">&#123;</span>SCRATCH<span style="color: #339933;">:</span>QUERY_STRING<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">endif</span>
goto <span style="color: #990000;">END</span>
QSA_RULE_END<span style="color: #339933;">:</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.benhuson.co.uk/2010/03/01/wordpress-permalinks-zeus-server/feed/</wfw:commentRss>
		<slash:comments>30</slash:comments>
		</item>
		<item>
		<title>Customise the Terms and Conditions Checkbox and Link in WP e-Commerce</title>
		<link>http://www.benhuson.co.uk/2010/02/09/wpsc-terms-checkbox/</link>
		<comments>http://www.benhuson.co.uk/2010/02/09/wpsc-terms-checkbox/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 21:15:19 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[E-commerce]]></category>
		<category><![CDATA[WordPress Plugins]]></category>
		<category><![CDATA[WP e-Commerce]]></category>

		<guid isPermaLink="false">http://www.benhuson.co.uk/?p=1403</guid>
		<description><![CDATA[Tweet By default the terms and conditions link on the checkout page in WP e-Commerce activates an overlay popup containing the terms and conditions text you have specified in the admin. But what if you want the link to redirect to a page instead of triggering this popup? You just need to make a small [...]]]></description>
			<content:encoded><![CDATA[
<!-- This is the start of the WP Twitter Button code -->
<div id="rk_wp_twitter_button" style="margin: 0px 0px 0px 0px; float: left"><a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Ftwitter.com%2Fshare&sref=rss" class="twitter-share-button" data-url="http://www.benhuson.co.uk/2010/02/09/wpsc-terms-checkbox/" data-count="horizontal" data-via="benhuson">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>
<!-- This is the end of the WP Twitter Button code -->

<p>By default the terms and conditions link on the checkout page in WP e-Commerce activates an overlay popup containing the terms and conditions text you have specified in the admin.</p>
<p><img class="alignnone size-full wp-image-1434 border" title="WPSC Terms Popup" src="http://www.benhuson.co.uk/wp-content/uploads/wpsc-terms-popup.gif" alt="" width="400" height="240" /></p>
<p>But what if you want the link to redirect to a page instead of triggering this popup? You just need to make a small change to your checkout template. Here&#8217;s what you need to do&#8230;</p>
<p><span id="more-1403"></span></p>
<h3>In The Admin</h3>
<p>In the admin, instead of specifying terms and conditions text we are going to enter a URL. Make sure your URL is a full path including &#8216;http://&#8217; as this will make it easier to detect wether the content is a URL or plain text.</p>
<p><img class="alignnone size-full wp-image-1425 border" title="WPSC Settings Terms" src="http://www.benhuson.co.uk/wp-content/uploads/wpsc-settings-terms.gif" alt="" width="400" height="230" /></p>
<h3>Changes in your WP e-Commerce Theme</h3>
<h4>Instructions for WP e-Commerce 3.8:</h4>
<p>If you have customised your theme, the shopping cart template will be in your active WordPress theme folder called &#8216;wpsc-shopping_cart_page.php&#8217;. If you have not customised your theme you should copy the &#8216;wpsc-shopping_cart_page.php&#8217; theme file to your active theme &#8211; you can do this from the Presentation section of your store settings.</p>
<p>In this file look for the terms and condition code. It will be near the bottom and should look a bit like this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>297
298
299
300
301
302
303
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span>wpsc_has_tnc<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;tr&gt;
   &lt;td colspan='2'&gt;
      &lt;label for=&quot;agree&quot;&gt;&lt;input id=&quot;agree&quot; type='checkbox' value='yes' name='agree' /&gt; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #990000;">printf</span><span style="color: #009900;">&#40;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;I agree to the &lt;a class='thickbox' target='_blank' href='<span style="color: #009933; font-weight: bold;">%s</span>' class='termsandconds'&gt;Terms and Conditions&lt;/a&gt;&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;wpsc&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> site_url<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;?termsandconds=true&amp;amp;width=360&amp;amp;height=400&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> &lt;span class=&quot;asterix&quot;&gt;*&lt;/span&gt;&lt;/label&gt;
   &lt;/td&gt;
&lt;/tr&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>What we will do is change this code so if the contents of your terms and condition is a link (beginning http://) it will write a link to that page rather than a popup. The new code with the if statement should look like this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span>wpsc_has_tnc<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;tr&gt;
   &lt;td colspan='2'&gt;
      &lt;label for=&quot;agree&quot;&gt;
         &lt;input id=&quot;agree&quot; type='checkbox' value='yes' name='agree' /&gt;
         <span style="color: #000000; font-weight: bold;">&lt;?php</span>
         <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'http://'</span> <span style="color: #339933;">==</span> <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span> get_option<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'terms_and_conditions'</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">7</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #990000;">printf</span><span style="color: #009900;">&#40;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;I agree to the &lt;a target='_blank' href='<span style="color: #009933; font-weight: bold;">%s</span>' class='termsandconds'&gt;Terms and Conditions&lt;/a&gt;&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;wpsc&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> get_option<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'terms_and_conditions'</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
         <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #990000;">printf</span><span style="color: #009900;">&#40;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;I agree to the &lt;a class='thickbox' target='_blank' href='<span style="color: #009933; font-weight: bold;">%s</span>' class='termsandconds'&gt;Terms and Conditions&lt;/a&gt;&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;wpsc&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> site_url<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;?termsandconds=true&amp;amp;width=360&amp;amp;height=400&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
         <span style="color: #009900;">&#125;</span>
         <span style="color: #000000; font-weight: bold;">?&gt;</span>
         &lt;span class=&quot;asterix&quot;&gt;*&lt;/span&gt;
      &lt;/label&gt;
   &lt;/td&gt;
&lt;/tr&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<h4>Instructions for older versions:</h4>
<p>Your WP e-Commerce theme files usually reside in the &#8216;wp-content/uploads/wpsc/themes/your-theme&#8217; directory. To change the terms and conditions link to link to another page rather that popup you will need to edit the &#8216;shopping_cart_page.php&#8217; file.</p>
<p>In this file look for the terms and condition code. It will be near the bottom and should look a bit like this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>297
298
299
300
301
302
303
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span>get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'terms_and_conditions'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;tr&gt;
   &lt;td colspan='2'&gt;
      &lt;input type='checkbox' value='yes' name='agree' /&gt; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> TXT_WPSC_TERMS1<span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;a class='thickbox' target='_blank' href='<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'siteurl'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;?termsandconds=true&amp;amp;width=360&amp;amp;height=400'&quot;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>' class='termsandconds'&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> TXT_WPSC_TERMS2<span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;
   &lt;/td&gt;
&lt;/tr&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>What we will do is change this code so if the contents of your terms and condition is a link (beginning http://) it will write a link to that page rather than a popup. The new code with the if statement should look like this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>297
298
299
300
301
302
303
304
305
306
307
308
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'terms_and_conditions'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">''</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;tr class=&quot;terms&quot;&gt;
   &lt;td colspan='2'&gt;
      &lt;input type='checkbox' value='yes' name='agree' /&gt; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> TXT_WPSC_TERMS1<span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>
      <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span>get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'terms_and_conditions'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">7</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'http://'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
         &lt;a target='_blank' href='<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'terms_and_conditions'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>' class='termsandconds'&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> TXT_WPSC_TERMS2<span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;
      <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
         &lt;a class='thickbox' target='_blank' href='<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'siteurl'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;?termsandconds=true&amp;amp;width=360&amp;amp;height=400'&quot;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>' class='termsandconds'&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> TXT_WPSC_TERMS2<span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;
      <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
   &lt;/td&gt;
&lt;/tr&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>And that&#8217;s all there is to it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.benhuson.co.uk/2010/02/09/wpsc-terms-checkbox/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>List Pages at Depth 1.1</title>
		<link>http://www.benhuson.co.uk/2010/01/25/list-pages-at-depth-1-1/</link>
		<comments>http://www.benhuson.co.uk/2010/01/25/list-pages-at-depth-1-1/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 22:33:46 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress Plugins]]></category>

		<guid isPermaLink="false">http://www.benhuson.co.uk/?p=1366</guid>
		<description><![CDATA[Tweet Just released an update to the List Pages at Depth plugin for WordPress. This update fixed a pretty major bug which prevented the list showing the correct branch of subpages when the start depth was greater than 1 (secondary level pages). Now this is fixed you&#8217;ll be able to display a list of only [...]]]></description>
			<content:encoded><![CDATA[
<!-- This is the start of the WP Twitter Button code -->
<div id="rk_wp_twitter_button" style="margin: 0px 0px 0px 0px; float: left"><a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Ftwitter.com%2Fshare&sref=rss" class="twitter-share-button" data-url="http://www.benhuson.co.uk/2010/01/25/list-pages-at-depth-1-1/" data-count="horizontal" data-via="benhuson">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>
<!-- This is the end of the WP Twitter Button code -->

<p><strong>Just released an update to the </strong><a href="http://www.benhuson.co.uk/wordpress-plugins/list-pages-at-depth/"><strong>List Pages at Depth</strong></a><strong> plugin for WordPress.</strong></p>
<p>This update fixed a pretty major bug which prevented the list showing the correct branch of subpages when the start depth was greater than 1 (secondary level pages).</p>
<p>Now this is fixed you&#8217;ll be able to display a list of only tertiary level pages &#8211; Useful if you have a site with a horizontal navigation with drop down menus for secondary level navigation, and want to show and subpages of the secondary level as a list in your sidebar.</p>
<p>What&#8217;s more the plugin now includes a widget so you can easily add a list of subpages into your sidebar.</p>
<p><span id="more-1366"></span></p>
<h3>Widget Examples</h3>
<p>The following configuration will display a list of secondary and tertiary level pages (depths 1 to 2) for the currently selected primary navigation item. The list of pages will show for all pages that are subpages (or sub-subpages) of that primary page.</p>
<p><a href="http://www.benhuson.co.uk/wp-content/uploads/list-pages-at-depth-sec.jpg"><img class="alignnone size-full wp-image-1376" title="List Pages at Depth - Secondary Nav" src="http://www.benhuson.co.uk/wp-content/uploads/list-pages-at-depth-sec.jpg" alt="" width="285" height="505" /></a></p>
<p>The widget below will only display the tertiary level (depth 2) of navigation for subpages of the currently selected secondary level page.</p>
<p><a href="http://www.benhuson.co.uk/wp-content/uploads/list-pages-at-depth-ter.jpg"><img class="alignnone size-full wp-image-1377" title="List Pages at Depth - Tertiary Nav" src="http://www.benhuson.co.uk/wp-content/uploads/list-pages-at-depth-ter.jpg" alt="" width="285" height="505" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.benhuson.co.uk/2010/01/25/list-pages-at-depth-1-1/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Help Improve Adobe CS4 Products</title>
		<link>http://www.benhuson.co.uk/2010/01/19/help-improve-adobe-cs4-products/</link>
		<comments>http://www.benhuson.co.uk/2010/01/19/help-improve-adobe-cs4-products/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 20:51:56 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Dreamweaver]]></category>
		<category><![CDATA[Fireworks]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.benhuson.co.uk/?p=1336</guid>
		<description><![CDATA[Tweet Recently I upgraded my Adobe Suite to CS4 and upon launching one of the application this dialog box appears&#8230; I have been using Adobe products for many years. From my early days in design I was using Photoshop and Illustrator, and also using Macromedia&#8217;s web design products like Flash, Dreamweaver and Fireworks which were then [...]]]></description>
			<content:encoded><![CDATA[
<!-- This is the start of the WP Twitter Button code -->
<div id="rk_wp_twitter_button" style="margin: 0px 0px 0px 0px; float: left"><a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Ftwitter.com%2Fshare&sref=rss" class="twitter-share-button" data-url="http://www.benhuson.co.uk/2010/01/19/help-improve-adobe-cs4-products/" data-count="horizontal" data-via="benhuson">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>
<!-- This is the end of the WP Twitter Button code -->

<p><strong>Recently I upgraded my Adobe Suite to CS4 and upon launching one of the application this dialog box appears&#8230;</strong></p>
<p><a href="http://www.benhuson.co.uk/wp-content/uploads/help-improve-adobe-cs4-products.jpg"><img class="alignnone size-medium wp-image-1338" title="Help Improve Adobe CS4 Products" src="http://www.benhuson.co.uk/wp-content/uploads/help-improve-adobe-cs4-products-400x310.jpg" alt="" width="400" height="310" /></a></p>
<p>I have been using <a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fwww.adobe.com%2F&sref=rss">Adobe</a> products for many years. From my early days in design I was using <a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fwww.amazon.co.uk%2Fgp%2Fsearch%3Fie%3DUTF8%26amp%3Bkeywords%3DAdobe%2520Photoshop%2520CS4%26amp%3Btag%3Dbenhuson-21%26amp%3Bindex%3Dsoftware%26amp%3BlinkCode%3Dur2%26amp%3Bcamp%3D1634%26amp%3Bcreative%3D6738&sref=rss">Photoshop</a><img style="border: none !important; margin: 0px !important;" src="http://www.assoc-amazon.co.uk/e/ir?t=benhuson-21&amp;l=ur2&amp;o=2" border="0" alt="" width="1" height="1" /> and <a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fwww.amazon.co.uk%2Fgp%2Fsearch%3Fie%3DUTF8%26amp%3Bkeywords%3DAdobe%2520Illustrator%2520CS4%26amp%3Btag%3Dbenhuson-21%26amp%3Bindex%3Dsoftware%26amp%3BlinkCode%3Dur2%26amp%3Bcamp%3D1634%26amp%3Bcreative%3D6738&sref=rss">Illustrator</a><img style="border: none !important; margin: 0px !important;" src="http://www.assoc-amazon.co.uk/e/ir?t=benhuson-21&amp;l=ur2&amp;o=2" border="0" alt="" width="1" height="1" />, and also using Macromedia&#8217;s web design products like <a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fwww.amazon.co.uk%2Fgp%2Fsearch%3Fie%3DUTF8%26amp%3Bkeywords%3DAdobe%2520Flash%2520CS4%26amp%3Btag%3Dbenhuson-21%26amp%3Bindex%3Dsoftware%26amp%3BlinkCode%3Dur2%26amp%3Bcamp%3D1634%26amp%3Bcreative%3D6738&sref=rss">Flash</a><img style="border: none !important; margin: 0px !important;" src="http://www.assoc-amazon.co.uk/e/ir?t=benhuson-21&amp;l=ur2&amp;o=2" border="0" alt="" width="1" height="1" />, <a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fwww.amazon.co.uk%2Fgp%2Fsearch%3Fie%3DUTF8%26amp%3Bkeywords%3DAdobe%2520Dreamweaver%2520CS4%26amp%3Btag%3Dbenhuson-21%26amp%3Bindex%3Dsoftware%26amp%3BlinkCode%3Dur2%26amp%3Bcamp%3D1634%26amp%3Bcreative%3D6738&sref=rss">Dreamweaver</a><img style="border: none !important; margin: 0px !important;" src="http://www.assoc-amazon.co.uk/e/ir?t=benhuson-21&amp;l=ur2&amp;o=2" border="0" alt="" width="1" height="1" /> and <a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fwww.amazon.co.uk%2Fgp%2Fsearch%3Fie%3DUTF8%26amp%3Bkeywords%3DAdobe%2520Fireworks%2520CS4%26amp%3Btag%3Dbenhuson-21%26amp%3Bindex%3Dsoftware%26amp%3BlinkCode%3Dur2%26amp%3Bcamp%3D1634%26amp%3Bcreative%3D6738&sref=rss">Fireworks</a><img style="border: none !important; margin: 0px !important;" src="http://www.assoc-amazon.co.uk/e/ir?t=benhuson-21&amp;l=ur2&amp;o=2" border="0" alt="" width="1" height="1" /> which were then acquired by Adobe in 2005.</p>
<p>In recent years I have found the the quality of the Adobe products, particularly their web development applications, Flash, Dreamweaver and Fireworks, has been slowly getting worse.</p>
<p><span id="more-1336"></span></p>
<p>I can&#8217;t put my finger on exactly when things started to go downhill but I have a feeling it was around them time they introduced a JavaScript API into their products. The benefit of the API is that it allows users to create <a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fwww.adobe.com%2Fcfusion%2Fexchange%2F&sref=rss">add-ons for Adobe applications</a> that can automate common tasks or create new edit panels etc, enhancing the application&#8217;s functionality and streamlining workflow. A nice idea.</p>
<p>Now, the JavaScript API may not be to blame at all, but how many times do so see a little &#8216;x&#8217; in your web browser indicating that there is a JavaScript error on the page? And how many times has your browser hung or crashed due to a timeout error caused by a JavaScript? I can&#8217;t help thinking that the JavaScript API may be the reason the my Adobe applications seem to be less stable and crash more often than they used to. I might be wrong, this is just how it feels as a long-time user of the products.</p>
<h3>So, back to the dialog box&#8230;</h3>
<p>Does this mean that Adobe have now finally recognised that the stability and quality of their products needs to be addressed?</p>
<p>Is spying on our attempts to use their software (with permission, obviously) an indication how desperate they are to act on their users&#8217; feedback to improve the robustness of their faltering web suite? If this is what it takes to gather enough useful data for them to be able to get things back on track then count me in.</p>
<p>Of course it could be that they only want to study user behaviour so they can improve the UI of their products but I seriously hope that one of Adobe&#8217;s main objects is to use the data to gather more accurate details about crashes and errors so they can focus on making their applications rock solid and stable.</p>
<p>In the meantime, I know there are now many other high quality affordable or open source web development applications available that I could turn to, but I don&#8217;t want to. I like using Dreamweaver. I like using Flash. I like using Fireworks.</p>
<p>I really hope that any data Adobe manages to collect through <a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fwww.adobe.com%2Fproducts%2Fcreativesuite%2Fspecial%2Fimprovement.html&sref=rss">this program</a> helps them resolve the issues with their products. If they are able to figure out why Fireworks crashes on me incessantly throughout the day I will be much happier (and much more productive).</p>
<h3>Further Reading</h3>
<ul>
<li><a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fwww.adobe.com%2Fproducts%2Fcreativesuite%2Fspecial%2Fimprovement.html&sref=rss">Adobe Product Improvement Program</a></li>
<li><a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fnathanpitman.com%2F567%2Fan-open-letter-to-software-developers-re-adobe-fireworks%2Fpermalink&sref=rss">An open letter to software developers RE Adobe Fireworks</a></li>
<li><a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fnathanpitman.com%2F567%2Fan-open-letter-to-software-developers-re-adobe-fireworks%2Fpermalink&sref=rss"></a><a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fhelp.adobe.com%2Fen_US%2FFireworks%2F10.0_Extending%2Findex.html&sref=rss">Extending Fireworks</a> (using the JavaScript API)</li>
<li><a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fhelp.adobe.com%2Fen_US%2FDreamweaver%2F10.0_Extending%2Findex.html&sref=rss">Extending Dreamweaver</a> (using the JavaScript API)</li>
<li><a href="http://redirectingat.com?id=3206X604054&xs=1&url=http%3A%2F%2Fhelp.adobe.com%2Fen_US%2FFlash%2F10.0_ExtendingFlash%2Findex.html&sref=rss">Extending Flash</a> (using the JavaScript API)</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.benhuson.co.uk/2010/01/19/help-improve-adobe-cs4-products/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

