<?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>Development Blog &#187; php</title>
	<atom:link href="http://blog.yeticode.co.uk/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.yeticode.co.uk</link>
	<description>John Tindell's Blog For Development Related Things</description>
	<lastBuildDate>Wed, 23 Jun 2010 18:17:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Plugin Crazy!</title>
		<link>http://blog.yeticode.co.uk/2009/07/plugin-crazy/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=plugin-crazy</link>
		<comments>http://blog.yeticode.co.uk/2009/07/plugin-crazy/#comments</comments>
		<pubDate>Sat, 18 Jul 2009 02:00:17 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Development Log]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.yeticode.co.uk/?p=512</guid>
		<description><![CDATA[So after creating my first proper plugin, post-to-facebook, I decided to have a go at creating another one. This one was created after I set up a blog for my dad to post updates and photos to so that he wouldn&#8217;t have to resend the same emails to different people. The after giving him a [...]]]></description>
			<content:encoded><![CDATA[<p>So after creating my first proper plugin, <a href="http://blog.yeticode.co.uk/post-to-facebook">post-to-facebook</a>, I decided to have a go at creating another one. This one was created after I set up a blog for my dad to post updates and photos to so that he wouldn&#8217;t have to resend the same emails to different people. The after giving him a brief overview of how to post items and upload photos I noticed that the images he was uploaded were to large to be correctly displayed, when using the light box plugin. So from this I decided to write a plugin that would allow for the maximum size an uploaded image can be, and if it is larger it is resized. I&#8217;ll submit it to wordpress for download. This plugin is ideal for people who don&#8217;t want to worry about resizing their images before they post them to wordpress, this is ideal with. The plugin homepage is can be found on the page <a href="http://blog.yeticode.co.uk/resize-on-upload-plugin">resize-on-upload-plugin</a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.yeticode.co.uk/2009/07/plugin-crazy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8216;Post to Facebook&#8217; WordPress Plugin</title>
		<link>http://blog.yeticode.co.uk/2009/07/post-to-facebook-wordpress-plugin/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=post-to-facebook-wordpress-plugin</link>
		<comments>http://blog.yeticode.co.uk/2009/07/post-to-facebook-wordpress-plugin/#comments</comments>
		<pubDate>Tue, 14 Jul 2009 21:35:18 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Development Log]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.yeticode.co.uk/?p=449</guid>
		<description><![CDATA[After wanting to be able to post stuff to my facebook account from my blog for no other reason than &#8220;I Can&#8221;, I looked around at the plugins that exist at the moment. The ones that I found worked but they were not what I wanted. The closest I got was the plugin Publish To [...]]]></description>
			<content:encoded><![CDATA[<p><img alt="post-to-facebook screenshot" style="float: left" src="http://static.yeticode.co.uk/blog/images/posts/post_to_facebook_screenshot.png"/></p>
<p>After wanting to be able to post stuff to my facebook account from my blog for no other reason than &#8220;I Can&#8221;, I looked around at the plugins that exist at the moment. The ones that I found worked but they were not what I wanted. The closest I got was the plugin <a href="http://wordpress.org/extend/plugins/publish-to-facebook/">Publish To Facebook</a>. What I didn&#8217;t like about this plugin was that it highjacked the publish/update button. What I wanted was the ability to press a button and publish to facebook for only the posts that choose. So I decided to write my own plugin, that add a button to the edit page to do just this.</p>
<p>The can for the moment the source code can be checked out from bazaar repository, then simply upload the folder to the wp-content/plugins and you&#8217;re good to go. If you don&#8217;t like or use bazaar you can download the tar ball.</p>
<p><b>Download: </b><a href="http://static.yeticode.co.uk/blog/downloads/post-to-facebook.tar.gz">post-to-facebook.tar.gz</a></p>
<pre>
bzr branch <a href="http://bzr.yeticode.co.uk/post-to-facebook" rel="nofollow">http://bzr.yeticode.co.uk/post-to-facebook</a>
</pre>]]></content:encoded>
			<wfw:commentRss>http://blog.yeticode.co.uk/2009/07/post-to-facebook-wordpress-plugin/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Simple SVN WordPress Widget</title>
		<link>http://blog.yeticode.co.uk/2009/04/simple-svn-wordpress-widget/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=simple-svn-wordpress-widget</link>
		<comments>http://blog.yeticode.co.uk/2009/04/simple-svn-wordpress-widget/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 17:43:15 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Off Topic]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.yeticode.co.uk/?p=123</guid>
		<description><![CDATA[After getting bored on working on my final year project I decided to take a look at creating widgets word my blog. There are SVN hooks on my repositories that store the commit details in a SQL database. I thought I would create a widget that would pull out the last message and display it. [...]]]></description>
			<content:encoded><![CDATA[<p>After getting bored on working on my final year project I decided to take a look at creating widgets word my blog. There are SVN hooks on my repositories that store the commit details in a SQL database. I thought I would create a widget that would pull out the last message and display it. </p>
<pre name="code" class="php">
/*
Plugin Name: LastCommit
Plugin URI: <a href="http://blog.yeticode.co.uk/" rel="nofollow">http://blog.yeticode.co.uk/</a>
Description: Gets Last Commit Message
Author: John Tindell
Version: 1
Author URI: <a href="http://blog.yeticode.co.uk/" rel="nofollow">http://blog.yeticode.co.uk/</a>
*/
function lastCommit_widget() {

	$server = 'localhost';
	$link = mssql_connect($server, 'username', '************');
	echo '
<li class="widget">';
	echo "
<h2>Last Commit</h2>

";
	if($link)
	{
		mssql_select_db('svnyeti', $link);
		$query = mssql_query('select top 1 * from SVNLog order by liLogEntryPk desc', $link);
		$row = mssql_fetch_array($query);
		print '
<p ><i>' . $row['lszLogEntry'] . '</i></p >';
	}
	echo ' </li>

';
}
function init_lastCommit(){
	register_sidebar_widget("LastCommit", "lastCommit_widget");
}
add_action("plugins_loaded", "init_lastCommit");
</pre>
<p>When I get more time I will develop this a bit more.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.yeticode.co.uk/2009/04/simple-svn-wordpress-widget/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
