<?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>[LINICKX].com &#187; PHP</title>
	<atom:link href="http://www.linickx.com/tag/php/feed" rel="self" type="application/rss+xml" />
	<link>http://www.linickx.com</link>
	<description>Moments of Genius followed by Trash.</description>
	<lastBuildDate>Thu, 17 May 2012 10:23:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>apc.php for rhel / centos</title>
		<link>http://www.linickx.com/3616/apc-php-for-rhel-centos</link>
		<comments>http://www.linickx.com/3616/apc-php-for-rhel-centos#comments</comments>
		<pubDate>Wed, 16 May 2012 14:39:17 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[Enterprise Linux]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.linickx.com/?p=3616</guid>
		<description><![CDATA[Note to self: The apc.php (script for monitroing apc performance) is stored in &#8211; /usr/share/doc/php-pecl-apc-3.1.3p1 Copyright &#169; 2012 [LINICKX].com. This Feed is for personal non-commercial use only. Please check my Site Terms and Conditions for full details on copyrights. If &#8230; <a href="http://www.linickx.com/3616/apc-php-for-rhel-centos">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Note to self: The apc.php (<em>script for monitroing apc performance</em>) is stored in &#8211; <code>/usr/share/doc/php-pecl-apc-3.1.3p1</code></p>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/3616/apc-php-for-rhel-centos/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>rxalarm &#8211; Alarm Console (webhook) for Rackspace Cloud Monitoring.</title>
		<link>http://www.linickx.com/3611/rxalarm-alarm-console-webhook-for-rackspace-cloud-monitoring</link>
		<comments>http://www.linickx.com/3611/rxalarm-alarm-console-webhook-for-rackspace-cloud-monitoring#comments</comments>
		<pubDate>Mon, 30 Apr 2012 16:25:19 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[openshift]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[rxalarm]]></category>

		<guid isPermaLink="false">http://www.linickx.com/?p=3611</guid>
		<description><![CDATA[When rackspace launched cloud monitoring I was really interested, especially since leaving AWS&#8230; I kind of felt a bit blind to what my servers were doing. By default, the monitoring service sends you emails for up/down alarms&#8230; just what we &#8230; <a href="http://www.linickx.com/3611/rxalarm-alarm-console-webhook-for-rackspace-cloud-monitoring">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>When rackspace launched <a href="https://www.rackspace.co.uk/cloud-hosting/cloud-products/cloud-monitoring/">cloud monitoring</a> I was really interested, especially since leaving AWS&#8230; I kind of felt a bit blind to what my servers were doing.</p>
<p>By default, the monitoring service sends you emails for up/down alarms&#8230; just what we need more emails! &#8230; So I have started to write an alarm console which is a compatible webhook for their API&#8230;. i.e. you can send alarms to it!</p>
<p>My Webhook is called [rx]Alarm&#8230; rx as in receive <img src='http://www.linickx.com/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>The source code is on github (<a href="https://github.com/linickx/rxalarm">rxalam repo</a>) and a working copy is on openshift (<a href="https://rxalarm-linickx.rhcloud.com/">rxalam site</a>).</p>
<p>This may end up being yet-another-project-I-don&#8217;t-finish &#8230; or it maybe not, only time will tell!</p>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/3611/rxalarm-alarm-console-webhook-for-rackspace-cloud-monitoring/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php basic twitter oauth example</title>
		<link>http://www.linickx.com/3608/php-basic-twitter-oauth-example</link>
		<comments>http://www.linickx.com/3608/php-basic-twitter-oauth-example#comments</comments>
		<pubDate>Thu, 12 Apr 2012 13:17:52 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[oauth]]></category>

		<guid isPermaLink="false">http://www.linickx.com/?p=3608</guid>
		<description><![CDATA[Oauth it seems tricky, to help me understand I&#8217;ve attempted to code up an example which allows users to log into a php app with their twitter credentials. The code has been pushed to a branch of my abandonware repo &#8230; <a href="http://www.linickx.com/3608/php-basic-twitter-oauth-example">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Oauth it seems tricky, to help me understand I&#8217;ve attempted to code up an example which allows users to log into a php app with their twitter credentials.</p>
<p>The code has been pushed to a branch of <a href="https://github.com/linickx/a">my abandonware repo</a> as I don&#8217;t plan to make on any future changes, checkout <a href="https://github.com/linickx/a/blob/oauth/README.md">README.md</a> for some info on how the code works.</p>
<p><strong><a href="https://github.com/linickx/a/tree/oauth">https://github.com/linickx/a/tree/oauth</a></strong></p>
<p>I found it quite difficult to find some simple code to do this, so hopefully ^that^ will help someone else <img src='http://www.linickx.com/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/3608/php-basic-twitter-oauth-example/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>is_blog</title>
		<link>http://www.linickx.com/3546/is_blog</link>
		<comments>http://www.linickx.com/3546/is_blog#comments</comments>
		<pubDate>Tue, 24 Jan 2012 16:42:00 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[is_blog]]></category>

		<guid isPermaLink="false">http://www.linickx.com/?p=3546</guid>
		<description><![CDATA[Since moving to a static front page I&#8217;ve noticed google is indexing /blog rather than individual posts&#8230;. this little addition to my header.php should fix it! You may notice that WordPress doesn&#8217;t appear to be an is_blog function which would &#8230; <a href="http://www.linickx.com/3546/is_blog">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Since moving to <a href="http://codex.wordpress.org/Creating_a_Static_Front_Page">a static front page</a> I&#8217;ve noticed google is indexing <a href="http://www.linickx.com/blog">/blog</a> rather than individual posts&#8230;. this little addition to my <a href="http://codex.wordpress.org/Designing_Headers">header.php</a> should fix it!</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
/*
                DO NOT INDEX /blog
        */

        if ( (!is_front_page()) &amp;&amp; (!is_page()) &amp;&amp; (!is_single()) &amp;&amp; (!is_archive()) ) {
                echo '&lt;meta name=&quot;robots&quot; content=&quot;noindex&quot;&gt;' . &quot;\n&quot;;
        }
?&gt;
</pre>
<p>You may notice that WordPress doesn&#8217;t appear to be an <a href="http://core.trac.wordpress.org/ticket/10158">is_blog</a> function which would do the same thing.</p>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/3546/is_blog/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>root-cookie 1.6, two years in the making?</title>
		<link>http://www.linickx.com/3495/root-cookie-1-6-two-years-in-the-making</link>
		<comments>http://www.linickx.com/3495/root-cookie-1-6-two-years-in-the-making#comments</comments>
		<pubDate>Thu, 22 Dec 2011 22:02:41 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[root-cookie]]></category>

		<guid isPermaLink="false">http://www.linickx.com/?p=3495</guid>
		<description><![CDATA[No taking two years to release an update is not good, but in my defence root-cookie is so simple that there are very few issues and complaints Actually a two year wait isn&#8217;t strictly true, those watching the dev log &#8230; <a href="http://www.linickx.com/3495/root-cookie-1-6-two-years-in-the-making">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.linickx.com/files/2011/12/screenshot-1.png" rel="lightbox[3495]"><img class="alignright size-thumbnail wp-image-3501" title="Root Cookie Admin Screen Shot" src="http://www.linickx.com/files/2011/12/screenshot-1-150x150.png" alt="" width="150" height="150" /></a>No taking two years to release an update is not good, but in my defence root-cookie is so simple that there are very few issues and complaints <img src='http://www.linickx.com/wp/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Actually a two year wait isn&#8217;t strictly true, those watching <a href="http://www.linickx.com/tag/root-cookie">the dev log</a> would have seen I&#8217;ve pushed the odd update here and there.</p>
<p>So what prompts this release, well I&#8217;ve noticed that in WP3.3 that the cookie functions have changed, so to ensure future compatibility (<em>and minimal issues for me</em>) I have updated this plugin to be aligned to the core source.</p>
<p>The usual blurb&#8230;</p>
<ul>
<li>Download: <a href="http://wordpress.org/extend/plugins/root-cookie/download/">http://wordpress.org/extend/plugins/root-cookie/download/</a></li>
<li>Support: <a href="https://wordpress.org/tags/root-cookie?forum_id=10#postform">https://wordpress.org/tags/root-cookie?forum_id=10#postform</a></li>
<li>Bugs: <a href="http://plugins.trac.wordpress.org/newticket?component=root-cookie&amp;owner=linickx">http://plugins.trac.wordpress.org/newticket?component=root-cookie&amp;owner=linickx</a></li>
</ul>
<p><strong>ChangeLog</strong></p>
<ul>
<li>Contextual Help</li>
<li>Bug fix &#8220;undefined method WP_Error::get_items&#8221;</li>
<li>Logout Enhancement</li>
<li>WP 3.3 Compatability</li>
<li><a href="http://www.linickx.com">Donation Link</a> (<em>it&#8217;s good for your karma</em>)</li>
</ul>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/3495/root-cookie-1-6-two-years-in-the-making/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP to solve problems</title>
		<link>http://www.linickx.com/3484/php-to-solve-problems</link>
		<comments>http://www.linickx.com/3484/php-to-solve-problems#comments</comments>
		<pubDate>Sat, 17 Dec 2011 11:05:43 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[routing]]></category>

		<guid isPermaLink="false">http://www.linickx.com/?p=3484</guid>
		<description><![CDATA[PHP make you think of web app&#8217;s right? &#8230; well, did you know you can run it from the CLI to? Recently I&#8217;ve been doing a lot of spreadsheet and sub-netting type stuff, whilst doing this mundane work I&#8217;ve realised &#8230; <a href="http://www.linickx.com/3484/php-to-solve-problems">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>PHP make you think of web app&#8217;s right? &#8230; well, did you know you can run it from the CLI to?</p>
<p>Recently I&#8217;ve been doing a lot of spreadsheet and sub-netting type stuff, whilst doing this mundane work I&#8217;ve realised that I can get scripts to work for me. I&#8217;ve started to post a few <a href="https://gist.github.com/1309388">PHP network functions</a> to github which I&#8217;ve been using.</p>
<p>Here&#8217;s an example: I have a nokia firewall, the routing table in voyager is shown in the following format -</p>
<pre class="brush: plain; title: ; notranslate">
Network / CIDR Mask , Gateway
10.0.0.0 / 8 , 10.0.0.1
</pre>
<p>I need that same routing in a Cisco ASA format -</p>
<pre class="brush: plain; title: ; notranslate">
Network , Mask , Gateway
10.0.0.0, 255.0.0.0, 10.0.0.1
</pre>
<p>Now this is not a problem for a few routes but the firewall I&#8217;m looking at now has 177 static routes, which I don&#8217;t want to convert manually.</p>
<p><b>Roll in PHP!</b><br />
Save the original routing table as a .csv file. ColA = ip/mask , ColB = gateway. </p>
<p>Save this a route_conv.php</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php

	/**

		Change the below to your CSV File.

	**/

	$firewall_csv = &quot;./routes_cdr.csv&quot;; 

	/**

		Function to convert CIDRs such as &quot;23&quot; to decimall dotted like &quot;255.255.254.0&quot;
		I've got more of these: https://gist.github.com/1309388

	**/

	function cidr2mask($netmask) {

		$netmask_result=&quot;&quot;;
		for($i=1; $i &lt;= $netmask; $i++) {
		  $netmask_result .= &quot;1&quot;;
		}

		for($i=$netmask+1; $i &lt;= 32; $i++) {
		    $netmask_result .= &quot;0&quot;;
		}

		$netmask_ip_binary_array = str_split( $netmask_result, 8 );

		$netmask_ip_decimal_array = array();
		foreach( $netmask_ip_binary_array as $k =&gt; $v ){
		    $netmask_ip_decimal_array[$k] = bindec( $v ); // &quot;100&quot; =&gt; 4
		}

		$subnet = join( &quot;.&quot;, $netmask_ip_decimal_array );

		return $subnet;

	}

	ini_set('auto_detect_line_endings', true); // detect CR

	if (file_exists($firewall_csv)) {

		$file = fopen($firewall_csv, 'r');

		$counter = 0; // array counter

		while (($data = fgetcsv($file)) !== FALSE) {

			list($ip, $netmask) = split( &quot;/&quot;, $data[0] ); // SPLIT Col A into IP &amp; Mask

			$netmask = cidr2mask($netmask); // Covert Mask

			$gateway = $data[1]; // Col B

			/**
				This echo is the CSV style output, but you could change this to echo &quot;route add $ip $mask $ gateway \n&quot; for unix style output.
			**/

			echo $ip . &quot;,&quot; . $netmask . &quot;,&quot; . $gateway . &quot;\n&quot;;

		}

		fclose($file);

	} else {

		echo &quot;404: $firewall_csv \n&quot;; // FILE NOT FOUND.

	}
?&gt;
</pre>
<p>from your CLI run &#8220;<code>php route_conv.php</code>&#8221; and enjoy the output!</p>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/3484/php-to-solve-problems/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>phpbb_recent_topics version 0.7</title>
		<link>http://www.linickx.com/3311/phpbb_recent_topics-version-0-7</link>
		<comments>http://www.linickx.com/3311/phpbb_recent_topics-version-0-7#comments</comments>
		<pubDate>Sun, 03 Jul 2011 09:58:49 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[phpbb_recent_topics]]></category>

		<guid isPermaLink="false">http://www.linickx.com/?p=3311</guid>
		<description><![CDATA[A little later than planned but the annual release of phpbb_recent_topics is finally here! I actually started on this release a couple of months ago but couldn&#8217;t find the time to write this post and tag the release :-$ The &#8230; <a href="http://www.linickx.com/3311/phpbb_recent_topics-version-0-7">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.linickx.com/files/2011/07/phpbb_recent_topics_logo_L.png" rel="lightbox[3311]"><img src="http://www.linickx.com/files/2011/07/phpbb_recent_topics_logo_s.png" alt="PHPbb Recent Topics Logo" title="phpbb_recent_topics_logo" width="275" height="172" class="alignright size-full wp-image-3315" /></a>A little later than planned but the annual release of phpbb_recent_topics is finally here! </p>
<p>I actually started on this release a couple of months ago but couldn&#8217;t find the time to write this post and tag the release :-$ The good news is that there have been lots of changes since 0.6, basically I&#8217;ve implemented as many bug fixes and feature as I can in the WordPress-Plugin bug tracker.</p>
<p><strong>If you have a feature request or patch, <a href="http://plugins.trac.wordpress.org/newticket?component=phpbb-recent-topics&#038;owner=linickx">please submit here</a>.</p>
<p>Support questions and requests for help should be directed at <a href="http://wordpress.org/tags/phpbb-recent-topics?forum_id=10">the forum</a>.</strong></p>
<p>Without further ado&#8230; <strong>What&#8217;s New?</strong></p>
<ul>
<li>
 WordPress 3.1.4 Testing <br /> Yep, with such a slow development cycle I can confirm that PRT works with WordPress version 3, but you knew that right ?</li>
<li> CSS Styleable output <br /> A common request, there is now a UL class called prt_ul and a LI class called prt_li which can be used to make you sidebar look pretty! </li>
<li> Plugin Options Modernisation <br /> I follow <a href="http://planet.wordpress.org">planet.wordpress</a> so any tips, tricks and modern ways of doing things have been implemented i.e.
<ul>
<li>Collapse multiple options into an array</li>
<li>Implement register settings to close  <a href="http://plugins.trac.wordpress.org/ticket/1217">http://plugins.trac.wordpress.org/ticket/1217</a></li>
<li>Implement upgrade.php to migrate all variable to new array form</li>
</ul>
</li>
<li> Resolved: Missing argument 1 for phpbb_topics() <br /> This was a stoooopid bug that has been in the code for ages, I finally found the time to squish it!</li>
<li>Code clean-up (<em>Lots of changes</em>) <br /> I&#8217;ve put a lot of effort in 0.7 to remove all the un-necessary code, the kind of stuff that get&#8217;s pasted in as a good idea but not needed, hopefully this has some positive impact in your site as well as my kama</li>
<li>Timezone/Off-Set fix (Reads +/- hours from WordPress Settings) <br /> This was perhaps the most requested feature, I figured out a neat way of doing it by reading the WordPress options.</li>
<li>Localisation of date/time fix (<a href="http://plugins.trac.wordpress.org/ticket/1173">http://plugins.trac.wordpress.org/ticket/1173</a>) <br /> I&#8217;m planning to complete localisation in 0.8, but this is a start right?</li>
<li>Callback functionality <br /> Do you want to do something cool with PRT? Check out phpbb_topics_callback in the readme!</li>
<li>Contextual Help in the admin dashboard <br /> In the past, this blog post has contained the instructions for getting going, I&#8217;ve now put everything either in the readme or actually in the wordpress help, keep a weather eye out for the &#8220;help&#8221; in the top right hand corner of the WordPress dashboard.</li>
</ul>
<p><strong>Where do I get it?</strong><br />
<a href="http://wordpress.org/extend/plugins/phpbb-recent-topics/">Download phpbb_recent_topics version 0.7 from WordPress.org</a></p>
<p>I hope you enjoy this release!</p>
<p><strong>Footnote:</strong> Version 0.7.1 has been pushed out which fixes the date display issue reported below!</p>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/3311/phpbb_recent_topics-version-0-7/feed</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>linickx on github</title>
		<link>http://www.linickx.com/3296/linickx-on-github</link>
		<comments>http://www.linickx.com/3296/linickx-on-github#comments</comments>
		<pubDate>Mon, 30 May 2011 10:40:02 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[AbandonWare]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[LINICKX-LifeStream]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[phpbb_recent_topics]]></category>
		<category><![CDATA[root-cookie]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.linickx.com/?p=3296</guid>
		<description><![CDATA[For your social coding pleasure, linickx code is now in github! Yesterday I completed the subversion mirror of my WordPress projects &#8211; phpbb_recent_topics , root cookie and linickx lifestream &#8211; now this isn&#8217;t a migration, it is a mirror! For &#8230; <a href="http://www.linickx.com/3296/linickx-on-github">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.linickx.com/files/2011/05/octocat_happy_sm.gif" rel="lightbox[3296]"><img src="http://www.linickx.com/files/2011/05/octocat_happy_sm.gif" alt="" title="octocat_happy_sm" width="132" height="101" class="alignright size-full wp-image-3298" /></a><br />
For your social coding pleasure, <a href="https://github.com/linickx">linickx code is now in github</a>!</p>
<p>Yesterday I completed the subversion mirror of my WordPress projects &#8211; <a href="https://github.com/linickx/phpbb_recent_topics">phpbb_recent_topics</a> , <a href="https://github.com/linickx/root-cookie">root cookie</a> and <a href="https://github.com/linickx/linickx-lifestream">linickx lifestream</a> &#8211; now this isn&#8217;t a migration, it is a mirror! For the time being I&#8217;m happy using the subversion tools provided by Automattic and the WordPress team but I understand that git is gaining momentum and many are switching, basically I&#8217;m hoping this makes it easier for the WP community to get in touch or make suggestions to the code.</p>
<p>I&#8217;m also working on uploading some of my old work, I rely heavily on google to broadcast my wares and perhaps there are some old dinosaurs that need resurrecting by a new community of devs?  Well if you&#8217;re feeling nosey &#8220;<a href="https://github.com/linickx/a">A is for Abandonware</a>&#8221;</p>
<p>It&#8217;s likely that new code and projects will appear on git hub, I&#8217;ve been toying with running subversion on linickx.com but now that Xcode4 has git built in this cloud based social service might be a better option&#8230;. I guess only time will tell!</p>
<p>Enjoy!</p>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/3296/linickx-on-github/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Custom Query for Custom Post Types and Taxonomy</title>
		<link>http://www.linickx.com/3065/wordpress-custom-query-for-custom-post-types-and-taxonomy</link>
		<comments>http://www.linickx.com/3065/wordpress-custom-query-for-custom-post-types-and-taxonomy#comments</comments>
		<pubDate>Wed, 25 Aug 2010 17:48:02 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.linickx.com/?p=3065</guid>
		<description><![CDATA[I wanted to run a custom query against WP3.0 custom post types but all the documentation and google I found all pointed to posts in categories which doesn&#8217;t work if your post type isn&#8217;t post, this was my solution&#8230;. Hopefully &#8230; <a href="http://www.linickx.com/3065/wordpress-custom-query-for-custom-post-types-and-taxonomy">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I wanted to run a custom query against WP3.0 custom post types but all the documentation and google I found all pointed to posts in categories which doesn&#8217;t work if your post type isn&#8217;t <em>post</em>, this was my solution&#8230;.</p>
<pre class="brush: php; title: ; notranslate">
$my_query = $wp_query-&amp;gt;query; // Copy the existing query into a new one
$my_query['posts_per_page'] = &quot;30&quot;; // change the number we want displayed.
$my_query['orderby'] = &quot;title&quot;; // Sort by title.
$my_query['order'] = &quot;ASC&quot;; // 'A' first!
query_posts($my_query);  // Run our query.... normal service resumes.
</pre>
<p>Hopefully this post will give someone the <em>light bulb moment</em> they&#8217;re after.</p>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/3065/wordpress-custom-query-for-custom-post-types-and-taxonomy/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xcode for WordPress Plug-in Developers</title>
		<link>http://www.linickx.com/3007/xcode-for-wordpress-plug-in-developers</link>
		<comments>http://www.linickx.com/3007/xcode-for-wordpress-plug-in-developers#comments</comments>
		<pubDate>Wed, 26 May 2010 19:42:04 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[SVN Commits]]></category>
		<category><![CDATA[xcode]]></category>

		<guid isPermaLink="false">http://www.linickx.com/?p=3007</guid>
		<description><![CDATA[This post is an extension to this excellent article except with a subtle difference, I&#8217;m not interested in hacking the WP core, I&#8217;m writing a plug-in I&#8217;m going to assume that you&#8217;ve requested access to WordPress.org&#8217;s SVN repository, and you&#8217;ve &#8230; <a href="http://www.linickx.com/3007/xcode-for-wordpress-plug-in-developers">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This post is an extension to <a href="http://www.red-sweater.com/blog/141/livin-in-a-wordpress-hackers-paradise">this excellent article</a> except with a subtle difference, I&#8217;m not interested in hacking the WP core, I&#8217;m writing a plug-in <img src='http://www.linickx.com/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I&#8217;m going to assume that you&#8217;ve <a href="http://wordpress.org/extend/plugins/add/">requested access</a> to WordPress.org&#8217;s SVN repository, and you&#8217;ve found the admin panel and want to get your Xcode goodness hooked up to the WP SVN.</p>
<p>To get started create a new Empty Xcode project.</p>
<table>
<tr>
<td>
<a href="http://www.linickx.com/files/2010/05/WP-Xcode-New-Empty-Project.png" rel="lightbox[3007]"><img src="http://www.linickx.com/files/2010/05/WP-Xcode-New-Empty-Project-150x150.png" alt="Screenshot of Xcode project chooser" title="WP Xcode New Empty Project" width="150" height="150" class="aligncenter size-thumbnail wp-image-3010" /></a>
</td>
<td>
<a href="http://www.linickx.com/files/2010/05/WP-Xcode-Empty-Linickx-Lifestream.png" rel="lightbox[3007]"><img src="http://www.linickx.com/files/2010/05/WP-Xcode-Empty-Linickx-Lifestream-150x150.png" alt="Empty XCode waiting for LINICKX LifeStream" title="WP Xcode Empty Linickx Lifestream" width="150" height="150" class="aligncenter size-thumbnail wp-image-3011" /></a>
</td>
</tr>
<tr>
<td><strong><em>Xcode project choose</em>r</strong>
</td>
<td>
<strong><em>Empty Project</em></strong>
</td>
</tr>
</table>
<p>From the menu bar select <code>SCM</code> then <code>Configure Repositories</code>, the window select the <code>+</code> to add a new repo, the username &#038; password pair are your wordpress.org credentials, you can find the URL to your SVN repo on the wordpress.org site. </p>
<table>
<tr>
<td>
<a href="http://www.linickx.com/files/2010/05/WordPress-dot-org-Admin-Interface.png" rel="lightbox[3007]"><img src="http://www.linickx.com/files/2010/05/WordPress-dot-org-Admin-Interface-150x150.png" alt="WordPress dot org Admin Interface" title="WordPress dot org Admin Interface" width="150" height="150" class="aligncenter size-thumbnail wp-image-3014" /></a>
</td>
</tr>
<tr>
<td> <em><strong>The WP.org admin interface</strong></em></td>
</tr>
</table>
<p>Next from the menu bar select <code>SCM</code> then <code>Repositories</code>, highlight the repo you&#8217;ve just created and choose checkout; you&#8217;re going to be asked for a folder to &#8220;save&#8221; the contents of the repo to, I chose inside my Xcode project folder.</p>
<table>
<tr>
<td>
<a href="http://www.linickx.com/files/2010/05/WP-Xcode-Config-Repo.png" rel="lightbox[3007]"><img src="http://www.linickx.com/files/2010/05/WP-Xcode-Config-Repo-150x150.png" alt="" title="WP Xcode Config Repo" width="150" height="150" class="aligncenter size-thumbnail wp-image-3015" /></a>
</td>
<td>
<a href="http://www.linickx.com/files/2010/05/WP-Xcode-Checkout.png" rel="lightbox[3007]"><img src="http://www.linickx.com/files/2010/05/WP-Xcode-Checkout-150x150.png" alt="Checking out with Xcode" title="WP Xcode Checkout" width="150" height="150" class="aligncenter size-thumbnail wp-image-3017" /></a>
</td>
</tr>
<tr>
<td>
<strong><em>Repo&#8217; Confi</em>g</strong>
</td>
<td>
<strong><em>Code Checkout</em></strong>
</td>
</tr>
</table>
<p>You now need to add those &#8220;checked out&#8221; files to you project, in the tree on the left, right/control click the blue project icon at the top and select add existing files, accept the defaults and the repo should be imported.</p>
<table>
<tr>
<td>
<a href="http://www.linickx.com/files/2010/05/WP-Xcode-Imported-Project.png" rel="lightbox[3007]"><img src="http://www.linickx.com/files/2010/05/WP-Xcode-Imported-Project-150x150.png" alt="Code imported" title="WP Xcode Imported Project" width="150" height="150" class="aligncenter size-thumbnail wp-image-3019" /></a>
</td>
</tr>
<tr>
<td>
<em><strong>Imported Code </strong></em>
</td>
</tr>
</table>
<p>These files now in the project need to be associated with the repo, this is done by highlighting the blue project icon and clicking the &#8220;Info&#8221; button, then click &#8220;Configure Roots &#038; SCM&#8221;; click the + button and choose your repo folder (again)&#8230; the dropdown on the right should automatically select the correct SCM.</p>
<table>
<tr>
<td>
<a href="http://www.linickx.com/files/2010/05/WP-Xcode-Project-LINICKX-LifeStream-Info.png" rel="lightbox[3007]"><img src="http://www.linickx.com/files/2010/05/WP-Xcode-Project-LINICKX-LifeStream-Info-150x150.png" alt="Project LINICKX LifeStream Info" title="WP Xcode Project LINICKX LifeStream Info" width="150" height="150" class="aligncenter size-thumbnail wp-image-3023" /></a>
</td>
<td>
<a href="http://www.linickx.com/files/2010/05/WP-Xcode-Edit-Project-Root.png" rel="lightbox[3007]"><img src="http://www.linickx.com/files/2010/05/WP-Xcode-Edit-Project-Root-150x150.png" alt="WP Xcode Edit Project Root" title="WP Xcode Edit Project Root" width="150" height="150" class="aligncenter size-thumbnail wp-image-3024" /></a>
</td>
</tr>
<tr>
<td><strong><em>Project Properties</em></strong></td>
<td><strong><em>Project Roots</em></strong></td>
</tr>
</table>
<p>If you now change a file / add / delete / etc it will appear under the SCM tree, you can right/control click and commit to the repo&#8230;. job done <img src='http://www.linickx.com/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<table>
<tr>
<td>
<a href="http://www.linickx.com/files/2010/05/WP-Xcode-readme-txt-changed.png" rel="lightbox[3007]"><img src="http://www.linickx.com/files/2010/05/WP-Xcode-readme-txt-changed-150x150.png" alt="WP Xcode readme txt changed" title="WP Xcode readme txt changed" width="150" height="150" class="aligncenter size-thumbnail wp-image-3026" /></a>
</td>
</tr>
<tr>
<td><strong><em>Yay it works</em>!</strong></td>
</tr>
</table>
<p>Very quickly you&#8217;re going to find out that you want to test your changes prior to commiting them, to do this you may want to copy your files upto a webserver&#8230;. I get Xcode to do that for me, using <a href="http://code.google.com/p/macfuse/">macfuse</a> to mount my webroot via ssh but for this example I&#8217;ll create a directory on the desktop &#8230; you also need to create any subdirectories you may need..  I have to create &#8220;admin&#8221;.</p>
<p>To copy the files we&#8217;re use an Xcode target, from the menu bar choose <code>Project</code> then <code>New Target</code> then <code>Copy Files Target</code>, I called my new target <em>CopyFile</em>. Using the info button change the absolute path of the copy &#8211; e.g. /Users/Nick/Desktop/LL &#8230; now here I ran into a problem (<em>suggestions welcome</em>)&#8230; next I created extra copy build phases for each subdirectory. Control/right click your Target ( i.e CopyFiles) then choose Add, New Build Phase, New Copy Files Build Phase&#8230; I then set the absolute path of this &#8220;sub target&#8221; to /Users/nick/Desktop/LL/admin/ to represent my admin subdirectory.</p>
<p>Finally DRAG down the files into their correct target, all being well and a fair wind clicking &#8220;BUILD&#8221; will cause your files to be copied into your directory. You can now make changes, click build to test, and then commit them to subversion when you&#8217;re happy <img src='http://www.linickx.com/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<table>
<tr>
<td>
<a href="http://www.linickx.com/files/2010/05/WP-Xcode-Finished-11-37-41.png" rel="lightbox[3007]"><img src="http://www.linickx.com/files/2010/05/WP-Xcode-Finished-11-37-41-150x150.png" alt="WP Xcode - Finished" title="WP Xcode - Finished" width="150" height="150" class="aligncenter size-thumbnail wp-image-3027" /></a></td>
</tr>
<tr>
<td><strong><em>Finished!</em></strong></td>
</tr>
</table>
<p>The red sweater post that inspires this now talks about creating a RUN shortcut to automatically open a web browser for testing, however mine didn&#8217;t work&#8230; I got this error &#8220;<em>The program being debugged is not being run</em>&#8220;&#8230; suggestions to fix welcome!</p>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/3007/xcode-for-wordpress-plug-in-developers/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

