<?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>Alan-Graham.co.uk</title>
	<atom:link href="http://alan-graham.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://alan-graham.co.uk</link>
	<description>The Much More</description>
	<lastBuildDate>Mon, 12 Sep 2011 15:46:11 +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>Another CMS Conversion</title>
		<link>http://alan-graham.co.uk/2011/09/another-cms-conversion/</link>
		<comments>http://alan-graham.co.uk/2011/09/another-cms-conversion/#comments</comments>
		<pubDate>Mon, 12 Sep 2011 15:46:11 +0000</pubDate>
		<dc:creator>Alan Graham</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[modx]]></category>
		<category><![CDATA[rg online]]></category>
		<category><![CDATA[website development]]></category>

		<guid isPermaLink="false">http://alan-graham.co.uk/?p=41</guid>
		<description><![CDATA[Recently I took on another client through. This has now turned into a set time contract. My first task on the list converting the small static site into a Content Management System. Enter modx revolution. Since its early branches 0.9 I have been using modx. It was the only content management system that was not [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I took on another client through.  This has now turned into a set time contract.  My first task on the list converting the small static site into a Content Management System.  Enter modx revolution.  </p>
<p>Since its early branches 0.9 I have been using modx.  It was the only content management system that was not based on block and was not overly complicated to get into action.  From here however this has lead to me using it for pretty much all of my project.  </p>
<p>4 Years later and I am finally getting my hands stuck into their new codebase, all I know at this moment is ITS FAST!</p>
]]></content:encoded>
			<wfw:commentRss>http://alan-graham.co.uk/2011/09/another-cms-conversion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Top 40 Uk Charts</title>
		<link>http://alan-graham.co.uk/2011/08/top-40-uk-charts/</link>
		<comments>http://alan-graham.co.uk/2011/08/top-40-uk-charts/#comments</comments>
		<pubDate>Wed, 31 Aug 2011 10:17:36 +0000</pubDate>
		<dc:creator>Alan Graham</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://alan-graham.co.uk/?p=42</guid>
		<description><![CDATA[So here it is another day, another 8 hours at my computer.  I have been searching for a while for a UK top 40 feed for AcademyFM Thanet's Website that RGOnline do management for.  After hours of searching I came across webcoding.co.uk where a brilliant man has created a script that pulls the UK top [...]]]></description>
			<content:encoded><![CDATA[<p>So here it is another day, another 8 hours at my computer.  I have been searching for a while for a UK top 40 feed for <a href="http://www.academyfmthanet.com">AcademyFM Thanet's Website</a> that <a href="http://www.rgonline.co.uk">RGOnline</a> do management for.  After hours of searching I came across <a href="http://www.webcoding.co.uk">webcoding.co.uk</a> where a brilliant man has created a script that pulls the UK top 40 from the BBC's Chart page and then returns it as XML.</p>
<p>This is something however I am shocked to see is not made available by the BBC or the Official Charts, it is a simple thing to do for these companies and would make developers lives so much easier.  However i am finally blessed with the ability to have a UK Top 40 Feed in a million and one ways on my websites.</p>
<p>A little on the background of the integration for those who wish to know.  AcademyFM Thanet are a community radio station based in Ramsgate, Kent.  The station asked me to work on their website and after moving the site from their old, ASP written, and appalling CMS into something a little more flexible (modx to the rescue)  I was able to do some work.  It is from here that i have been able to continue work for them and now have their hosting and support contract for the site under RGonline. The top 40 Feed needed to be placed into modx in some way that it was re-usable anywhere .  I investigated the use of FeedX a snippet for parsing XML feeds, however i found it to be quite difficult to configure and never had any success.  So I dropped back to re-inventing the wheel and wrote a custom snippet that controlled and pulled the data. This is all done using SimpleXML and the chunk parsing from the modx API, allowing me to customise the output in a variety of ways. There was only one flaw within the whole of this and that was the structure of the XML.  It looks something like:</p>
<p>&nbsp;</p>
<p><code>&lt;chart&gt;</p>
<p>&lt;info&gt;&lt;/info&gt;</p>
<pre>           &lt;chart-item&gt;&lt;/chart-item&gt;</pre>
<pre>           &lt;chart-item&gt;&lt;/chart-item&gt;</pre>
<pre>           &lt;chart-item&gt;&lt;/chart-item&gt;</pre>
<pre>           .......</pre>
<p>&lt;/chart&gt;</p>
<p>&nbsp;</code></p>
<p>This only caused one problem and that was that when looping through the elements using simple XML, the Info tag was the first to be displayed.  Essentially a little bit of XSLT could have solved this but not having the time to add this in and get some more simpleXML research, I quickly opted for the poor route to get the code up (10 Points for the first person to guess what I used <img src='http://alan-graham.co.uk/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> ).</p>
<p>As it happens though the result works and looks smart, although still being faced with a template that I do not like makes me a little resentful of the work. </p>
<p>Anyway for now I will hide, and get rid of the old Top40 Nonsense.  </p>
]]></content:encoded>
			<wfw:commentRss>http://alan-graham.co.uk/2011/08/top-40-uk-charts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Look Mum, I made a blog post</title>
		<link>http://alan-graham.co.uk/2011/08/look-mum-i-made-a-blog-post/</link>
		<comments>http://alan-graham.co.uk/2011/08/look-mum-i-made-a-blog-post/#comments</comments>
		<pubDate>Wed, 24 Aug 2011 13:03:15 +0000</pubDate>
		<dc:creator>Alan Graham</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://alan-graham.co.uk/?p=38</guid>
		<description><![CDATA[Well I thought it was about time that a blog post was made on this site.  It is a quick moment just to say hello to the world. I am currently sitting down working on a quick WordPress website for a local business dealing in vehicle body work repairs.  While also trying to prepare for an evening [...]]]></description>
			<content:encoded><![CDATA[<p>Well I thought it was about time that a blog post was made on this site.  It is a quick moment just to say hello to the world.</p>
<p>I am currently sitting down working on a quick WordPress website for a local business dealing in vehicle body work repairs.  While also trying to prepare for an evening of live sound work (see everything happens all at once).  So before my evening with Gristle Fridge and while writing lines of WordPress template code I thought I would relax with a post.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://alan-graham.co.uk/2011/08/look-mum-i-made-a-blog-post/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

