<?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>Tortoise IT</title>
	<atom:link href="http://www.sean-barton.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sean-barton.co.uk</link>
	<description>by Sean Barton, a freelance PHP website developer in Crewe, Cheshire</description>
	<lastBuildDate>Thu, 17 May 2012 20:45:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>SB Ads plugin for simple WordPress Advertising</title>
		<link>http://www.sean-barton.co.uk/2012/05/sb-ads-plugin-simple-wordpress-advertising/</link>
		<comments>http://www.sean-barton.co.uk/2012/05/sb-ads-plugin-simple-wordpress-advertising/#comments</comments>
		<pubDate>Thu, 17 May 2012 20:45:24 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.sean-barton.co.uk/?p=788</guid>
		<description><![CDATA[I was asked a while back to write something basic to allow people to advertise on their site. It meant a simple widget or shortcode based system to just randomly show an advert on page load. I decided not to use any of the other plugins on account of them giving you far too many options when all you want to do is show an image or block of text or bit of javascript or flash element on a page (sometimes!). I stumbled across an abandoned plugin called WP Ads which was, for want of a better word, rubbish. What &#8230; <a class="continue_reading" href="http://www.sean-barton.co.uk/2012/05/sb-ads-plugin-simple-wordpress-advertising/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-medium wp-image-789" title="6a00d83451a98f69e2014e87e2f681970d-800wi" src="http://www.sean-barton.co.uk/wp-content/uploads/2012/05/6a00d83451a98f69e2014e87e2f681970d-800wi-200x200.jpg" alt="" width="200" height="200" />I was asked a while back to write something basic to allow people to advertise on their site. It meant a simple widget or shortcode based system to just randomly show an advert on page load. I decided not to use any of the other plugins on account of them giving you far too many options when all you want to do is show an image or block of text or bit of javascript or flash element on a page (sometimes!).</p>
<p>I stumbled across an abandoned plugin called WP Ads which was, for want of a better word, rubbish. What it was though was suitably basic to give me a good starting point. So after removing all of the donate buttons and bad coding practise I added a widget and a shortcode to power it. I made it capable of supporting multiple advert zones and even category support so that it will only show certain adverts in different categories.</p>
<p><strong>How to use</strong></p>
<p>It adds a settings page beneath the WordPress admin settings menu. You get a list of adverts and then a list of zones. Clicking add new will give you an idiot proof data entry page where you just fill in a few simple fields and you&#8217;re done. Zone creation and naming is done on the fly by adding a name of your choice into the zone field. Any and all adverts must have a zone name and the widget essentially picks up all of those by the same name and rotates them.</p>
<p>You do need to know a bit of basic HTML if you wanted to use links and images although if you are using adsense or some adverts from affiliate window or some other system they generally provide you with a block of HTML to paste into the box for it to work.</p>
<p>I am happy to extend this plugin if anyone has any ideas to make it any better. My intention for it is to keep is very simple and perhaps streamline the interface and data storage a bit. Any and all comments welcome.</p>
<p><strong>Download here: <a href="http://www.sean-barton.co.uk/wp-content/plugins/download-monitor/download.php?id=30" title="Downloaded 1 times">SB Ads (7.76 kB)</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sean-barton.co.uk/2012/05/sb-ads-plugin-simple-wordpress-advertising/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WooCommerce removing the reviews tab</title>
		<link>http://www.sean-barton.co.uk/2012/05/woocommerce-removing-reviews-tab/</link>
		<comments>http://www.sean-barton.co.uk/2012/05/woocommerce-removing-reviews-tab/#comments</comments>
		<pubDate>Tue, 15 May 2012 11:16:08 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Ecommerce]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Time Savers]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[WooCommerce]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.sean-barton.co.uk/?p=777</guid>
		<description><![CDATA[Another quickie from me today. I have been using WooCommerce a lot recently but there are just some options that could do with making into options or filters I think. As I understand it&#8217;s a JigoShop rebadge with a bit of Woo goodness in there for luck and it seems to be paying off. I never want to use WP Ecommerce again at this rate. Each WooCommerce installation will have the reviews tabs added to individual product pages. As I understand it it uses the WordPress comment system to hold review information (so says one forum, i&#8217;ve not bothered to &#8230; <a class="continue_reading" href="http://www.sean-barton.co.uk/2012/05/woocommerce-removing-reviews-tab/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img class="alignright  wp-image-778" title="Screen Shot 2012-05-13 at 22.21.01" src="http://www.sean-barton.co.uk/wp-content/uploads/2012/05/Screen-Shot-2012-05-13-at-22.21.01.png" alt="" width="283" height="98" />Another quickie from me today. I have been using WooCommerce a lot recently but there are just some options that could do with making into options or filters I think. As I understand it&#8217;s a JigoShop rebadge with a bit of Woo goodness in there for luck and it seems to be paying off. I never want to use WP Ecommerce again at this rate.</p>
<p>Each WooCommerce installation will have the reviews tabs added to individual product pages. As I understand it it uses the WordPress comment system to hold review information (so says one forum, i&#8217;ve not bothered to check it out). I noted that people are wanting to know how to turn this functionality off as reviews don&#8217;t really apply to all products in all shops. Adding this code to your theme functions.php file will remove the reviews tab. If you want it back then just remove the lines.. simples.</p>
<pre>remove_action( 'woocommerce_product_tabs', 'woocommerce_product_reviews_tab', 30);
remove_action( 'woocommerce_product_tab_panels', 'woocommerce_product_reviews_panel', 30);</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.sean-barton.co.uk/2012/05/woocommerce-removing-reviews-tab/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Editing WooCommerce default product column count</title>
		<link>http://www.sean-barton.co.uk/2012/05/editing-woocommerce-default-product-column-count/</link>
		<comments>http://www.sean-barton.co.uk/2012/05/editing-woocommerce-default-product-column-count/#comments</comments>
		<pubDate>Sun, 13 May 2012 19:58:15 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Ecommerce]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Time Savers]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[WooCommerce]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.sean-barton.co.uk/?p=772</guid>
		<description><![CDATA[You know it&#8217;s the little things in life that highlight our great successes. I have been looking for this for literally hours.. What I wanted to do was edit the number of product columns that are shown in the default grid view homepage. It&#8217;s set to 4 and I wanted 3. Not hard right? Sadly it was but the solution was a two liner! Let me explain&#8230; Woocommerce, by default, doesn&#8217;t work from a shortcode (it can do but not by default), instead it will show the shop page content using it&#8217;s own template system. It will look for arguments/parameters &#8230; <a class="continue_reading" href="http://www.sean-barton.co.uk/2012/05/editing-woocommerce-default-product-column-count/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-medium wp-image-773" title="woocommerce" src="http://www.sean-barton.co.uk/wp-content/uploads/2012/05/woocommerce-200x118.png" alt="" width="200" height="118" />You know it&#8217;s the little things in life that highlight our great successes. I have been looking for this for literally hours.. What I wanted to do was edit the number of product columns that are shown in the default grid view homepage. It&#8217;s set to 4 and I wanted 3. Not hard right? Sadly it was but the solution was a two liner! Let me explain&#8230;</p>
<p>Woocommerce, by default, doesn&#8217;t work from a shortcode (it can do but not by default), instead it will show the shop page content using it&#8217;s own template system. It will look for arguments/parameters attached to the shortcode in order to augment the number of columns on any product listing page. I know I know, I just said that we aren&#8217;t using a shortcode but it&#8217;s looking for one anyway? Almost.. here is the solution:</p>
<pre>global $woocommerce_loop;
$woocommerce_loop['columns'] = 3;</pre>
<p>There we have it, two lines. Either a sign of my genius or incompetence. I suspect the latter but for the moment I am fairly proud of this achievement. Essentially $woocommerce_loop contains the settings for the product page and by default the columns argument isn&#8217;t set leaving it up to the shortcode to populate (if used) or to fall back to it&#8217;s standard setting.. 4!</p>
<p>So after hours of trawling through code trying to find a WordPress Filter I can hook onto, I thought I would try this little gem (added to my theme functions.php) and magically it worked. This post can now hopefully help the next person to have to deal with this or indeed for someone to point out my stupidity and show me how it should have been done.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sean-barton.co.uk/2012/05/editing-woocommerce-default-product-column-count/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WooCommerce featured products slider automatic cycling</title>
		<link>http://www.sean-barton.co.uk/2012/05/woocommerce-featured-products-slider-automatic-cycling/</link>
		<comments>http://www.sean-barton.co.uk/2012/05/woocommerce-featured-products-slider-automatic-cycling/#comments</comments>
		<pubDate>Wed, 02 May 2012 20:24:52 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Ecommerce]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Time Savers]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.sean-barton.co.uk/?p=762</guid>
		<description><![CDATA[I have just spent a few hours looking at the dire attempts at making a product slider for WooCommerce. In the end I decided I couldn&#8217;t justify even $12 for a premium &#8216;effort&#8217; on account of it being a bit dire. It seems these days people will cough up for things just because they are paid for on the assumption that because they had to part with some of their hard earned it&#8217;s going to be any good. Anyway moving on&#8230; I found the fabulous Wootique theme that is offered as the general purpose theme from WooThemes contains a featured &#8230; <a class="continue_reading" href="http://www.sean-barton.co.uk/2012/05/woocommerce-featured-products-slider-automatic-cycling/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I have just spent a few hours looking at the dire attempts at making a product slider for WooCommerce. In the end I decided I couldn&#8217;t justify even $12 for a premium &#8216;effort&#8217; on account of it being a bit dire. It seems these days people will cough up for things just because they are paid for on the assumption that because they had to part with some of their hard earned it&#8217;s going to be any good. Anyway moving on&#8230;</p>
<p>I found the fabulous Wootique theme that is offered as the general purpose theme from WooThemes contains a featured products flipper at the top as an option. It looks great and works with WooCommerce already so why not just make that autocycle? So I did&#8230;</p>
<div id="attachment_763" class="wp-caption alignright" style="width: 210px"><a href="http://www.sean-barton.co.uk/wp-content/uploads/2012/05/Screen-Shot-2012-05-02-at-21.15.37.png" rel="lightbox[762]"><img class="size-medium wp-image-763 " title="Wootique default featured products flipper" src="http://www.sean-barton.co.uk/wp-content/uploads/2012/05/Screen-Shot-2012-05-02-at-21.15.37-200x70.png" alt="" width="200" height="70" /></a><p class="wp-caption-text">Wootique Featured product flipper</p></div>
<p>The following block of Javascript/jQuery will cause the slider to cycle on every two seconds and when it gets to the end it will reverse direction and start in the opposite direction. Rinse and repeat&#8230;</p>
<p>I also added some code to detect when your mouse is hovering over the slider to pause it so it doesn&#8217;t carry on sliding whilst you are reading or studying one of the product images.</p>
<p>I shall make the entire thing into a plugin at some point but for now this works beautifully with Wootique or any Woo Theme with the same flipper at the top.</p>
<p><strong>The Code</strong></p>
<pre>var hoverpause = 0;

jQuery(document).ready(function () {
    sb_timed_cycle('next');

    jQuery('#featured-products .jcarousel-container').hover(
	function () { hoverpause = 1; },
	function () { hoverpause = 0; }
    );
});

function sb_timed_cycle(direction) {
    setTimeout( function() {
	if (!hoverpause) {
	    if (direction == 'next') {
		if (jQuery('#featured-products .jcarousel-next').attr('disabled') != 'disabled') {
		    jQuery('#featured-products .jcarousel-next').click();
		} else {
		    direction = 'prev';
		    jQuery('#featured-products .jcarousel-prev').click();
		}
	    } else {
		if (jQuery('#featured-products .jcarousel-prev').attr('disabled') != 'disabled') {
		    jQuery('#featured-products .jcarousel-prev').click();
		} else {
		    direction = 'next';
		    jQuery('#featured-products .jcarousel-next').click();
		}
	    }
	}
	sb_timed_cycle(direction);
    }, 2000 );
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.sean-barton.co.uk/2012/05/woocommerce-featured-products-slider-automatic-cycling/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tortoise IT Ltd is now open for business</title>
		<link>http://www.sean-barton.co.uk/2012/04/tortoise-open-business/</link>
		<comments>http://www.sean-barton.co.uk/2012/04/tortoise-open-business/#comments</comments>
		<pubDate>Thu, 19 Apr 2012 15:00:02 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Events]]></category>
		<category><![CDATA[Important!]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Personal Blog]]></category>
		<category><![CDATA[Shameless Plugs]]></category>
		<category><![CDATA[Statements and Rants]]></category>

		<guid isPermaLink="false">http://www.sean-barton.co.uk/?p=757</guid>
		<description><![CDATA[It&#8217;s been on the cards for a while this one but I have just arranged with my Accountant for my new company to open it&#8217;s virtual doors. Nothing will really change for me or this site for now although I have an excellent new theme to put live very soon and a WordPress Clinic to open!]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-medium wp-image-758" title="ribbon-cutting" src="http://www.sean-barton.co.uk/wp-content/uploads/2012/04/ribbon-cutting-200x157.jpg" alt="" width="200" height="157" />It&#8217;s been on the cards for a while this one but I have just arranged with my Accountant for my new company to open it&#8217;s virtual doors. Nothing will really change for me or this site for now although I have an excellent new theme to put live very soon and a WordPress Clinic to open!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sean-barton.co.uk/2012/04/tortoise-open-business/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Tutorial: how to make your own basic members area in WordPress</title>
		<link>http://www.sean-barton.co.uk/2012/04/tutorial-basic-members-area-wordpress/</link>
		<comments>http://www.sean-barton.co.uk/2012/04/tutorial-basic-members-area-wordpress/#comments</comments>
		<pubDate>Sun, 15 Apr 2012 14:13:29 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Membership]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Themes]]></category>
		<category><![CDATA[Time Savers]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[wordpress membership]]></category>
		<category><![CDATA[wordpress protection]]></category>

		<guid isPermaLink="false">http://www.sean-barton.co.uk/?p=747</guid>
		<description><![CDATA[I am getting asked more and more these days for a membership type site where people need to be part of the &#8216;club&#8217;, team or group to see certain content. In most cases there is only one membership level and the site is geared differently based on your context&#8230; There is a plethora of WordPress membership plugins around, both free and premium, but why so you need one if your requirements are small. Using my example of a single membership level and to not add the complexities of payment at this stage we simply need to be able to show &#8230; <a class="continue_reading" href="http://www.sean-barton.co.uk/2012/04/tutorial-basic-members-area-wordpress/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-medium wp-image-749" title="Padlock-skyblue" src="http://www.sean-barton.co.uk/wp-content/uploads/2012/04/Padlock-skyblue-200x200.png" alt="" width="200" height="200" />I am getting asked more and more these days for a membership type site where people need to be part of the &#8216;club&#8217;, team or group to see certain content. In most cases there is only one membership level and the site is geared differently based on your context&#8230; There is a plethora of WordPress membership plugins around, both free and premium, but why so you need one if your requirements are small.</p>
<p>Using my example of a single membership level and to not add the complexities of payment at this stage we simply need to be able to show one kind of content to some people and another to others. Well that&#8217;s easy.. why not use the WordPress user system? Logged out people see a site from one angle and logged in see others. What could be more simple.</p>
<p>At this stage you might be wondering how this could be possible and to make it look good. Well easy really given a couple of hours and some basic PHP knowledge. You would only really need to change a few things:</p>
<ul>
<li>Navigation</li>
<li>Widgets (optional)</li>
<li>Page template(s)</li>
</ul>
<p><strong>Navigation</strong></p>
<p>The top menu on each site will do what it says on the tin, it will show pages of your choosing (using the WordPress menus system which is built into most themes these days). So let&#8217;s just show one menu to logged out and another to logged in? Open up header.php of your theme and find the call to wp_nav_menu then duplicate the line adding it into a block of logic as follows:</p>
<pre>get_currentuserinfo();
global $current_user;

if ($current_user-&gt;ID) {
	wp_nav_menu(....... //logged in menu code
} else {
	wp_nav_menu(....... //logged out menu code
}</pre>
<p>You would need to have defined the logged out menu in your functions.php file but that&#8217;s just a case of copying and pasting a line of code or even easier.. just pasting this in:</p>
<pre>register_nav_menus(array(
	'logged_out_header'=&gt;'Header Navigation (Logged Out)'
));</pre>
<p>Of course you don&#8217;t need to do any of this. You could just do it by adding only public pages to the menu or putting all of the pages there and either showing a no access type message or redirecting those pages that users aren&#8217;t allowed to see.</p>
<p><strong>Widgets</strong></p>
<p>If your site uses widgets then it will have a register_sidebar declaration in functions.php somewhere. Use the same logic block as above to simply show a different sidebar to logged out users. This can be done in sidebar.php (and any others you might have defined) on a block that looks like this:</p>
<pre>dynamic_sidebar('sidebar_name');</pre>
<p>As follows:</p>
<pre>get_currentuserinfo();
global $current_user;

if ($current_user-&gt;ID) {
	dynamic_sidebar('sidebar_name');
} else {
	dynamic_sidebar('logged_out_sidebar_name');
}</pre>
<p>Or in the individual template pages themselves on code that looks like this:</p>
<pre>get_sidebar();</pre>
<p>as follows:</p>
<pre>get_currentuserinfo();
global $current_user;

if ($current_user-&gt;ID) {
	get_sidebar();
} else {
	get_sidebar('logged_out'); //this will call sidebar-logged_out.php instead of sidebar.php
}</pre>
<p>Once again this is optional, you could just only put public widgets on there or use the redirect method that I shall show you in the next section.</p>
<p><strong>Page Template(s)</strong></p>
<p>Themes will use page.php when viewing a WordPress &#8216;page&#8217; (as opposed to post, custom post type of taxonomy etc..) so we could edit this to include a redirection if a user hasn&#8217;t got access. Most likely you would actually create a new template and select it for those pages which are for members only. Or the reverse.. default the site to members only and then select explicitly the pages which are public. Either way add the following code right at the top of the file:</p>
<pre>get_currentuserinfo();
global $current_user;

if (!$current_user-&gt;ID) {
	wp_redirect(site_url()); //redirect back to homepage
}</pre>
<p>If you don&#8217;t know how to create a new custom template then simply duplicate page.php and call it something like page-protected.php then at the top of the file add the following code to make WordPress register is as a selectable template:</p>
<pre>&lt;?php
/*
Template Name: Protected Page
*/
?&gt;</pre>
<p><strong>Improving the code/implementing it</strong></p>
<p>All of this copying and pasting of the current user code to determine if someone is logged in seems a bit long winded so the sensible thing would be to add something to your functions.php file in your theme that does it and returns true or false depending on logged in status. Try this code:</p>
<pre>function sb_user_logged_in() {
$return = false;
get_currentuserinfo();
global $current_user;

if ($current_user-&gt;ID) {
	$return = true;
}

return $return;</pre>
<p>Then you can just use:</p>
<pre>if (sb_user_logged_in()) { ...</pre>
<p>By this stage I can almost hear you roaring &#8220;why not use <a href="http://codex.wordpress.org/Function_Reference/is_user_logged_in" target="_blank">is_user_logged_in()</a>?&#8221;.. well you could do but then if you wanted to improve on the protection or change it from logged in to a different role for instance you would then have to find every instance of the logic in your code and change it. Using the centralised method I describe you would just need to change the logic in one place. And yes you could just use is_user_logged_in() in the central function.. it&#8217;s just my preference to do it the long winded way <img src='http://www.sean-barton.co.uk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><strong>More</strong></p>
<p>I shall work on a new post to show you how to add a &#8216;no access&#8217; type message or include the use of shortcodes to restrict access although you would really then want to be using one of the many very good plugins out there to do it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sean-barton.co.uk/2012/04/tutorial-basic-members-area-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Plugin SB Nivo Slider &#8211; guess what this one does?</title>
		<link>http://www.sean-barton.co.uk/2012/04/plugin-sb-nivo-slider-guess/</link>
		<comments>http://www.sean-barton.co.uk/2012/04/plugin-sb-nivo-slider-guess/#comments</comments>
		<pubDate>Thu, 12 Apr 2012 22:52:05 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Time Savers]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.sean-barton.co.uk/?p=744</guid>
		<description><![CDATA[I have just put together this little plugin after the umpteenth request to add a slider to a site. Yes I know there are a fair few available in the WordPress plugin directory but I really do like simplicity and the others don&#8217;t generally offer that. This one doesn&#8217;t give you every option under the sun however what it does do is create a nice friendly and idiot proof interface and enactment interface&#8230; Data Entry Your clients can add their own slides to the system using a custom post type interface which the plugin adds automatically. There are literally three &#8230; <a class="continue_reading" href="http://www.sean-barton.co.uk/2012/04/plugin-sb-nivo-slider-guess/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I have just put together this little plugin after the umpteenth request to add a slider to a site. Yes I know there are a fair few available in the WordPress plugin directory but I really do like simplicity and the others don&#8217;t generally offer that. This one doesn&#8217;t give you every option under the sun however what it does do is create a nice friendly and idiot proof interface and enactment interface&#8230;</p>
<p><strong>Data Entry</strong></p>
<p>Your clients can add their own slides to the system using a custom post type interface which the plugin adds automatically. There are literally three options per slide and two of them are optional! You need to add the URL of the slide, the caption if there is one and the link for the slide (again, if there is one). The idea being that you just add the slides and don&#8217;t spend the entire day wondering which transition looks best. I have gone for a simple fade between slides which seems to suit most people and a 3.5 second delay between transitions (control for this coming in the next version) which is long enough to read the slide but not long enough for them to get bored of the image or wonder if it&#8217;s one of those sliders you need to manually forward!</p>
<p><strong>Adding the Slider</strong></p>
<p>Simple&#8230; I added a shortcode for you <strong>[sb_slider]</strong>, what more do you need? For those that want to add it to their template then they can do by using the PHP function call  as follows:</p>
<pre>&lt;?php
echo sb_sl_get_slider();
?&gt;</pre>
<p>I would recommend using this next version just in case you decide not to use the plugin and deactivate it. It will prevent you getting a fatal error.</p>
<pre>&lt;?php
if (function_exists('sb_sl_get_slider')) { echo sb_sl_get_slider(); }
?&gt;</pre>
<p>So there we have it. A nice basic slider which you can use time and time again for free (Nivo Slider themselves charge $15 for their WordPress plugin although I am sure it&#8217;s likely better.. nothing quite feels as good as &#8216;free&#8217; now does it).</p>
<p><strong>Download</strong></p>
<p>Download it here and let me know what you think: <a href="http://www.sean-barton.co.uk/wp-content/plugins/download-monitor/download.php?id=29" title="Downloaded 18 times">SB Slider (11.88 kB)</a></p>
<p><strong>Limitations</strong></p>
<p>The obvious flaw is that you can only have one set of slides so if you wanted to have one slider on the homepage and one on the blog for instance it wouldn&#8217;t work yet. I plan to add categories to the plugin to make this possible at some point.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sean-barton.co.uk/2012/04/plugin-sb-nivo-slider-guess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WP Ecommerce custom email content</title>
		<link>http://www.sean-barton.co.uk/2012/03/wp-ecommerce-custom-email-content/</link>
		<comments>http://www.sean-barton.co.uk/2012/03/wp-ecommerce-custom-email-content/#comments</comments>
		<pubDate>Tue, 06 Mar 2012 11:19:54 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Bug Fixes]]></category>
		<category><![CDATA[Ecommerce]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Time Savers]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.sean-barton.co.uk/?p=727</guid>
		<description><![CDATA[The WP Ecommerce system itself is a huge pain in the backside to use and work at times as we all know but a nice saving grace is that the plugin has a huge range of hooks and filters which we, as developers, can write plugins and blocks of code to extend. My latest issue has been the checkout fields system. I am told by one of their staff that it&#8217;s due a rewrite in future versions however for those using older versions&#8230; You might notice that it&#8217;s not the simplest system in the world. Don&#8217;t get me wrong it&#8217;s &#8230; <a class="continue_reading" href="http://www.sean-barton.co.uk/2012/03/wp-ecommerce-custom-email-content/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The WP Ecommerce system itself is a huge pain in the backside to use and work at times as we all know but a nice saving grace is that the plugin has a huge range of hooks and filters which we, as developers, can write plugins and blocks of code to extend.</p>
<p>My latest issue has been the checkout fields system. I am told by one of their staff that it&#8217;s due a rewrite in future versions however for those using older versions&#8230; You might notice that it&#8217;s not the simplest system in the world. Don&#8217;t get me wrong it&#8217;s my shopping cart of choice but I think there are a few areas where a little work could polish it up nicely. Checkout fields define what questions are asked of the buyer on the checkout page. Default values include their billing and shipping address but it&#8217;s not uncommon to want to add fields of our own to that like newsletter signup for instance. A project I am working on at the moment has a pickup point field present which we want to add to the user or admin emails. The &#8216;shortcodes&#8217; provided are limited but luckily the filter &#8216;wpsc_transaction_result_message&#8217; (and a couple of others) allows us to hook into it and run our own code as follows:</p>
<pre>add_filter('wpsc_transaction_result_message', 'sb_transaction_results_custom_fields');
add_filter('wpsc_transaction_result_report', 'sb_transaction_results_custom_fields');
add_filter('wpsc_transaction_result_message_html', 'sb_transaction_results_custom_fields_html');

function sb_transaction_results_custom_fields_html($message) {
return sb_transaction_results_custom_fields($message, true);
}

function sb_transaction_results_custom_fields($message, $html=false) {
$values = array();

foreach ($_SESSION['wpsc_checkout_saved_values'] as $key=&gt;$value) {
if ($value) {
if (is_array($value)) {
$value = implode(', ', $value);
}

$values[] = $key . ': ' . $value;
}
}

$message = str_replace('%custom_fields%', implode(($html ? '&lt;br /&gt;':"\n"), $values), $message);

return $message;
}</pre>
<p>These functions will replace the new shortcode %custom_fields% with the entire contents of the checkout form. It&#8217;s not pretty in this form which is why we should use the ID and then reference the field name in the database when making it into a plugin. I might do at some point but for now it&#8217;s a handy little bit of reference code for people to work with. I am happy to explain more if anyone if interested.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sean-barton.co.uk/2012/03/wp-ecommerce-custom-email-content/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Terminal takes an age to load on my Mac? The solution</title>
		<link>http://www.sean-barton.co.uk/2012/02/terminal-takes-age-load-mac-solution/</link>
		<comments>http://www.sean-barton.co.uk/2012/02/terminal-takes-age-load-mac-solution/#comments</comments>
		<pubDate>Thu, 16 Feb 2012 12:52:06 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Bug Fixes]]></category>
		<category><![CDATA[Time Savers]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.sean-barton.co.uk/?p=728</guid>
		<description><![CDATA[This has been bugging me for months&#8230; whenever I opened up the Terminal App on my iMac it took a good 30 seconds to do anything. I only just now, whilst waiting for it to load, bothered to Google the answer. Apparently it makes use the asl directory underneath /private/var/log. ASL is an acronym for Apple System Log and relates to one of a whole raft of system related logging. These logs can safely be cleared although it might be worth taking a backup just in case. Running the following code will, in effect, delete the contents of that directory &#8230; <a class="continue_reading" href="http://www.sean-barton.co.uk/2012/02/terminal-takes-age-load-mac-solution/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-medium wp-image-731" title="TerminalApp-Icon" src="http://www.sean-barton.co.uk/wp-content/uploads/2012/02/TerminalApp-Icon-200x178.png" alt="" width="200" height="178" />This has been bugging me for months&#8230; whenever I opened up the Terminal App on my iMac it took a good 30 seconds to do anything. I only just now, whilst waiting for it to load, bothered to Google the answer. Apparently it makes use the asl directory underneath /private/var/log. ASL is an acronym for Apple System Log and relates to one of a whole raft of system related logging. These logs can safely be cleared although it might be worth taking a backup just in case.</p>
<p>Running the following code will, in effect, delete the contents of that directory and all things using that directory in a reading capacity (working with the logs as opposed to writing their own) should speed up.</p>
<p><em>sudo rm -f /private/var/log/asl/*.asl</em></p>
<p>Note that this is non recoverable, hence my suggestion you take a backup first. Hope it helps someone else like it did me!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sean-barton.co.uk/2012/02/terminal-takes-age-load-mac-solution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress SB Mail Attachment Widget Update (V1.1)</title>
		<link>http://www.sean-barton.co.uk/2012/01/wordpress-sb-mail-attachment-widget-update-v11/</link>
		<comments>http://www.sean-barton.co.uk/2012/01/wordpress-sb-mail-attachment-widget-update-v11/#comments</comments>
		<pubDate>Tue, 31 Jan 2012 17:32:26 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Bug Fixes]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.sean-barton.co.uk/?p=715</guid>
		<description><![CDATA[A minor update today to improve the delivery efficiency of the emails with attachments. If you have no idea what this plugin is then check out my original post on it a few weeks ago here. Some users were reporting issues with the email coming through as ignoring the HTTP headers and including all of them within the email itself. A big mess indeed. Now it uses the wp_mail command so it can be hooked into by other plugins. Also because of this function usage it means that I don&#8217;t need to write the headers manually.. WordPress does all that &#8230; <a class="continue_reading" href="http://www.sean-barton.co.uk/2012/01/wordpress-sb-mail-attachment-widget-update-v11/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>A minor update today to improve the delivery efficiency of the emails with attachments. If you have no idea what this plugin is then check out my original post on it a few weeks ago <a title="SB Mail Attachment Widget" href="http://www.sean-barton.co.uk/2011/12/sb-mail-attachment-widget/">here</a>.</p>
<p>Some users were reporting issues with the email coming through as ignoring the HTTP headers and including all of them within the email itself. A big mess indeed. Now it uses the wp_mail command so it can be hooked into by other plugins. Also because of this function usage it means that I don&#8217;t need to write the headers manually.. WordPress does all that for you. It should now be a lot more compatible with the various mail clients.</p>
<p>Download it here: <a href="http://www.sean-barton.co.uk/wp-content/plugins/download-monitor/download.php?id=28" title="Downloaded 85 times">SB Mail Attachment Widget (2.7 kB)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sean-barton.co.uk/2012/01/wordpress-sb-mail-attachment-widget-update-v11/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)
Database Caching 10/56 queries in 0.092 seconds using disk
Object Caching 751/868 objects using disk

Served from: www.sean-barton.co.uk @ 2012-05-19 04:18:48 -->
