<?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>Hal MacLean &#187; PHP coding</title>
	<atom:link href="http://www.halmaclean.co.uk/category/php-coding/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.halmaclean.co.uk</link>
	<description>Creative Learning Systems</description>
	<lastBuildDate>Fri, 14 Oct 2011 23:46:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Creative Learning Systems</title>
		<link>http://www.halmaclean.co.uk/2011/02/20/creative-learning-systems/</link>
		<comments>http://www.halmaclean.co.uk/2011/02/20/creative-learning-systems/#comments</comments>
		<pubDate>Sun, 20 Feb 2011 23:00:46 +0000</pubDate>
		<dc:creator>Hal</dc:creator>
				<category><![CDATA[Cleveratom]]></category>
		<category><![CDATA[General Comments]]></category>
		<category><![CDATA[Learning Space Design]]></category>
		<category><![CDATA[PHP coding]]></category>
		<category><![CDATA[Web Authoring]]></category>

		<guid isPermaLink="false">http://www.halmaclean.co.uk/?p=609</guid>
		<description><![CDATA[Just a quick note &#8211; Cleveratom has closed (we went into voluntary liquidation after a run of particularly bad luck, and some less than satisfactory decisions). In the mean time I have set up a new company called &#8216;Creative Learning &#8230; <a href="http://www.halmaclean.co.uk/2011/02/20/creative-learning-systems/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><div id="attachment_610" class="wp-caption alignleft" style="width: 153px"><img class="size-full wp-image-610" title="CLS_Logo1_143x59" src="http://www.halmaclean.co.uk/wp-content/uploads/CLS_Logo1_143x59.png" alt="Creative Learning Systems logo" width="143" height="59" /><p class="wp-caption-text">New company, new logo</p></div><br />
Just a quick note &#8211; Cleveratom has closed (we went into voluntary liquidation after a run of particularly bad luck, and some less than satisfactory decisions). In the mean time I have set up a new company called &#8216;Creative Learning Systems&#8217;. Does just what it says on the tin&#8230;</p>
<p><a title="Link to CLSystems web site" href="http://www.clsystems.co.uk" target="_blank">www.clsystems.co.uk</a></p>
<p>I am very sorry to lose Cleveratom &#8211; such a cool brand! I wish my former colleagues well in their new endeavours, and will look forward to carrying on doing some excellent learning based consultancy, learning space design and web application development with Matthew Eaves as a co-director.</p>
<p>Since we have no development team anymore, we will be looking for excellent individuals who have a lot of skills and want to work in a dynamic way. If you know of anyone, do send me their info (or send them mine!).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.halmaclean.co.uk/2011/02/20/creative-learning-systems/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Cleveratom Website</title>
		<link>http://www.halmaclean.co.uk/2008/09/08/cleveratom-website-3/</link>
		<comments>http://www.halmaclean.co.uk/2008/09/08/cleveratom-website-3/#comments</comments>
		<pubDate>Mon, 08 Sep 2008 20:34:17 +0000</pubDate>
		<dc:creator>Hal</dc:creator>
				<category><![CDATA[Cleveratom]]></category>
		<category><![CDATA[PHP coding]]></category>
		<category><![CDATA[Web Authoring]]></category>

		<guid isPermaLink="false">http://www.halmaclean.co.uk/?p=282</guid>
		<description><![CDATA[The Cleveratom website has been given a new look and a new engine, too! For the last few months we have been relying on WordPress to drive things along, and whilst it has been OK, it has never been what &#8230; <a href="http://www.halmaclean.co.uk/2008/09/08/cleveratom-website-3/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div id="attachment_283" class="wp-caption alignleft" style="width: 310px"><a href="http://www.halmaclean.co.uk/wp-content/uploads/cleveratom.jpg"><img class="size-full wp-image-283" title="cleveratom" src="http://www.halmaclean.co.uk/wp-content/uploads/cleveratom.jpg" alt="cleveratom website" width="300" height="163" /></a><p class="wp-caption-text">cleveratom website</p></div>
<p>The <a title="Link to Cleveratom's New Website" href="http://www.cleveratom.co.uk" target="_blank">Cleveratom website</a> has been given a new look and a new engine, too! For the last few months we have been relying on <a title="link to wordpress" href="http://wordpress.org" target="_blank">WordPress</a> to drive things along, and whilst it has been OK, it has never been what we wanted. It was better than a static page, but never really did the job we needed. Fortunately, that has all changed today as we moved over to the rather brilliant &#8216;<a title="link to CMS Made Simple Web site" href="http://www.cmsmadesimple.org/" target="_blank">CMS Made Simple</a>&#8216; content management system.</p>
<p>If you head over to <a title="Link to new cleveratom website" href="http://www.cleveratom.co.uk" target="_blank">www.cleveratom.co.uk</a> you will see the new livery and be able to read all about the work that we are doing. There are many things still to add in relating to the projects we are doing, and you can always sign up to the newsletter in order to get more information on a (fairly) regular basis!</p>
<p>Getting a new site up and running is always traumatic in some way, and today we did battle with DNS servers, Nameservers and email records. Sheesh! No doubt we are all the better for the experience!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.halmaclean.co.uk/2008/09/08/cleveratom-website-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Engage East England, CMS Made Simple</title>
		<link>http://www.halmaclean.co.uk/2008/03/11/engage-east-england-cms-made-simple/</link>
		<comments>http://www.halmaclean.co.uk/2008/03/11/engage-east-england-cms-made-simple/#comments</comments>
		<pubDate>Tue, 11 Mar 2008 23:24:17 +0000</pubDate>
		<dc:creator>Hal</dc:creator>
				<category><![CDATA[Cleveratom]]></category>
		<category><![CDATA[PHP coding]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[Web Authoring]]></category>

		<guid isPermaLink="false">http://www.halmaclean.co.uk/2008/03/11/engage-east-england-cms-made-simple/</guid>
		<description><![CDATA[A recent project required us to create a website for Rochford District Council, Uttlesford District Council and Essex County Council where users would be able to access information relating to public consultations and best practice. Nothing particularly remarkable in that &#8230; <a href="http://www.halmaclean.co.uk/2008/03/11/engage-east-england-cms-made-simple/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>A recent project required us to create a website for Rochford District Council, Uttlesford District Council and Essex County Council where users would be able to access information relating to public consultations and best practice. Nothing particularly remarkable in that &#8211; this is the sort of project that we enjoy doing as it is for a very good purpose and allows a degree of creativity in the design and approach to creating the site.</p>
<p><span id="more-219"></span>What is of interest is that we needed to provide a complete CMS system that would allow the lead members to update the information as and when needed and use some simple tools to aid them in the process.  This could actually have been quite a tricky task given the scope of CMS tools available and the ease in which the systems can be managed.</p>
<p>It was whilst searching through the various tools available that we decided on using &#8216;CMS Made Simple&#8217;, which as the name suggests is a simple, but powerful CMS system.</p>
<p>Running on PHP and MySQL, the system is open source and works right out of the box. The simplicity of it is in the way that page templates can be created for a number of different styles. The plug in architecture aids the creation of new modules, but the system comes complete with quite a package &#8211; certainly enough to create a reasonably sophisticated web site.</p>
<p>User management tools are good, with different levels able to be set up and each given different privileges to allow for editing and authoring and so on. The one area which seems harder than it ought to be is the menu creation aspect &#8211; this is a tad convoluted but appropriately enough the extra steps needed to create a menu allow for some useful features to be included. For example, you can create a menu which acts as a &#8216;nugget&#8217; and can be incorporated into other menus you make. This nesting ability allows the author to create a flexible and yet dynamic menu system with relative ease.</p>
<p>The system is relatively new to the market and consequently isn&#8217;t well documented, but there is enough there to get you going and to answer most general queries. Over time I expect this tool will mature into quite a useful but simple  system, and I hope that above all else the developers keep a tight grip on the need for simplicity.</p>
<p>More information, updates and so on are available on the <a href="http://www.cmsmadesimple.org/" title="link to CMSMS web site" target="_blank">CMS Made Simple web site.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.halmaclean.co.uk/2008/03/11/engage-east-england-cms-made-simple/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress bug, format.php, invalid wordpress html code</title>
		<link>http://www.halmaclean.co.uk/2007/12/07/wordpress-bug-formatphp-invalid-wordpress-html-code/</link>
		<comments>http://www.halmaclean.co.uk/2007/12/07/wordpress-bug-formatphp-invalid-wordpress-html-code/#comments</comments>
		<pubDate>Fri, 07 Dec 2007 18:27:15 +0000</pubDate>
		<dc:creator>Hal</dc:creator>
				<category><![CDATA[Cleveratom]]></category>
		<category><![CDATA[PHP coding]]></category>

		<guid isPermaLink="false">http://www.halmaclean.co.uk/2007/12/07/wordpress-bug-formatphp-invalid-wordpress-html-code/</guid>
		<description><![CDATA[It may come as a surprise to some (but not many) folk to know that there has apparently been a long running bug in wordpress from about version 2.1 which will cause your website to fail validation. It only happens &#8230; <a href="http://www.halmaclean.co.uk/2007/12/07/wordpress-bug-formatphp-invalid-wordpress-html-code/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>It may come as a surprise to some (but not many) folk to know that there has apparently been a long running bug in wordpress from about version 2.1 which will cause your website to fail validation. It only happens in certain situations, such as when you try and add a plugin to capture form based information from your site users. When the form code is passed to the browser, a spurious &#8216;p&#8217; tag gets added in to the &#8216;div&#8217; tags and therefore the code is not valid&#8230; Keep in mind that the &#8216;doc type&#8217; declaration is important here too, and that in my case I was using XHTML 1.0 transitional.</p>
<p>So what to do? Well, on the <a title="Link to wordpress website" href="http://wordpress.org" target="_blank">wordpress.org</a> website there are several threads about it, including <a title="Link to wordpress article" href="http://wordpress.org/support/topic/101906?replies=73" target="_blank">this one</a> where I posted a response earlier today. It seems that the issue is at least ten months old, and various solutions have been speculated. Indeed, some of these solutions seem to work for some folk, but they sure as heck didn&#8217;t work for me. Largely, they involve editing one of the core wordpress files &#8211; &#8216;format.php&#8217; and either adding in a new line, or taking some away. The new line is supposed to be inserted as line 67 and reads:</p>
<p><code>$pee = preg_replace( '|(&lt;/div[&gt;]*&gt;\s*)&lt;/p&gt;|', "&lt;/p&gt;$1", $pee );</code></p>
<p>This did nothing for me at all. Other solutions included commenting out lines 66 through to 68&#8230; still nothing. However, when I asked my colleague Alex Blanc to look at the code he very quickly spotted that there was a simple fix &#8211; in his words &#8216;a bit of a sledgehammer approach&#8230;&#8217; but it seemed to work.</p>
<p>Add this as line 91:</p>
<p><code>$pee = preg_replace( '|&lt;/p&gt;&lt;/form&gt;\s*&lt;/p&gt;&lt;/div&gt;|', "&lt;/form&gt;&lt;/div&gt;", $pee );</code></p>
<p>(one line only, folks, no carriage returns&#8230;)<br />
The placing within the function in &#8216;format.php&#8217; is important &#8211; put it at the bottom of the function!</p>
<p>Now, it may be that you don&#8217;t need this, or that it doesn&#8217;t actually work for you &#8211; it worked for me today though. The point is that this is a known issue in wordpress and has been around for nearly a whole year, and survived several updates of the software. It really ought to have been sorted out properly by now&#8230; but hey &#8211; this is open source, right? <img src='http://www.halmaclean.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.halmaclean.co.uk/2007/12/07/wordpress-bug-formatphp-invalid-wordpress-html-code/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Dark Mood V2 WordPress theme, editing wordpress files, encoding PHP</title>
		<link>http://www.halmaclean.co.uk/2007/07/30/dark-mood-v2-wordpress-theme-editing-wordpress-files-encoding-php/</link>
		<comments>http://www.halmaclean.co.uk/2007/07/30/dark-mood-v2-wordpress-theme-editing-wordpress-files-encoding-php/#comments</comments>
		<pubDate>Mon, 30 Jul 2007 11:15:37 +0000</pubDate>
		<dc:creator>Hal</dc:creator>
				<category><![CDATA[PHP coding]]></category>
		<category><![CDATA[Scams]]></category>
		<category><![CDATA[scripting general]]></category>
		<category><![CDATA[Web Authoring]]></category>

		<guid isPermaLink="false">http://www.halmaclean.co.uk/2007/07/30/dark-mood-v2-wordpress-theme-editing-wordpress-files-encoding-php/</guid>
		<description><![CDATA[It may come as no surprise to some to find that freely available themes have got advertising embedded in them by default. It came as a surprise to me, mind you! I downloaded and installed the Dark Mood V2 wordpress &#8230; <a href="http://www.halmaclean.co.uk/2007/07/30/dark-mood-v2-wordpress-theme-editing-wordpress-files-encoding-php/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>It may come as no surprise to some to find that  freely available themes have got advertising embedded in them by default. It came as a surprise to me, mind you! I downloaded and installed the Dark Mood V2 wordpress theme by Ed Canape and found that in the footer file there was a PHP function that positioned some adverts. Not rocket science, but I wasn&#8217;t happy with the kind of ads that appeared. One was a pay per click affiliate program, one about Asian entertainment (ooer&#8230;) and one about Philipine paradises. However, what really ticked me off was the fact that the function had been encoded so as to make it hard to unpick it and remove said adverts.</p>
<p>Of all the encoding methods available to PHP programmers, possibly the best is from Zend. One of the most pointless is gencoder (although free). Luckily, it was gencoder that had been used on this occasion. The file looks like this:</p>
<p><img id="leftalign" src="http://www.halmaclean.co.uk/wp-content/uploads/ichat-imagera8.jpeg" alt="encoded php" align="left" /></p>
<p>Now, as you can see there is no easy way to get into the code and remove the advertising links. However, there are two possibilities.</p>
<p>Firstly, you can create a CSS rule in your stylesheet which sets the footer &#8216;a&#8217; display to be none:</p>
<pre>footer a {
display:none;
}</pre>
<p>All this does is remove any clickable links in the footer, but leaves the remaining text. This is at best a workaround, but can get you out of a fix if you are in a hurry.</p>
<p>The second thing to do is decode the file! Again, there are two ways to achieve this, but probably the simplest is to edit the &#8216;eval&#8217; statement to read &#8216;print_r&#8217; instead. If you then run the code in your browser you&#8217;ll see that it makes a bit of a mess visually, but you can still right click and &#8216;view source&#8217;. What you are looking for is at the bottom of the page:</p>
<pre>if((isset($v) AND $v==0) OR (isset($t) AND $t==false)){die('This script is protected by &lt;a style"color:cyan\" href="http://www.gencoder.sf.net\"&gt;&lt;b&gt;&lt;font color"#330099\"&gt;G-Encoder&lt;/font&gt;&lt;/b&gt;&lt;/a&gt;');}echo "&lt;div id"footer\"&gt;n";
echo " Powered by n";
echo " &lt;a href="http://wordpress.org\"&gt;WordPress&lt;/a&gt;n";
echo " and Design by Ivy's &lt;a href="http://www.rubberstampguides.com/\"&gt;Rubber Stamp&lt;/a&gt; n";
echo " Guiden";
echo " &lt;p&gt;&lt;a href="http://www.kirrhi.com/\"&gt;Pay Per Click Affiliate Program&lt;/a&gt; | &lt;a href="http://yeinjee.com/asianpop/tag/asian-entertainment/\"&gt;Asia Entertainment&lt;/a&gt; | &lt;a href="http://www.paradise-philippines.biz/\"&gt;Paradise Philippines&lt;/a&gt;&lt;/div&gt;n";
echo "&lt;/div&gt;n";
echo "n";
echo " &lt;?php wp_footer(); ?&gt;n";
echo "n";
echo "&lt;/body&gt;n";
echo "&lt;/html&gt;n";</pre>
<p>Now you can see the code more clearly, and you can easily see what needs to happen. The last four lines are all you need&#8230; in fact, one of those can be deleted! What you really need is the call to the wordpress footer routines and to close the body tag and close the html. This is all that is necessary to complete the footer file in wordpress. Armed with this knowledge, go back and change the &#8216;print_r&#8217; statement if you like, but better yet, just delete all of that guff. In it&#8217;s place simply add the following few lines of code. You can leave out the &#8216;div&#8217; tags if they are not needed:</p>
<pre>&lt;div class="footer"&gt;
&lt;?php wp_footer(); ?&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>and that&#8217;s it. Save the file and you have got yourself an advert free footer space on your wordpress blog.</p>
<p>Thanks (as ever) to <a title="Link to Alex Blanc" href="http://www.allrollover.co.uk/alexander/" target="_blank">Alex Blanc</a> for his timely and ultimately very simple solution to the problem, and no thanks whatsoever to the person who decided to a) put adverts in the footer, and b) encode them at all. I believe each person needs to have the right to choose whether to display adverts, and in this case I chose most strongly not to!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.halmaclean.co.uk/2007/07/30/dark-mood-v2-wordpress-theme-editing-wordpress-files-encoding-php/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>The Fixture Exchange, Donation to S.P.I.R.E</title>
		<link>http://www.halmaclean.co.uk/2007/01/29/the-fixture-exchange-donation-to-spire/</link>
		<comments>http://www.halmaclean.co.uk/2007/01/29/the-fixture-exchange-donation-to-spire/#comments</comments>
		<pubDate>Mon, 29 Jan 2007 20:25:08 +0000</pubDate>
		<dc:creator>Hal</dc:creator>
				<category><![CDATA[Fixex.com]]></category>
		<category><![CDATA[PHP coding]]></category>

		<guid isPermaLink="false">http://www.halmaclean.co.uk/2007/01/29/the-fixture-exchange-donation-to-spire/</guid>
		<description><![CDATA[For the last ten years or more I have been working with Pete and Liz Conner to run an online site for youth rugby teams to make fixtures at short notice, when their normal ones have fallen through. The situation &#8230; <a href="http://www.halmaclean.co.uk/2007/01/29/the-fixture-exchange-donation-to-spire/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>For the last ten years or more I have been working with Pete and Liz Conner to run an online site for youth rugby teams to make fixtures at short notice, when their normal ones have fallen through. The situation can be dire for some clubs &#8211; having a team eager to play, being let down by their opposition and deciding that soccer might be a better sport to play&#8230; some clubs never fully recover from the loss of their youth teams, since these are the life blood of the club and grow to be the next generation of adult players.</p>
<p>Hence the need for Fixex &#8211; a wonderful site for teams to use at a minimal cost. The fee is just £10 per season for the entire youth section in a club to make use of the service. For that you get unlimited access to the database of available fixtures, your own space to manage your fixtures and links to every other club in the exchange. It isn&#8217;t the only exchange in the country, but it is a good one.</p>
<p>Pete Conner died in 2005 and there was a real danger that the  exchange wouldn&#8217;t survive. The software was aging and needed updating, Liz was in a terrible state after her loss and I have to say I wasn&#8217;t much better! However, we persevered. I found out a bit about PHP coding and re-built the site, Liz found out about using email and took on the callers to the exchange. Between us we have managed to get by.</p>
<p>Each year all of the proceeds from running the system are donated to S.P.I.R.E (Support Paraplegics in Rugby Enterprise) &#8211; a charity that was established by the RFU. The donation is modest, usually around £250 to £300 pounds, but it is consistent. The presentation is made at Twickenham every January during the annual &#8216;extravaganza&#8217; where clubs from all over the country are invited to meet up and sort fixtures for the coming season. Usually, this means clubs from the South East, mostly, although many come from much further afield. This year we donated another £300 and are pleased to have done so &#8211; a big &#8216;thank you&#8217; is due to all of the clubs who subscribe and to Keith Norman who organises the event with the RFU. We are also hugely grateful to the RFU for hosting the event and providing food and drink for the evening&#8230; without the support of folk like Alan Black, this event could not take place in such prestigious surroundings.</p>
<p>And so the exchange continues. The web site is at <a target="_blank" title="http://www.fixex.com" href="http://www.fixex.com">http://www.fixex.com</a> and a lot is happening over there. A new version of the software was released this weekend, and more development is underway. I couldn&#8217;t do any of it without the wonderful MX Kollection Dreamweaver plugins developed by <a href="http://www.interaktonline.com/">Interakt</a> (who have been bought by Adobe).</p>
<p>We are renaming the donation to be the &#8216;Peter Conner Award&#8217; and are looking for other good causes to support as well as S.P.I.R.E &#8211; the intention is to find and help those who against all odds manage to find a way to achieve within rugby union. We will no doubt announce more about this as the year progresses.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.halmaclean.co.uk/2007/01/29/the-fixture-exchange-donation-to-spire/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Single Category RSS feed in WordPress</title>
		<link>http://www.halmaclean.co.uk/2006/11/02/single-category-rss-feed-in-wordpress/</link>
		<comments>http://www.halmaclean.co.uk/2006/11/02/single-category-rss-feed-in-wordpress/#comments</comments>
		<pubDate>Thu, 02 Nov 2006 11:13:29 +0000</pubDate>
		<dc:creator>Hal</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[PHP coding]]></category>
		<category><![CDATA[Web Authoring]]></category>

		<guid isPermaLink="false">http://www.halmaclean.co.uk/2006/11/02/single-category-rss-feed-in-wordpress/</guid>
		<description><![CDATA[So now having installed WordPress, it turns out that it is infinitely customisable! Oh joy&#8230; more to learn about! The task was to be able to build a single category RSS feed that people can subscribe to if they so &#8230; <a href="http://www.halmaclean.co.uk/2006/11/02/single-category-rss-feed-in-wordpress/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img width="90" height="90" align="left" alt="rssicon" title="rssicon" src="/_images/rssicon.png" />So now having installed WordPress, it turns out that it is infinitely customisable! Oh joy&#8230; more to learn about!</p>
<p>The task was to be able to build a single category RSS feed that people can subscribe to if they so chose, rather than have to subscribe to all categories, or all comments.  In the theme I am using the sidebar holds the category list and it was here that the code had to go.</p>
<p>The issue was to find the category ID and the category name and only show the link to the RSS *if* the user had opted to view all posts in a single category.</p>
<p>It turns out that WordPress has done most of the hard work for us, in that the functions to get the ID and name are already created. All that had to happen was to find those arguments, wrap them in an &#8216;If&#8217; tag and post them to the sidebar. Once again, some gentle reading of the Woprdpress documentation got me half way there and able to manually write the code for each category&#8230; but it needed automating. And once more, Alex Blanc stepped up to the plate&#8230;</p>
<p>To cut a very long story short, here&#8217;s the code, entered as a list item in the sidebar.php file for the theme:</p>
<pre>&lt;?php if (get_query_var('cat')) { ?&gt;
&lt;li&gt;
&lt;a xhref="/wp-rss2.php?cat=&lt;?php echo get_query_var('cat'); ?&gt;"&gt;&lt;?php echo single_cat_title(); ?&gt; (RSS)&lt;/a&gt;
&lt;/li&gt;
&lt;?php } ?&gt;</pre>
<p>This then writes the title of the category in the sidebar as an RSS link, and ensures that only that category&#8217;s posts are included in that particular feed. You can see from the code that the link is using RSS2, so you can probably amend this to be any other flavour of feed that you wish.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.halmaclean.co.uk/2006/11/02/single-category-rss-feed-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>PHP import or export to CSV</title>
		<link>http://www.halmaclean.co.uk/2006/11/01/php-import-or-export-to-csv/</link>
		<comments>http://www.halmaclean.co.uk/2006/11/01/php-import-or-export-to-csv/#comments</comments>
		<pubDate>Wed, 01 Nov 2006 23:58:36 +0000</pubDate>
		<dc:creator>Hal</dc:creator>
				<category><![CDATA[PHP coding]]></category>
		<category><![CDATA[Web Authoring]]></category>

		<guid isPermaLink="false">http://www.halmaclean.co.uk/2006/11/01/php-import-or-export-to-csv/</guid>
		<description><![CDATA[This post seems to have been lost in the move from Drupal to WordPress, so here it is again: A while ago now I was working on the designmyschool.net website and one of the functions we had to build was &#8230; <a href="http://www.halmaclean.co.uk/2006/11/01/php-import-or-export-to-csv/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img align="left" src="/_images/interakt.jpg" />This post seems to have been lost in the move from Drupal to WordPress, so here it is again:</p>
<p>A while ago now I was working on the <a target="_blank" href="http://www.designmyschool.com">designmyschool.net</a> website and one of the functions we had to build was the ability for a user to upload accounts in bulk &#8211; typically the data would come form a school management system, which meant it would be best to use CSV file formats.</p>
<p>At the time I researched into what tools were available to help with this task, and found only one suitable for a novice PHP coder such as myself &#8211; <a target="_blank" href="http://www.interaktonline.com/">Interakt&#8217;s</a> &#8216;CSV Import/Export extension for Dreamweaver.</p>
<p>The trouble was that I didn&#8217;t fully understand it all back then and in truth probably still don&#8217;t. However, I have now had a chance to use the other Interakt extensions and really like the way they make complex tasks much, much easier.<br />
Just my luck then&#8230; the CSV extension has been pulled! Adobe&#8217;s acquisition of Interakt bodes well in so many ways, but sadly it means I couldn&#8217;t purchase the extension to test it out. Instead of the wide range of extensions, Interakt are now bundling just one set into a single product &#8211; MXKollection. The other extensions may well appear in a future version of Dreamweaver, but there are no guarantees.<br />
So I happened upon an Italian website called <a target="_blank" href="http://www.felixone.it">Felixone</a>. A quick read through and a short email later I had requested a new extension gets built!<br />
And here it is:<br />
<a target="_blank" href="http://www.felixone.it/extensions/prod/mxiecsven.asp">http://www.felixone.it/extensions/prod/mxiecsven.asp</a></p>
<p>I don&#8217;t yet know how this works, but it looks very, very good to me. For €28 it has to be worth a chance! I think I can now confidently complete that part of the admin tools for designmyschool&#8230; we do have the csv uploading working well, but we could use a csv download of the results. Sigh&#8230; it never ends&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.halmaclean.co.uk/2006/11/01/php-import-or-export-to-csv/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Fixture Exchange, PHP Coding, Dreamweaver, MX Kollection</title>
		<link>http://www.halmaclean.co.uk/2006/09/13/old82/</link>
		<comments>http://www.halmaclean.co.uk/2006/09/13/old82/#comments</comments>
		<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
		<dc:creator>Hal</dc:creator>
				<category><![CDATA[Fixex.com]]></category>
		<category><![CDATA[PHP coding]]></category>
		<category><![CDATA[Web Authoring]]></category>

		<guid isPermaLink="false">http://1319977454</guid>
		<description><![CDATA[For quite a while now I have been helping to run a fixture exchange system for youth rugby clubs. It started off life as a phone based pencil and paper system, but we moved it onto the Internet in about 1993. More recently it has been database driven and we relied on a company to build it using .ASP

All has been well until the host company said they were no longer going to host .ASP and that I should get this converted to PHP.

Now, I am no web coder but for a few years I have been working with some very skilled people. Sadly they haven't had the time to help build this for me, but have offered loads of suggestions and ideas. I really needed to get this done myself.
 <a href="http://www.halmaclean.co.uk/2006/09/13/old82/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>For quite a while now I have been helping to run a fixture exchange system for youth rugby clubs. It started off life as a phone based pencil and paper system, but we moved it onto the Internet in about 1993. More recently it has been database driven and we relied on a company to build it using .ASP</p>
<p>All has been well until the host company said they were no longer going to host .ASP and that I should get this converted to PHP.</p>
<p>Now, I am no web coder but for a few years I have been working with some very skilled people. Sadly they haven&#8217;t had the time to help build this for me, but have offered loads of suggestions and ideas. I really needed to get this done myself.</p>
<p>So I went to freelancers.com and looked for anyone who could do the conversion. As it turns out there are lots of folk there who thought it would be easy, but I needed to work fast!</p>
<p>I have for some time been using Dreamweaver as my HTML editor, along with BBEdit on a Mac. There are a number of in-built tools to help code PHP, but you need to know what you are doing before you understand when and how to use them. I have also bought a copy of Interakt&#8217;s &#8216;MX Kollection&#8217; This is basically a framework that writes the PHP code from a library of functions. All you need to know is what function you are doing.</p>
<p>The online help system for this is pretty good, and there are dozens of tutorials to help. It handles just about everything you need for a fairly complex site, including registration, sessions, listing information, amending records and so on.</p>
<p>Have a look at <a target="_blank" href="http://www.fixex.com">http://www.fixex.com</a> to see the site I built (if you are a youth rugby team, sign up!!), and check out <a target="_blank" href="http://www.interaktonline.com">http://www.interaktonline.com</a> for the dreamweaver extensions. I notice the company has now been bought by Adobe (who also now own Macromedia) so perhaps even better things are around the corner. All I know is I couldn&#8217;t have built this from nothing to a fully working site in less than a week without this set of extensions, so many thanks to Interakt!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.halmaclean.co.uk/2006/09/13/old82/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PHP</title>
		<link>http://www.halmaclean.co.uk/2004/10/21/old8/</link>
		<comments>http://www.halmaclean.co.uk/2004/10/21/old8/#comments</comments>
		<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
		<dc:creator>Hal</dc:creator>
				<category><![CDATA[PHP coding]]></category>

		<guid isPermaLink="false">http://718202047</guid>
		<description><![CDATA[Blimey... and there was I thinking I didn't have time to stop to learn a scripting langauge! How wrong can you be.

Well, it isn't really about having time is it? It's all about purpose and whether or not the need is there which drives the desire to learn. In my case it is, since I am part of a team working on a project with the Design Council and the site makes use of PHP (and Flash - but that's a whole other story for later).

I'm still trying to make sense of it, but thanks to yet another colleague I am beginning to understand it a little bit more. Unlike any other formal learning, where a chunk at a time is taken, tried, repeated, applied, etc, I am having to dive into the deep end and see the entire thing holistically. It's like reading a book but only knowing a fraction of the words, yet trying to understand the story... tough call.
 <a href="http://www.halmaclean.co.uk/2004/10/21/old8/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Blimey&#8230; and there was I thinking I didn&#8217;t have time to stop to learn a scripting langauge! How wrong can you be.</p>
<p>Well, it isn&#8217;t really about having time is it? It&#8217;s all about purpose and whether or not the need is there which drives the desire to learn. In my case it is, since I am part of a team working on a project with the Design Council and the site makes use of PHP (and Flash &#8211; but that&#8217;s a whole other story for later).</p>
<p>I&#8217;m still trying to make sense of it, but thanks to yet another colleague I am beginning to understand it a little bit more. Unlike any other formal learning, where a chunk at a time is taken, tried, repeated, applied, etc, I am having to dive into the deep end and see the entire thing holistically. It&#8217;s like reading a book but only knowing a fraction of the words, yet trying to understand the story&#8230; tough call.</p>
<p>So, many thanks to Alex for his tireless explanations, loan of books and the like &#8211; and big apologies to all who are having to suffer my expletive driven learning style!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.halmaclean.co.uk/2004/10/21/old8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

