<?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>trifle</title>
	<atom:link href="http://shokadu.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://shokadu.co.uk</link>
	<description>unravelling the web</description>
	<lastBuildDate>Wed, 09 May 2012 08:03:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Adversaries of Iran Said to Be Stepping Up Covert Actions</title>
		<link>http://shokadu.co.uk/blog/2011/12/21/coffee-wordpress-admin-theme/</link>
		<comments>http://shokadu.co.uk/blog/2011/12/21/coffee-wordpress-admin-theme/#comments</comments>
		<pubDate>Wed, 21 Dec 2011 10:57:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Our Blog]]></category>

		<guid isPermaLink="false">http://shokadu.co.uk/?p=505</guid>
		<description><![CDATA[This is a beautiful theme I developed for the WordPress dashboard. Whilst theming a wordpress site is relatively easy, custom dashboard themes are harder to come by. I plan on expanding this plugin to add options so the user can adjust the colours and styles via an easy to use GUI. Additionally, this plugin creates...  <a href="http://shokadu.co.uk/blog/2011/12/21/coffee-wordpress-admin-theme/" title="Read Adversaries of Iran Said to Be Stepping Up Covert Actions">Read more &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>This is a beautiful theme I developed for the WordPress dashboard. Whilst theming a wordpress site is relatively easy, custom dashboard themes are harder to come by. I plan on expanding this plugin to add options so the user can adjust the colours and styles via an easy to use GUI. Additionally, this plugin creates a bolder interface, making WordPress easier to use on tablets such as the iPad2.</p>
<p><a href="http://wordpress.org/extend/plugins/coffee-admin-theme/">http://wordpress.org/extend/plugins/coffee-admin-theme/</a></p>
<img class="aligncenter size-full wp-image-506" title="wpadminthemetwo" src="http://shokadu.co.uk/wp-content/uploads/2011/12/wpadminthemetwo.jpg" alt="" width="469" height="453" />
]]></content:encoded>
			<wfw:commentRss>http://shokadu.co.uk/blog/2011/12/21/coffee-wordpress-admin-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Against Odds, Path Opens Up for U.S.-Taliban Talks</title>
		<link>http://shokadu.co.uk/blog/2011/11/24/test-post/</link>
		<comments>http://shokadu.co.uk/blog/2011/11/24/test-post/#comments</comments>
		<pubDate>Thu, 24 Nov 2011 12:11:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General News]]></category>

		<guid isPermaLink="false">http://shokadu.co.uk/?p=438</guid>
		<description><![CDATA[A big part of improving the new JBD website was to enhance the usability, most primarily of the quote request form. Objectives were: Fast and easy. Businessmen do not have time to fill out long complex forms. Live validation. Let people know they&#8217;ve made a mistake as soon as possible. Saves time correcting user mistakes. Helpful. Provide...  <a href="http://shokadu.co.uk/blog/2011/11/24/test-post/" title="Read Against Odds, Path Opens Up for U.S.-Taliban Talks">Read more &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>A big part of improving the new JBD website was to enhance the usability, most primarily of the quote request form. Objectives were:</p>
<ul>
<li>Fast and easy. Businessmen do not have time to fill out long complex forms.</li>
<li>Live validation. Let people know they&#8217;ve made a mistake as soon as possible. Saves time correcting user mistakes.</li>
<li>Helpful. Provide features that make it quicker and easier for the user to fill in the form.</li>
</ul>
<p>I wanted our quote form to be the fastest, quickest, easiest quote request form in the industry. The first way of doing this was simple &#8211; <strong>put the form on every page possible</strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://shokadu.co.uk/blog/2011/11/24/test-post/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How CSS3 can enhance your web design</title>
		<link>http://shokadu.co.uk/blog/2011/10/21/how-css3-can-enhance-your-web-design/</link>
		<comments>http://shokadu.co.uk/blog/2011/10/21/how-css3-can-enhance-your-web-design/#comments</comments>
		<pubDate>Fri, 21 Oct 2011 12:05:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Our Blog]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS3]]></category>

		<guid isPermaLink="false">http://shokadu.co.uk/?p=359</guid>
		<description><![CDATA[I&#8217;ll put it out there now. CSS3 is more important to web design than HTML5. Why? HTML5 is structure and at times function. It&#8217;s not styling, your styling is your CSS3. HTML5 is brilliant because it&#8217;s more semantic, and deals with a lot of functionality that was only previously achievable with Javascript or Flash. Whilst...  <a href="http://shokadu.co.uk/blog/2011/10/21/how-css3-can-enhance-your-web-design/" title="Read How CSS3 can enhance your web design">Read more &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ll put it out there now. CSS3 is more important to web design than HTML5.</p>
<p>Why?</p>
<p>HTML5 is structure and at times function. It&#8217;s not styling, your styling is your CSS3. HTML5 is brilliant because it&#8217;s more semantic, and deals with a lot of functionality that was only previously achievable with Javascript or Flash. Whilst that matters to us, the reality is to the end user there&#8217;s no discernible difference. The end user does not care if you&#8217;ve coded your site semantically using tags such as &#8220;&lt;nav&#8221;. It makes no difference to them.</p>
<p>Because CSS is how you&#8217;re styling the look of your site, it has a much more dramatic effect on the end user. Some would argue that CSS3 does a similar job to HTML5, by achieving effects we already could with Photoshop. However I&#8217;d argue that to the extent it achieves this is more likely to be noticeable by the end user.</p>
<p>An important feature of CSS3 for me is transitions. They lack IE support, but for everybody else transitions allow us to turn a clunky click-clack interface into something far more refined and smooth.</p>
]]></content:encoded>
			<wfw:commentRss>http://shokadu.co.uk/blog/2011/10/21/how-css3-can-enhance-your-web-design/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Using PHP includes to make your code more efficient</title>
		<link>http://shokadu.co.uk/blog/2011/10/14/using-php-includes-to-make-your-code-more-efficient/</link>
		<comments>http://shokadu.co.uk/blog/2011/10/14/using-php-includes-to-make-your-code-more-efficient/#comments</comments>
		<pubDate>Fri, 14 Oct 2011 08:17:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Our Blog]]></category>

		<guid isPermaLink="false">http://shokadu.co.uk/?p=379</guid>
		<description><![CDATA[If you code for WordPress like myself, you may find yourself using a lot of the same code repeatedly across different template files. Whilst WP already includes tags for you to include the sidebar, header etc &#8211; this is where it stops. Which means you may have other code that repeats across files. This wouldn&#8217;t...  <a href="http://shokadu.co.uk/blog/2011/10/14/using-php-includes-to-make-your-code-more-efficient/" title="Read Using PHP includes to make your code more efficient">Read more &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>If you code for WordPress like myself, you may find yourself using a lot of the same code repeatedly across different template files. Whilst WP already includes tags for you to include the sidebar, header etc &#8211; this is where it stops. Which means you may have other code that repeats across files.</p>
<p>This wouldn&#8217;t really matter on a smaller theme but for the theme I&#8217;ve been building whereby a snippet of form code was repeated across 20 pages, it soon did become an issue as updating the code was incredibly tedious.</p>
<p>So, along to the rescue comes the PHP include function. This allows you to include the code of any PHP file you specify within another using a simple tag. So, I place all my form code in one file, and named it &#8220;quoteform.php&#8221;. I then placed this tag in the forms place in the template files where I wanted it to appear:</p>
<pre escaped="true" lang="php" line="1">&lt;?php include("quoteform.php"); ?&gt;</pre>
<p>So, instead of having to maintain the code across 20 different files, I only have to update one file. This is a very basic thing for a developer to do, but if you&#8217;re from a design background like me, rather than development, learning these useful snippets can prove massively helpful in making you more efficient with your code.</p>
]]></content:encoded>
			<wfw:commentRss>http://shokadu.co.uk/blog/2011/10/14/using-php-includes-to-make-your-code-more-efficient/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Trialling a new website using PHP re-directs</title>
		<link>http://shokadu.co.uk/blog/2011/10/13/trialling-a-new-website-using-php-re-directs/</link>
		<comments>http://shokadu.co.uk/blog/2011/10/13/trialling-a-new-website-using-php-re-directs/#comments</comments>
		<pubDate>Thu, 13 Oct 2011 07:57:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Our Blog]]></category>

		<guid isPermaLink="false">http://shokadu.co.uk/?p=376</guid>
		<description><![CDATA[Imagine the scenario. You have Site A, a WordPress site. You then have Site B. The difference in URL is that A is .com and B is .co.uk. B has the same content as A. You&#8217;ve uploaded a new design of the site to B &#8211; now you want to trial it &#8211; but without...  <a href="http://shokadu.co.uk/blog/2011/10/13/trialling-a-new-website-using-php-re-directs/" title="Read Trialling a new website using PHP re-directs">Read more &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>Imagine the scenario. You have Site A, a WordPress site. You then have Site B. The difference in URL is that A is .com and B is .co.uk. B has the same content as A. You&#8217;ve uploaded a new design of the site to B &#8211; now you want to trial it &#8211; but without losing Site A.</p>
<p>So how do you do this? The answer is more complicated than you might think, but in principle is simple. Your first step is you need to fetch the current pages URL &#8211; whatever it is.</p>
<pre escaped="true" lang="php" line="1">&lt;?php
function curPageURL() {
$pageURL = 'http';
if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
$pageURL .= "://";
if ($_SERVER["SERVER_PORT"] != "80") {
$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
} else {
$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
}
return $pageURL;
}
?&gt;</pre>
<p>You can then echo the current pages URL using:</p>
<pre escaped="true" lang="php" line="1">
&lt;?php
  echo curPageURL();
?&gt;</pre>
<p>Then, tie this in with your re-direct script where you take the current pages URL, replace the .com with .co.uk and redirect. All put together, you should end up with something a bit like this:</p>
<pre escaped="true" lang="php" line="1">
&lt;?php
function curPageURL() {
 $pageURL = 'http';
 if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
 $pageURL .= "://";
 if ($_SERVER["SERVER_PORT"] != "80") {
  $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
 } else {
  $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
 }
 return $pageURL;
}

$old_url = curPageURL();
$new_url = str_replace('.com', '.co.uk', $old_url);
header("Location: ".$new_url);
exit();
?&gt;</pre>
<p>You then paste that code at the very top of your header.php file in your theme folder. Don&#8217;t worry, you won&#8217;t lose access to your Dashboard for Site A because the script is only being used on the actual site. So you can remove it just as quickly as you added it.</p>
<p>There are drawbacks. Firstly, I&#8217;d strongly advise you only use this on a short term basis. It&#8217;s not instant, there&#8217;s a slight pause when re-directing. Secondly, I&#8217;m not right now absolutely sure of the implications on SEO &#8211; another reason why I&#8217;d only use it short term. If you need permanent redirects, always use a 301 redirect &#8211; not a script like this.</p>
<p>However, as a method of quickly and easily trialling a new copy of your site on an alternate domain this is very useful. I will only have this active for 24-48 hours, by which time I should hopefully have enough information on whether the new site is performing as expected and if there are any problems. If all goes well, I will point the .com domain to the .co.uk hosting (rather than a redirect), remove the current .com hosting, setup the new .com hosting and when the new .com site is ready, point the .com to it. Phew!</p>
]]></content:encoded>
			<wfw:commentRss>http://shokadu.co.uk/blog/2011/10/13/trialling-a-new-website-using-php-re-directs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Beautiful CSS3 buttons</title>
		<link>http://shokadu.co.uk/blog/2011/10/10/beautiful-css3-buttons/</link>
		<comments>http://shokadu.co.uk/blog/2011/10/10/beautiful-css3-buttons/#comments</comments>
		<pubDate>Mon, 10 Oct 2011 10:47:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Our Blog]]></category>

		<guid isPermaLink="false">http://shokadu.co.uk/?p=371</guid>
		<description><![CDATA[Why are you still using Photoshop to make buttons beautiful?! Here are some buttons I&#8217;ve made that utilize CSS3 to make them stunning. Browser compatibility is good &#8211; in IE8 the buttons do not look quite as good but are more than passable enough and still usable. In all modern browsers the buttons look is...  <a href="http://shokadu.co.uk/blog/2011/10/10/beautiful-css3-buttons/" title="Read Beautiful CSS3 buttons">Read more &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>Why are you still using Photoshop to make buttons beautiful?!</p>
<p>Here are some buttons I&#8217;ve made that utilize CSS3 to make them stunning. Browser compatibility is good &#8211; in IE8 the buttons do not look quite as good but are more than passable enough and still usable. In all modern browsers the buttons look is consistent, however remember that IE does not support transitions.</p>
<p>Please note that the orange button is used on a commercial website &#8211; so I kindly ask you don&#8217;t use it in a commercial project, especially anything to do with aviation/travel. Having said that, I can&#8217;t copyright code &#8211; so take from that what you will&#8230;</p>
<p>Whilst copyright applies to the look of these buttons within a context &#8211; I cannot copyright the code itself. Take from that what you will &#8211; just be careful!</p>
<p><a href="http://jsfiddle.net/brightonmike/qpwzn/5/">http://jsfiddle.net/brightonmike/qpwzn/5/</a></p>
<p><iframe style="width: 100%; height: 300px" src="http://jsfiddle.net/brightonmike/qpwzn/5/embedded/result"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://shokadu.co.uk/blog/2011/10/10/beautiful-css3-buttons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enhancing Usability</title>
		<link>http://shokadu.co.uk/blog/2011/10/05/enhancing-usability/</link>
		<comments>http://shokadu.co.uk/blog/2011/10/05/enhancing-usability/#comments</comments>
		<pubDate>Wed, 05 Oct 2011 12:10:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General News]]></category>
		<category><![CDATA[Our Blog]]></category>

		<guid isPermaLink="false">http://shokadu.co.uk/?p=356</guid>
		<description><![CDATA[A big part of improving the new JBD website was to enhance the usability, most primarily of the quote request form. Objectives were: Fast and easy. Businessmen do not have time to fill out long complex forms. Live validation. Let people know they&#8217;ve made a mistake as soon as possible. Saves time correcting user mistakes. Helpful. Provide...  <a href="http://shokadu.co.uk/blog/2011/10/05/enhancing-usability/" title="Read Enhancing Usability">Read more &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>A big part of improving the new JBD website was to enhance the usability, most primarily of the quote request form. Objectives were:</p>
<ul>
<li>Fast and easy. Businessmen do not have time to fill out long complex forms.</li>
<li>Live validation. Let people know they&#8217;ve made a mistake as soon as possible. Saves time correcting user mistakes.</li>
<li>Helpful. Provide features that make it quicker and easier for the user to fill in the form.</li>
</ul>
<p>I wanted our quote form to be the fastest, quickest, easiest quote request form in the industry. The first way of doing this was simple &#8211; <strong>put the form on every page possible</strong>.</p>
<p>This saves the user ever having to actually find your form. Instead, no matter what page they are on, a form will be available for them to use. Obviously, we don&#8217;t want the actual pages content to be sacrificed &#8211; so this is where the idea for the &#8220;mid-section&#8221; came about.</p>
<p>The mid section is a bar underneath the main navigation that on almost all pages contains the quote form. The quote form is hidden but clicking the &#8220;Request Quote&#8221; form triggers a jquery action that slides the form out in the middle of the page.</p>
<p>This elegant solution means the form is present on almost all pages of the new website, and it ensures the user always has quick access. By hiding the form by default we avoid having a messy form obstructing the page content, showing the form with a simple click on the button is an elegant and practical workaround.</p>
<p>Having a div hidden, and exposing on click, is very simple.</p>
<pre lang="javascript">   $(document).ready(function(){

                $("#quoteLink").click(function(){

                        $("#homequoteFormcontainer").slideDown("slow");

                });

                $("#quoteLinkClose").click(function(){
                    $("#homequoteFormcontainer").slideUp("slow");
                });

            });

            function closeForm(){
                $("#messageSent").show("slow");
                setTimeout('$("#messageSent").hide();$("#homequoteFormcontainer").slideUp("slow")', 2000);
           }</pre>
<p>With my design, I wanted the close button to be separate. However you could quite easily change the state of the open button to have it close the div too.</p>
]]></content:encoded>
			<wfw:commentRss>http://shokadu.co.uk/blog/2011/10/05/enhancing-usability/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Hello, world.</title>
		<link>http://shokadu.co.uk/blog/2011/10/04/hello-world/</link>
		<comments>http://shokadu.co.uk/blog/2011/10/04/hello-world/#comments</comments>
		<pubDate>Tue, 04 Oct 2011 14:04:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Our Blog]]></category>

		<guid isPermaLink="false">http://shokadu.co.uk/?p=345</guid>
		<description><![CDATA[Welcome to my dev blog. This is where I&#8217;ll be writing about the challenges I face as a front-end developer.]]></description>
			<content:encoded><![CDATA[<p>Welcome to my dev blog. This is where I&#8217;ll be writing about the challenges I face as a front-end developer.</p>
]]></content:encoded>
			<wfw:commentRss>http://shokadu.co.uk/blog/2011/10/04/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
