<?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>Not So Unwashed &#187; Webdev</title>
	<atom:link href="http://www.notsounwashed.com/category/webdev/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.notsounwashed.com</link>
	<description>Now With More</description>
	<lastBuildDate>Sat, 22 May 2010 06:51:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Twimage Release</title>
		<link>http://www.notsounwashed.com/2009/06/twimage-release/</link>
		<comments>http://www.notsounwashed.com/2009/06/twimage-release/#comments</comments>
		<pubDate>Sun, 14 Jun 2009 17:41:35 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Webdev]]></category>
		<category><![CDATA[dicks]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[RSS]]></category>
		<category><![CDATA[twimage]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://www.notsounwashed.com/?p=153</guid>
		<description><![CDATA[Ever since I joined Twitter, it always bothered me that there was no way to display my tweets in a controlled web environment, one that didn&#8217;t allow scripts or embedded Flash content. Twitter offers plenty of badges in Flash and Javascript, but if I wanted to display my latest tweet in, say, my forum signature, [...]]]></description>
			<content:encoded><![CDATA[<p>Ever since I joined <a href="http://twitter.com/burgerdrome/">Twitter</a>, it always bothered me that there was no way to display my tweets in a controlled web environment, one that didn&#8217;t allow scripts or embedded Flash content. Twitter offers plenty of badges in Flash and Javascript, but if I wanted to display my latest tweet in, say, my forum signature, I was basically screwed. Most forum software such as <a href="http://www.phpbb.org">phpBB</a> is very restrictive on what users can and cannot put into their signatures, but the one thing they all allow are <em>images</em>. And so Twimage was born.</p>
<p>Twimage is a PHP script I wrote that grabs your Twitter account&#8217;s RSS feed, reads it, strips it down, and then prints the latest tweet from it to a 648 x 40 pixel PNG image. You can then display this image anywhere you would normally be able to put a regular PNG image file &#8211; including your forum signature! The final result looks a lot like this (resized for width, <a href="http://timcolwill.com/projects/twimage/twimage.php">see full size here</a>):</p>
<p><center><img src="http://www.notsounwashed.com/wp-content/uploads/2009/06/twimage.jpg" alt="Twimage" /></center></p>
<p>Because Twitter&#8217;s RSS feeds are <em>painfully</em> unstable &#8211; often returning HTTP 400 errors for no fucking reason whatsoever &#8211; I&#8217;ve also included a Twimage Feedchecker (<a href="http://timcolwill.com/projects/twimage/">see it in action here</a>). This is nothing more than a simple PHP file which tries to print your RSS feed in plaintext, and will helpfully tell you any errors it encounters so you can accurately troubleshoot. I&#8217;ve also included the source file for the background image, if the colours I&#8217;ve chosen don&#8217;t take your fancy.</p>
<p>I&#8217;m not going to lie: this script is basically a complete and total hackjob and is very, very rudimentary in nature. <a href="http://www.feedforall.com/free-php-script.htm">RSS2HTML</a> does most of the heavy lifting, and I just polish it, clean it up and print it into a PNG. It&#8217;s nothing that somebody else couldn&#8217;t write for themselves in about ten seconds, and indeed if anybody out there wishes to improve on it (which shouldn&#8217;t be hard!) I welcome them. I&#8217;d love to see what you do with it. Enjoy.</p>
<p><strong>Download:</strong> <a href="http://timcolwill.com/projects/twimage/twimage.zip">Twimage 1.1.1 (260 KB ZIP)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.notsounwashed.com/2009/06/twimage-release/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
