<?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"
	>

<channel>
	<title>richl.com</title>
	<atom:link href="http://richl.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://richl.com</link>
	<description>computing, wifi, drumming, gaming, ranting...a non-profit blog.</description>
	<pubDate>Tue, 16 Sep 2008 16:35:30 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
			<item>
		<title>More from this category using Wordpress</title>
		<link>http://richl.com/2008/09/16/more-from-this-category-using-wordpress/</link>
		<comments>http://richl.com/2008/09/16/more-from-this-category-using-wordpress/#comments</comments>
		<pubDate>Tue, 16 Sep 2008 06:43:27 +0000</pubDate>
		<dc:creator>Rich</dc:creator>
		
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://richl.com/?p=229</guid>
		<description><![CDATA[Keeping readers to your website entertained can be a tricky thing to do, i certainly haven&#8217;t got enough interesting content to keep a reader looking around and re-visiting to check on what&#8217;s new. That aside, i use &#8221;More from this category&#8221; and &#8220;Recent Related Articles&#8221; blocks of code on as many pages of my site as [...]]]></description>
			<content:encoded><![CDATA[<p>Keeping readers to your website entertained can be a tricky thing to do, i certainly haven&#8217;t got enough interesting content to keep a reader looking around and re-visiting to check on what&#8217;s new. That aside, i use &#8221;More from this category&#8221; and &#8220;Recent Related Articles&#8221; blocks of code on as many pages of my site as i can as if somebody come&#8217;s across my site looking for &#8220;How to add the thumbnail path to the Wordpress Media Uploader&#8221; i know they may also be interested in &#8220;How to do something kinda cool with Wordpress that makes you more awesome&#8221;.</p>
<p>Below is the code i use for the &#8220;More from this category&#8221; on the right hand side, if you would like to use it simply add it at any point you wish within your sidebar.php file that resides in your themes directory (e.g. /themes/mythemename/comments.php).</p>
<blockquote><p>&lt;?php<br />
if ( is_single() ) :<br />
global $post;<br />
$categories = get_the_category();<br />
foreach ($categories as $category) :<br />
?&gt;<br />
&lt;li&gt;&lt;h2&gt;More from this category&lt;/h2&gt;<br />
&lt;ul class=&#8221;bullets&#8221;&gt;<br />
&lt;?php<br />
$posts = get_posts(&#8217;numberposts=10&amp;category=&#8217;. $category-&gt;term_id);<br />
foreach($posts as $post) :<br />
?&gt;<br />
&lt;li&gt;&lt;a href=&#8221;&lt;?php the_permalink(); ?&gt;&#8221;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/li&gt;</p>
<p>&lt;?php endforeach; ?&gt;</p>
<p>&lt;li&gt;&lt;strong&gt;&lt;a href=&#8221;&lt;?php echo get_category_link($category-&gt;term_id);?&gt;&#8221; title=&#8221;View all posts filed under &lt;?php echo $category-&gt;name; ?&gt;&#8221;&gt;Archive for &#8216;&lt;?php echo $category-&gt;name; ?&gt;&#8217; &amp;raquo;&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;<br />
&lt;/ul&gt;<br />
&lt;/li&gt;<br />
&lt;?php endforeach; endif ; ?&gt;</p></blockquote>
<p><strong>A quick explanation</strong><br />
Starting at the beginning, this piece of code will initially check to see whether it is running on a &#8220;single&#8221; page, meaning it checks to see if it is on an article/blog page (not the front page, or a static page). It then get&#8217;s the category of the current page and requests 10 more of the most recent posts from the same category (numberposts=10, this can be changed to whatever you like). After that it uses a loop to display each link, and after all that it will display a link to the &#8220;Archive&#8221; for that category just in case the displayed articles aren&#8217;t interesting enough.</p>
<p><strong>CSS</strong><br />
As can be seen, the code uses the class &#8220;bullets&#8221; for styling, here is the CSS i use which you could copy into your style.css file and modify to suit your theme. If you already have a &#8220;bullets&#8221; class you can of course rename the class in the PHP code above to something else.</p>
<blockquote><p>.bullets li {<br />
background: url(images/sidebar-bullet.gif) no-repeat !important;<br />
padding-left: 16px !important;<br />
}</p></blockquote>
<p>If anyone would like to know how to do this using Images (like in my &#8220;Recent Related Articles&#8221; section on every page, then drop me a comment and ask me to post the code. I would be more than happy to do it, but am just not sure if anyone actually needs it.</p>
]]></content:encoded>
			<wfw:commentRss>http://richl.com/2008/09/16/more-from-this-category-using-wordpress/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Apple release iPhone 2.1 this Friday</title>
		<link>http://richl.com/2008/09/10/apple-release-iphone-21-this-friday/</link>
		<comments>http://richl.com/2008/09/10/apple-release-iphone-21-this-friday/#comments</comments>
		<pubDate>Wed, 10 Sep 2008 07:52:56 +0000</pubDate>
		<dc:creator>Rich</dc:creator>
		
		<category><![CDATA[News]]></category>

		<category><![CDATA[iphone]]></category>

		<guid isPermaLink="false">http://richl.com/?p=221</guid>
		<description><![CDATA[Amid other announcements at Apple's "Lets Rock" event, they announced that the iPhone 2.1 firmware will be released this Friday as a free update. ]]></description>
			<content:encoded><![CDATA[<p><img class="size-medium wp-image-222 alignright" title="iphone21fw" src="http://richl.com/wp-content/uploads/2008/09/iphone21fw-257x170.jpg" alt="" width="257" height="170" />Amid other announcements at Apple&#8217;s &#8220;Lets Rock&#8221; event, they announced that the iPhone 2.1 firmware will be released this Friday as a free update. The much anticipated version upgrade will address many of the issues that have been plaguing iPhone users, including:</p>
<p>- Significantly better battery life<br />
- Fewer call drops<br />
- Bug fixes<br />
- Faster backups to iTunes<br />
- No App crashes</p>
<p>No mention of background push notifications were made, however, which were originally planned for a September release. Let&#8217;s hope this finally fixes the lag when selecting a contact after composing an SMS message&#8230;it could happen!</p>
]]></content:encoded>
			<wfw:commentRss>http://richl.com/2008/09/10/apple-release-iphone-21-this-friday/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Thumbnail path for Wordpress 2.6</title>
		<link>http://richl.com/2008/07/08/add-thumbnail-path-to-wp25-uploader/</link>
		<comments>http://richl.com/2008/07/08/add-thumbnail-path-to-wp25-uploader/#comments</comments>
		<pubDate>Tue, 08 Jul 2008 10:10:17 +0000</pubDate>
		<dc:creator>Rich</dc:creator>
		
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://richl.com/?p=137</guid>
		<description><![CDATA[Like many other Wordpress theme&#8217;s, mine uses the wonder that is custom fields. It uses it for all those lovely images you see on the front page and in various other positions across the site. The only problem is, actually populating and using those custom field&#8217;s can be hassle, especially for user&#8217;s that im trying [...]]]></description>
			<content:encoded><![CDATA[<p>Like many other Wordpress theme&#8217;s, mine uses the wonder that is custom fields. It uses it for all those lovely images you see on the front page and in various other positions across the site. <img class="alignright size-full wp-image-139" title="wp25thumbhack" src="http://richl.com/wp-content/uploads/2008/07/wp25thumbhack.jpg" alt="" width="332" height="204" />The only problem is, actually populating and using those custom field&#8217;s can be hassle, especially for user&#8217;s that im trying to get started on posting&#8230;the first thing i do is baffle them with how to get the path for an image so they can paste it into a custom field.</p>
<p>So, i asked and searched around and nobody seemed to have an answer for me. I then proceeded to start hacking away and have now managed to add a &#8220;Thumb URL&#8221; inside the upload tool which can be used for copying/pasting into the custom field of your choice.</p>
<p>An example can be seen on the right.</p>
<p><strong></strong></p>
<p><strong>Want to implement this for yourself?<br />
</strong>It&#8217;s really pretty simple once you know where to look, but to be on the safe side make a backup copy of the media.php file before you start editing it so you can always revert back should something go horribly wrong.</p>
<ol>
<li>Find and open /wp-admin/includes/media.php</li>
<li>Find the following area of code:</li>
<div></div>
<p><span style="font-size: x-small;"></p>
<blockquote><p>&lt;thead class=&#8217;media-item-info&#8217;&gt;</p>
<p>&lt;td class=&#8217;A1B1&#8242; rowspan=&#8217;4&#8242;&gt;&lt;img class=&#8217;thumbnail&#8217; src=&#8217;$thumb_url&#8217; alt=&#8217;Thumbnail&#8217; /&gt;&lt;/td&gt;</p>
<p>&lt;td&gt;$filename&lt;/td&gt;</p>
<p>&lt;/tr&gt;</p>
<p>&lt;tr&gt;&lt;td&gt;$post-&gt;post_mime_type&lt;/td&gt;&lt;/tr&gt;</p>
<p>&lt;tr&gt;&lt;td&gt;&#8221; . mysql2date($post-&gt;post_date, get_option(&#8217;time_format&#8217;)) . &#8220;&lt;/td&gt;&lt;/tr&gt;</p>
<p>&lt;tr&gt;&lt;td&gt;&#8221; . apply_filters(&#8217;media_meta&#8217;, &#8221;, $post) . &#8220;&lt;/td&gt;&lt;/tr&gt;</p>
<p>&lt;/thead&gt;</p>
<p>&lt;tbody&gt;\n&#8221;;</p></blockquote>
<p> </p>
<p></span></p>
<li>Add the following line above &lt;/thead&gt;:</li>
<div></div>
<p><span style="font-size: x-small;"></p>
<blockquote><p>&lt;tr&gt;&lt;td colspan=2&gt;&lt;br /&gt;&lt;label&gt;Thumb URL: &lt;/label&gt; ;  &lt;input type=&#8217;text&#8217; name=&#8217;thumburl[$post-/&gt;ID][url]&#8216; value=&#8217;&#8221; . $thumb_url . &#8220;&#8216; /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;</p></blockquote>
<p> </p>
<p></span></p>
<li>Save the file, your code should now look like this:</li>
<blockquote>
<div><span style="font-size: x-small;">&lt;thead class=&#8217;media-item-info&#8217;&gt;</span></div>
<div><span style="font-size: x-small;">&lt;tr&gt;</span></div>
<div><span style="font-size: x-small;">&lt;td class=&#8217;A1B1&#8242; rowspan=&#8217;4&#8242;&gt;&lt;img class=&#8217;thumbnail&#8217; src=&#8217;$thumb_url&#8217; alt=&#8217;Thumbnail&#8217; /&gt;&lt;/td&gt;</span></div>
<div><span style="font-size: x-small;">&lt;td&gt;$filename&lt;/td&gt;</span></div>
<div><span style="font-size: x-small;">&lt;/tr&gt;</span></div>
<div><span style="font-size: x-small;">&lt;tr&gt;&lt;td&gt;$post-&gt;post_mime_type&lt;/td&gt;&lt;/tr&gt;</span></div>
<div><span style="font-size: x-small;">&lt;tr&gt;&lt;td&gt;&#8221; . mysql2date($post-&gt;post_date, get_option(&#8217;time_format&#8217;)) . &#8220;&lt;/td&gt;&lt;/tr&gt;</span></div>
<div><span style="font-size: x-small;">&lt;tr&gt;&lt;td&gt;&#8221; . apply_filters(&#8217;media_meta&#8217;, &#8221;, $post) . &#8220;&lt;/td&gt;&lt;/tr&gt;</span></div>
<div><span style="font-size: x-small;">&lt;tr&gt;&lt;td colspan=2&gt;&lt;br /&gt;&lt;label&gt;Thumb URL:&lt;/label&gt;   &lt;input type=&#8217;text&#8217; name=&#8217;thumburl[$post-&gt;ID][url]&#8216; value=&#8217;&#8221; . $thumb_url . &#8220;&#8216; /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;</span></div>
<div><span style="font-size: x-small;">&lt;/thead&gt;<br />
</span><span style="font-size: x-small;">&lt;tbody&gt;\n&#8221;;</span><span style="font-size: x-small;"> </p>
<p></span></div>
</blockquote>
</ol>
<p>That&#8217;s it, you&#8217;re done! If you have any suggestions or questions/comments, please feel free to leave them below.</p>
]]></content:encoded>
			<wfw:commentRss>http://richl.com/2008/07/08/add-thumbnail-path-to-wp25-uploader/feed/</wfw:commentRss>
		</item>
		<item>
		<title>O2 begins pre-orders on 3G iPhone&#8230;sort of</title>
		<link>http://richl.com/2008/07/07/o2-iphone-3g-preorders/</link>
		<comments>http://richl.com/2008/07/07/o2-iphone-3g-preorders/#comments</comments>
		<pubDate>Mon, 07 Jul 2008 16:27:54 +0000</pubDate>
		<dc:creator>Rich</dc:creator>
		
		<category><![CDATA[News]]></category>

		<category><![CDATA[iphone]]></category>

		<guid isPermaLink="false">http://richl.com/?p=88</guid>
		<description><![CDATA[This morning i got an email from O2 stating that i could now pre-order a new 3G iPhone for delivery on it&#8217;s 11th of July release date. Now i&#8217;ve been waiting for this for quite a while as some of you may know from my previous attempts at iPhone ownership, this is my hope that [...]]]></description>
			<content:encoded><![CDATA[<p>This morning i got an email from O2 stating that i could now pre-order a new 3G iPhone for delivery on it&#8217;s 11th of July release date. Now i&#8217;ve been waiting for this for quite a while as some of you may know from my previous attempts at iPhone ownership, this is my hope that V2 will be an improvement on V1. Anyway, after half an hour of attempting to pre-order one i gave up and started work.</p>
<p><img class="alignright size-full wp-image-90" title="o23giphone" src="http://richl.com/wp-content/uploads/2008/07/o23giphone.jpg" alt="" width="257" height="180" />A few hours later i check <a href="http://forums.macrumors.com/showthread.php?t=512055&amp;page=1">various</a> <a href="http://forums.overclockers.co.uk/showthread.php?t=17894359">forums</a> and it turn&#8217;s out hardly anybody has had any luck ordering one, mainly a few people that got in around 8am seem to have had their orders accepted, but nobody else seems to have had much luck due to huge periods of O2&#8217;s servers being down. They&#8217;re now reporting to be out of stock of all 8GB and 16GB 3G iPhone&#8217;s and &#8220;to check back on the 10th of July&#8221;. According to several different sites, nobody has been able to <strong>upgrage</strong> their V1 iPhone using the O2 code&#8217;s and website.</p>
<p>So, well done again O2 for making an absolute balls up of what should surely be a fairly straight forward task&#8230;it&#8217;s really not inspiring me to sign up for an 18 month contract with you. Never mind though, from the looks of it i won&#8217;t be able to get an iPhone (or contract) unless i try my luck in the shops on Friday morning and i&#8217;m not sure i&#8217;ll bother, as the most disappointing thing is the knowledge that after all the man hours put in to dedicating myself to getting a 3G iPhone - i&#8217;ll be bored of it after 8 days.</p>
]]></content:encoded>
			<wfw:commentRss>http://richl.com/2008/07/07/o2-iphone-3g-preorders/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Know your limit?</title>
		<link>http://richl.com/2008/05/20/know-your-limit/</link>
		<comments>http://richl.com/2008/05/20/know-your-limit/#comments</comments>
		<pubDate>Tue, 20 May 2008 22:12:59 +0000</pubDate>
		<dc:creator>Pea</dc:creator>
		
		<category><![CDATA[Random Crap]]></category>

		<guid isPermaLink="false">http://richl.com/?p=85</guid>
		<description><![CDATA[
Have you seen the advert on the TV explaining how many units of alcohol are in drinks? This advert is produced by the Department of Health to try and target middle aged binge drinkers. I think this is about time, being of the younger generations I think its about time we stopped getting blamed for [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-medium wp-image-86" src="http://richl.com/wp-content/uploads/2008/05/epint-113x130.jpg" alt="" width="113" height="130" /><br />
Have you seen the advert on the TV explaining how many units of alcohol are in drinks? This advert is produced by the Department of Health to try and target middle aged binge drinkers. I think this is about time, being of the younger generations I think its about time we stopped getting blamed for this counties excess drinking habits. Ok so we may go out on a Saturday and get a little drunk but how many young people do you know go home and have a drink (even if their on their own) every night?</p>
<p>Just for your curiosity I did a little research to explain more about the units system.</p>
<p>To calculate units - multiply volume of drink in ml % of alcohol content then divide the answer by 1000, e.g. 750 ml x 12 = 9000/1000 = 9 units.</p>
<p>It is recommended that women consume no more than 2/3 units per day and men 3/4 units per day (this is with two days off a week). This is the equivalent to a pint of beer for men and a standard glass of wine of women, however if the drinks are stronger this can be reduced to half a pint or a small glass. This means that the anyone having a couple of glasses of wine a night means they are risking their health. However there is some good news as a small amount of alcohol after the age of 50 can help prevent some heart disease!</p>
<ul>
<li>1 pint = 568 ml</li>
<li>1 small wine glass = 125 ml</li>
<li>1 standard wine glass = 175 ml</li>
<li>1 large wine glass = 250 ml</li>
</ul>
<ul>
<li>Average pint of beer = 2.3 units</li>
<li>Average pint of cider = 2.8 units</li>
<li>Average small glass of wine = 1.5 units</li>
<li>Single shot of spirits = 1 unit</li>
<li>Average alcopop = 1.4 units</li>
</ul>
<p>I tried to find out the legal limit for drinking and driving in units but being the government they can’t make anything easy so it’s only available in mg/ml (alcohol/blood). The technical legal limit is 80mg/100ml but as there is no way for the average person to measure this it is easier not to drink if you’re driving.</p>
<p>Useful websites:</p>
<ul>
<li><a href="http://www.drinkaware.com">www.drinkaware.com</a></li>
<li><a href="http://www.knowyourlimits.gov.uk">www.knowyourlimits.gov.uk</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://richl.com/2008/05/20/know-your-limit/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
