<?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>John Crumpton &#187; code</title>
	<atom:link href="http://www.johncrumpton.com/category/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.johncrumpton.com</link>
	<description></description>
	<lastBuildDate>Tue, 11 May 2010 20:57:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Increase number of rings on your o2 blackberry</title>
		<link>http://www.johncrumpton.com/increase-number-of-rings-on-your-o2-blackberry/</link>
		<comments>http://www.johncrumpton.com/increase-number-of-rings-on-your-o2-blackberry/#comments</comments>
		<pubDate>Mon, 19 Oct 2009 20:35:11 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[code]]></category>

		<guid isPermaLink="false">http://www.johncrumpton.com/?p=172</guid>
		<description><![CDATA[My Blackberry pearl will only ring twice before going to voicemail. Which is never enough time to answer the call! 
You can however adjust the amount of time (in seconds) that a number will ring if you dial the following code (press the green button then dial):
**61*901*11*25#
The last digits are the seconds before going to [...]]]></description>
			<content:encoded><![CDATA[<p>My Blackberry pearl will only ring twice before going to voicemail. Which is never enough time to answer the call! </p>
<p>You can however adjust the amount of time (in seconds) that a number will ring if you dial the following code (press the green button then dial):</p>
<p><strong>**61*901*11*25#</strong></p>
<p>The last digits are the seconds before going to voicemail (25 seconds in this instance). The default is 15 seconds.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.johncrumpton.com/increase-number-of-rings-on-your-o2-blackberry/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joomla hide breadcrumbs on specific pages</title>
		<link>http://www.johncrumpton.com/joomla-hide-breadcrumbs-on-specific-pages/</link>
		<comments>http://www.johncrumpton.com/joomla-hide-breadcrumbs-on-specific-pages/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 08:54:14 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[joomla]]></category>

		<guid isPermaLink="false">http://www.johncrumpton.com/?p=153</guid>
		<description><![CDATA[There are times when you want to hide Joomla&#8217;s breadcrumb, for example the homepage or search results.
In your template add the following where you want your breadcrumbs to appear:

&#60;div id=&#34;breadcrumbs&#34;&#62;
&#60;?php
if ( ( $_REQUEST['option'] != &#34;com_frontpage&#34; ) and ( $_REQUEST['option'] != &#34;com_search&#34; ) and ( $_REQUEST['option'] != &#34;com_xmap&#34; ) ) { ?&#62;
    &#60;jdoc:include [...]]]></description>
			<content:encoded><![CDATA[<p>There are times when you want to hide Joomla&#8217;s breadcrumb, for example the homepage or search results.</p>
<p>In your template add the following where you want your breadcrumbs to appear:</p>
<pre class="brush: php;">
&lt;div id=&quot;breadcrumbs&quot;&gt;
&lt;?php
if ( ( $_REQUEST['option'] != &quot;com_frontpage&quot; ) and ( $_REQUEST['option'] != &quot;com_search&quot; ) and ( $_REQUEST['option'] != &quot;com_xmap&quot; ) ) { ?&gt;
    &lt;jdoc:include type=&quot;modules&quot; name=&quot;breadcrumbs&quot; /&gt;
     &lt;?php } ?&gt;
&amp;nbsp;&lt;/div&gt;
</pre>
<p>This hides the breadcrumb from the home page (com_frontpage) the search results (com_search) and the site map, in this case Xmap (com_xmap). Make sure your breadcrumb mobile appears in the &#8220;breadcrumb&#8221; module position.</p>
<p>To hide a specific page add:</p>
<pre class="brush: php;"> ( $_REQUEST['id'] != &quot;8&quot; )</pre>
<p>Where 8 is the id of that page. You can also do this for a task as well as an option, just adjust $_REQUEST['option'] to $_REQUEST['task'].</p>
]]></content:encoded>
			<wfw:commentRss>http://www.johncrumpton.com/joomla-hide-breadcrumbs-on-specific-pages/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Joomla search results uses homepage template</title>
		<link>http://www.johncrumpton.com/joomla-search-results-homepage-template/</link>
		<comments>http://www.johncrumpton.com/joomla-search-results-homepage-template/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 10:52:11 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[joomla]]></category>

		<guid isPermaLink="false">http://www.johncrumpton.com/?p=116</guid>
		<description><![CDATA[If you use several templates on your Joomla site, such as a homepage template and a global template, you&#8217;ll know that the search results page irritatingly uses the homepage template and not your global template.
It is possible to change this by adding a hidden field to the search module, here&#8217;s how:
Within your homepage template folder [...]]]></description>
			<content:encoded><![CDATA[<p>If you use several templates on your Joomla site, such as a homepage template and a global template, you&#8217;ll know that the search results page irritatingly uses the homepage template and not your global template.</p>
<p>It is possible to change this by adding a hidden field to the search module, here&#8217;s how:</p>
<p>Within your homepage template folder create a new directory called &#8220;html&#8221; and then &#8220;mod_search&#8221;</p>
<p>Copy the &#8220;default.php&#8221; file from /modules/mod_search/tmpl/ into your newly created &#8220;mod_search&#8221; folder under your template folder.</p>
<p>Open this file at near the bottom just before the end of the form add:</p>
<pre class="brush: xml;"> &lt;input type=&quot;hidden&quot; name=&quot;Itemid&quot; value=&quot;2&quot; /&gt;</pre>
<p>The value refers to the menu item, we need to create a new hidden menu in the administrator, add a search menu item, make a note of the menu&#8217;s Item ID, then add this to the above code under the value.</p>
<p>Don&#8217;t publish the hidden menu in the module manager, we&#8217;ve just creating this to get the Item ID of the search page.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.johncrumpton.com/joomla-search-results-homepage-template/feed/</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
		<item>
		<title>Popular email clients</title>
		<link>http://www.johncrumpton.com/popular-email-clients/</link>
		<comments>http://www.johncrumpton.com/popular-email-clients/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 18:26:34 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[code]]></category>

		<guid isPermaLink="false">http://www.johncrumpton.com/?p=90</guid>
		<description><![CDATA[A leading enewsletter provider has analysed the last six months of data covering more than 250 million emails opens and compiled the most popular email clients as of February 2009.
33.0% Outlook 2000, 2003, Express
16.5% Yahoo! Mail
16.0% Hotmail
6.1% Outlook 2007
5.5% Apple Mail 3
5.1% Gmail
3.6% iPhone 2.0
2.1% Apple Mail 2
1.7% Lotus Notes 6-7
1.7% AOL Mail
It&#8217;s intersting to [...]]]></description>
			<content:encoded><![CDATA[<p>A leading enewsletter provider has analysed the last six months of data covering more than 250 million emails opens and compiled the most popular email clients as of February 2009.</p>
<p>33.0% Outlook 2000, 2003, Express<br />
16.5% Yahoo! Mail<br />
16.0% Hotmail<br />
6.1% Outlook 2007<br />
5.5% Apple Mail 3<br />
5.1% Gmail<br />
3.6% iPhone 2.0<br />
2.1% Apple Mail 2<br />
1.7% Lotus Notes 6-7<br />
1.7% AOL Mail</p>
<p>It&#8217;s intersting to note than Outlook 2000, Hotmail and Yahoo are the most popular, as coding enewsletters is slightly different for each system. Ensure you test your enewsletter in each one.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.johncrumpton.com/popular-email-clients/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Good HTML typography &#8211; special characters</title>
		<link>http://www.johncrumpton.com/good-html-typography-specialcharacters/</link>
		<comments>http://www.johncrumpton.com/good-html-typography-specialcharacters/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 10:51:36 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[code]]></category>

		<guid isPermaLink="false">http://www.johncrumpton.com/?p=35</guid>
		<description><![CDATA[Some useful HTML codes for making a website look good, best used at larger sizes for example in headings. 
Just insert the code instead of the usual character. The most useful being the apostrophe or right single quote  &#8217; which looks alot better than the prime or rat&#8217;s tooth &#39; as it&#8217;s sometimes called.
&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>Some useful HTML codes for making a website look good, best used at larger sizes for example in headings. </p>
<p>Just insert the code instead of the usual character. The most useful being the apostrophe or right single quote  &rsquo; which looks alot better than the prime or rat&#8217;s tooth &#39; as it&#8217;s sometimes called.</p>
<p><span class="codeLarge">&rsquo;s</span> compared with the usual <span class="codeLarge">&#39;s</span></p>
<table>
<tr class="tableHeading">
<th class="tableDescription" scope="col"> </th>
<th class="tableCode" scope="col"> </th>
<th class="tableCodeOutput" scope="col"></th>
</tr>
<tbody>
<tr>
<td>Left single quote:</td>
<td><code>&amp;lsquo;</code></td>
<td><span class="codeLarge">&lsquo;</span></td>
</tr>
<tr>
<td>Right single quote:</td>
<td><code>&amp;rsquo;</code></td>
<td><span class="codeLarge">&rsquo;</span> 	</td>
</tr>
<tr>
<td>Left double quote:</td>
<td><code>&amp;ldquo;</code></td>
<td><span class="codeLarge">&ldquo;</span> </td>
</tr>
<tr>
<td>Right double quote:</td>
<td><code>&amp;rdquo;</code></td>
<td><span class="codeLarge"> &rdquo;</span> </td>
</tr>
<tr>
<td>Multiplication sign:</td>
<td><code>&amp;times;</code></td>
<td><span class="codeLarge"> &times;</span></td>
</tr>
<tr>
<td>Minus sign: </td>
<td><code>&amp;minus;</code></td>
<td><span class="codeLarge">  &minus;</span></td>
</tr>
<tr>
<td>Registered trademark: </td>
<td><code>&amp;reg;</code></td>
<td><span class="codeLarge">&reg;</span></td>
</tr>
<tr>
<td>Copyright:	</td>
<td><code>&amp;copy;</code></td>
<td><span class="codeLarge">&copy;</span> </td>
</tr>
<tr>
<td>Trademark sign:	</td>
<td><code>&amp;trade;</code></td>
<td><span class="codeLarge">&trade;</span></td>
</tr>
<tr>
<td>Pound sterling: </td>
<td><code>&amp;pound;</code></td>
<td><span class="codeLarge">&pound;</span></td>
</tr>
<tr>
<td>En dash:	 </td>
<td><code>&amp;ndash;</code></td>
<td><span class="codeLarge">&ndash;</span></td>
</tr>
<tr>
<td>Em dash:	</td>
<td><code>&amp;mdash;</code></td>
<td><span class="codeLarge">&mdash;	</span> </td>
</tr>
<tr>
<td>Ampersand:	</td>
<td><code>&amp;amp;</code></td>
<td><span class="codeLarge"> &amp;</span></td>
</tr>
<tr>
<td>Ellipsis (dot dot dot):</td>
<td><code>&amp;hellip;</code></td>
<td><span class="codeLarge">&hellip;</span></td>
</tr>
<tr>
<td>Degree sign: </td>
<td><code>&amp;deg;</code></td>
<td><span class="codeLarge">&deg;</span></td>
</tr>
<tr>
<td>Em space (shown pink): </td>
<td><code>&amp;emsp;</code></td>
<td><span class="codeLarge pink">&emsp;</span></td>
</tr>
<tr>
<td>En space (shown pink): </td>
<td><code>&amp;ensp;</code></td>
<td><span class="codeLarge pink">&ensp;</span></td>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.johncrumpton.com/good-html-typography-specialcharacters/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Copyright notice with current year</title>
		<link>http://www.johncrumpton.com/copyright-notice-with-current-year/</link>
		<comments>http://www.johncrumpton.com/copyright-notice-with-current-year/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 21:54:47 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[copyright]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[footer]]></category>

		<guid isPermaLink="false">http://www.johncrumpton.com/?p=5</guid>
		<description><![CDATA[This is a handy piece of javascript code that adds the last two digits of the current year to the footer of a website. This saves time as you don&#8217;t have to keep updating the footer on all your pages.
&#38;copy; Company name 2000&#38;ndash;&#60;script type=&#34;text/javascript&#34;&#62;
&#60;!--
var now = (new Date().getFullYear()).toString();
var theYear = now.substring(now.length, 2);
document.writeln(theYear,&#34;.&#34;);
// --&#62;
&#60;/script&#62;


&#169; Company name [...]]]></description>
			<content:encoded><![CDATA[<p>This is a handy piece of javascript code that adds the last two digits of the current year to the footer of a website. This saves time as you don&#8217;t have to keep updating the footer on all your pages.</p>
<pre class="brush: jscript;">&amp;copy; Company name 2000&amp;ndash;&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
var now = (new Date().getFullYear()).toString();
var theYear = now.substring(now.length, 2);
document.writeln(theYear,&quot;.&quot;);
// --&gt;
&lt;/script&gt;</pre>
<p><br/></p>
<pre lang="Javascript" line="n" colla="+">
&copy; Company name 2000&ndash;<script type="text/javascript">
<!--
var now = (new Date().getFullYear()).toString();
var theYear = now.substring(now.length, 2);
document.writeln(theYear,".");
// -->
</script></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.johncrumpton.com/copyright-notice-with-current-year/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
