<?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>Nanothree.net</title>
	<atom:link href="http://www.nanothree.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nanothree.net</link>
	<description>Freelance website development in Manchester, UK</description>
	<lastBuildDate>Mon, 11 Jul 2011 22:43:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
		<item>
		<title>phpBB3 Topic Tagging</title>
		<link>http://www.nanothree.net/2010/phpbb3-topic-tagging/</link>
		<comments>http://www.nanothree.net/2010/phpbb3-topic-tagging/#comments</comments>
		<pubDate>Sun, 19 Sep 2010 11:17:27 +0000</pubDate>
		<dc:creator>nanothree</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[phpBB3]]></category>
		<category><![CDATA[tagging]]></category>
		<category><![CDATA[web2.0]]></category>

		<guid isPermaLink="false">http://www.nanothree.net/?p=118</guid>
		<description><![CDATA[A mod that allows users to tag topics for phpBB3. Formerly phpBBFolk, it has a new name, a new home and has been updated to support the latest version of phpBB3.

Check it out. <a href="http://www.nanothree.net/2010/phpbb3-topic-tagging/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>After over 2 years of no development, on what seemed to be an abandoned project that everyone thought was dead, its back. phpBB Topic Tagging</p>
<p style="text-align: center;"><img class="aligncenter" title="phpBB Topic Tagging" src="http://www.nanothree.net/wp-content/uploads/2010/09/phpbb_topic_tagging_preview-300x189.png" alt="Preview of topic tagging screens" width="300" height="189" /></p>
<p>After lot of searching i have managed to resurrect an old mod i created for phpBB that allows users to tag topics. Originally called phpBBFolk (but now a much less cryptic &#8220;phpBB Topic Tagging&#8221;) it was getting a lot of use by others but something went wrong and it seemed like it was lost forever.</p>
<p>It now has a new home (here) and is hosted on <a href="http://github.com/veganista/phpBB3-Topic-Tagging">GitHub </a>so that it won&#8217;t get lost again and people can easily help improve it.</p>
<p>The original thread for the mod was this topic but this has since been locked, a lot of issues in the later part of the thread are likely to still exist as I dont have time to go back and fix them all, but if people wish to re-post the issues (preferably <a href="http://github.com/veganista/phpBB3-Topic-Tagging/issues">here</a>) then I&#8217;ll be able to get round to them.</p>
<p>So, the mod allows logged in users to tag posts and shows tag clouds on the board, one for the board as a whole and for individual forums which only shows tags in that forum.</p>
<p>Users enter tags by entering the tags at the bottom of the post, their is a suggestions box that auto-completes with tags already in the system, this will reduce the number of duplicate tags that find their way in. Check out the demo to see what it does, you will need to register to use the board.</p>
<h2>Download</h2>
<p>You can <a href="http://github.com/veganista/phpBB3-Topic-Tagging/zipball/master">download the mod here</a> or you can clone the project from <a href="http://github.com/veganista/phpBB3-Topic-Tagging">GitHub</a></p>
<p><strong>The mod is still in the beta stage so no responsibility is taken if something goes wrong.</strong></p>
<div><span style="color: #0000ee; -webkit-text-decorations-in-effect: underline;"><br />
</span></div>
]]></content:encoded>
			<wfw:commentRss>http://www.nanothree.net/2010/phpbb3-topic-tagging/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Only Showing Content &amp; Comments To Registered Users In WordPress</title>
		<link>http://www.nanothree.net/2010/only-showing-content-comments-to-registered-users-in-wordpress/</link>
		<comments>http://www.nanothree.net/2010/only-showing-content-comments-to-registered-users-in-wordpress/#comments</comments>
		<pubDate>Fri, 06 Aug 2010 19:08:54 +0000</pubDate>
		<dc:creator>nanothree</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.nanothree.net/blog/?p=63</guid>
		<description><![CDATA[Recently one of my clients asked if it was possible to only show content to registered users on a WordPress site.

This post will show you how <a href="http://www.nanothree.net/2010/only-showing-content-comments-to-registered-users-in-wordpress/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Recently one of my clients asked if it was possible to only show content to registered users on a WordPress site.</p>
<p>The solution is very simple using WordPress&#8217; filter system.</p>
<div class="codesnip-container" >
<div class="php codesnip" style="font-family:monospace;">add_filter<span class="br0">&#40;</span><span class="st0">&quot;the_content&quot;</span><span class="sy0">,</span> <span class="st0">&quot;block_content&quot;</span> <span class="br0">&#41;</span><span class="sy0">;</span><br />
add_filter<span class="br0">&#40;</span><span class="st0">&quot;comment_text&quot;</span><span class="sy0">,</span> <span class="st0">&quot;block_comment&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span></p>
<p><span class="kw2">function</span> block_content<span class="br0">&#40;</span><span class="re0">$content</span><span class="br0">&#41;</span><span class="br0">&#123;</span><br />
<span class="kw1">if</span><span class="br0">&#40;</span><span class="sy0">!</span>is_user_logged_in<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#123;</span><br />
<span class="kw1">return</span> __<span class="br0">&#40;</span> <span class="st_h">&#8216;You must be logged in to view content&#8217;</span> <span class="br0">&#41;</span><span class="sy0">;</span><br />
<span class="br0">&#125;</span><span class="kw1">else</span><span class="br0">&#123;</span><br />
<span class="kw1">return</span> <span class="re0">$content</span><span class="sy0">;</span><br />
<span class="br0">&#125;</span><br />
<span class="br0">&#125;</span><br />
<span class="kw2">function</span> block_comment<span class="br0">&#40;</span><span class="re0">$content</span><span class="br0">&#41;</span><span class="br0">&#123;</span><br />
<span class="kw1">if</span><span class="br0">&#40;</span><span class="sy0">!</span>is_user_logged_in<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#123;</span><br />
<span class="kw1">return</span> __<span class="br0">&#40;</span> <span class="st_h">&#8216;You must be logged in to view comments&#8217;</span> <span class="br0">&#41;</span><span class="sy0">;</span><br />
<span class="br0">&#125;</span><span class="kw1">else</span><span class="br0">&#123;</span><br />
<span class="kw1">return</span> <span class="re0">$content</span><span class="sy0">;</span><br />
<span class="br0">&#125;</span><br />
<span class="br0">&#125;</span></div>
</div>
<p>Putting   that snippet in your theme&#8217;s functions.php file will swap comment, page and post content with the messages above.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nanothree.net/2010/only-showing-content-comments-to-registered-users-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Template is missing</title>
		<link>http://www.nanothree.net/2010/wordpress-template-is-missing/</link>
		<comments>http://www.nanothree.net/2010/wordpress-template-is-missing/#comments</comments>
		<pubDate>Mon, 14 Jun 2010 09:16:36 +0000</pubDate>
		<dc:creator>nanothree</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.nanothree.net/blog/?p=57</guid>
		<description><![CDATA[Recently while working on a custom WordPress theme I kept running into the issue where my theme would become unusable and in my Appearance section of the back end I would get the error &#8220;Template is missing&#8221; for my theme. &#8230; <a href="http://www.nanothree.net/2010/wordpress-template-is-missing/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Recently while working on a custom WordPress theme I kept running into the issue where my theme would become unusable and in my Appearance section of the back end I would get the error &#8220;Template is missing&#8221; for my theme.</p>
<p>Often you get this error when you are trying to inherit from a theme but the theme cannot be found,  in my case my theme wasn&#8217;t inheriting from another so I couldn&#8217;t work out why I was getting this error.</p>
<p>Eventually after a lot of careful cross checking I figured it out</p>
<p>I had to remove any comments that contained the string &#8220;TEMPLATE:&#8221;,   this may also be caused by the lower case &#8220;template:&#8221; but I didn&#8217;t test this.</p>
<p>I had comments like this in as part of my stylesheet:</p>
<div class="codesnip-container" >
<div class="css codesnip" style="font-family:monospace;"><span class="coMULTI">/* TEMPLATE: Sidebar content */</span></div>
</div>
<p>This was causing WordPress to look for a theme that didn&#8217;t exist.</p>
<p>I assumed that WordPress would only look in the top comment block for the theme information but i was wrong&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nanothree.net/2010/wordpress-template-is-missing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Turning CakePHP&#8217;s Pagination output to a list</title>
		<link>http://www.nanothree.net/2010/turning-cakephps-pagination-output-to-a-list/</link>
		<comments>http://www.nanothree.net/2010/turning-cakephps-pagination-output-to-a-list/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 20:39:01 +0000</pubDate>
		<dc:creator>nanothree</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[development]]></category>

		<guid isPermaLink="false">http://www.nanothree.net/dev/wordpress/?p=34</guid>
		<description><![CDATA[I&#8217;ve spent the last few hours investigating how to style the out produced by cakes $paginator helper. I managed to get a digg style output for my pagination by styling the output produced by default, but because of the number &#8230; <a href="http://www.nanothree.net/2010/turning-cakephps-pagination-output-to-a-list/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve spent the last few hours investigating how to style the out produced by cakes $paginator helper.</p>
<p>I managed to get a digg style output for my pagination by styling the output produced by default, but because of the number of divs and spans that had to be floated i thought that it would be much easier to style if it were a list.</p>
<p>The default output generated by the Bake scaffolding looks something like this</p>
<p style="text-align: center;"><a href="http://www.nanothree.net/wp-content/uploads/2010/03/default-pagination.png"><img class="aligncenter size-full wp-image-38" title="CakePHP Default Pagination" src="http://www.nanothree.net/wp-content/uploads/2010/03/default-pagination.png" alt="CakePHP Default Pagination" /></a></p>
<p>and the html like</p>
<div class="codesnip-container" >
<div class="html4strict codesnip" style="font-family:monospace;"><span class="sc2">&lt;<a href="http://december.com/html/4/element/div.html"><span class="kw2">div</span></a> <span class="kw3">class</span><span class="sy0">=</span><span class="st0">&quot;paging&quot;</span>&gt;</span><br />
<span class="sc2">&lt;<a href="http://december.com/html/4/element/div.html"><span class="kw2">div</span></a> <span class="kw3">class</span><span class="sy0">=</span><span class="st0">&quot;disabled&quot;</span>&gt;&lt;&lt; previous&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/div.html"><span class="kw2">div</span></a>&gt;</span><br />
<span class="sc2">&lt;<a href="http://december.com/html/4/element/span.html"><span class="kw2">span</span></a> <span class="kw3">class</span><span class="sy0">=</span><span class="st0">&quot;current&quot;</span>&gt;</span>1<span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/span.html"><span class="kw2">span</span></a>&gt;</span> |<br />
<span class="sc2">&lt;<a href="http://december.com/html/4/element/span.html"><span class="kw2">span</span></a>&gt;&lt;<a href="http://december.com/html/4/element/a.html"><span class="kw2">a</span></a> <span class="kw3">href</span><span class="sy0">=</span><span class="st0">&quot;/cakephp/cms/admin/blog/posts/index/page:2&quot;</span>&gt;</span>2<span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/a.html"><span class="kw2">a</span></a>&gt;&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/span.html"><span class="kw2">span</span></a>&gt;</span> |<br />
<span class="sc2">&lt;<a href="http://december.com/html/4/element/span.html"><span class="kw2">span</span></a>&gt;&lt;<a href="http://december.com/html/4/element/a.html"><span class="kw2">a</span></a> <span class="kw3">href</span><span class="sy0">=</span><span class="st0">&quot;/cakephp/cms/admin/blog/posts/index/page:3&quot;</span>&gt;</span>3<span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/a.html"><span class="kw2">a</span></a>&gt;&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/span.html"><span class="kw2">span</span></a>&gt;</span><br />
<span class="sc2">&lt;<a href="http://december.com/html/4/element/a.html"><span class="kw2">a</span></a> <span class="kw3">href</span><span class="sy0">=</span><span class="st0">&quot;/cakephp/cms/admin/blog/posts/index/page:2&quot;</span>&gt;</span>next &gt;&gt;<span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/a.html"><span class="kw2">a</span></a>&gt;</span><br />
<span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/div.html"><span class="kw2">div</span></a>&gt;</span></div>
</div>
<p>This can be quite easily changed to a list output by using the $options parameter of the $paginator->numbers() function.</p>
<p>In your views where you are using pagination find the call to the $paginator->numbers() function. On my 1.2.6 version of CakePHP it looks like this</p>
<div class="codesnip-container" >
<div class="php codesnip" style="font-family:monospace;">numbers<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span><span class="sy1">?&gt;</span></div>
</div>
<p>Change this to the following</p>
<div class="codesnip-container" >
<div class="php codesnip" style="font-family:monospace;"><a href="http://www.php.net/prev"><span class="kw3">prev</span></a><span class="br0">&#40;</span><span class="st_h">&#8216;&lt;&lt;&#8217;</span><span class="sy0">.</span>__<span class="br0">&#40;</span><span class="st_h">&#8216;previous&#8217;</span><span class="sy0">,</span> <span class="kw4">true</span><span class="br0">&#41;</span><span class="sy0">,</span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">,</span> <span class="kw4">null</span><span class="sy0">,</span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">&#40;</span><span class="st_h">&#8216;class&#8217;</span><span class="sy0">=&gt;</span><span class="st_h">&#8216;disabled&#8217;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span><span class="sy1">?&gt;</span><br />
numbers<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span><span class="sy1">?&gt;</span><br />
<a href="http://www.php.net/next"><span class="kw3">next</span></a><span class="br0">&#40;</span>__<span class="br0">&#40;</span><span class="st_h">&#8216;next&#8217;</span><span class="sy0">,</span> <span class="kw4">true</span><span class="br0">&#41;</span><span class="sy0">.</span><span class="st_h">&#8216; &gt;&gt;&#8217;</span><span class="sy0">,</span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">,</span> <span class="kw4">null</span><span class="sy0">,</span> <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">&#40;</span><span class="st_h">&#8216;class&#8217;</span> <span class="sy0">=&gt;</span> <span class="st_h">&#8216;disabled&#8217;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span><span class="sy1">?&gt;</span></div>
</div>
<p>This will then produce output similar to this (it depends what page your on)</p>
<div class="codesnip-container" >
<div class="html4strict codesnip" style="font-family:monospace;"><span class="sc2">&lt;<a href="http://december.com/html/4/element/div.html"><span class="kw2">div</span></a> <span class="kw3">class</span><span class="sy0">=</span><span class="st0">&quot;paging&quot;</span>&gt;</span><br />
<span class="sc2">&lt;<a href="http://december.com/html/4/element/a.html"><span class="kw2">a</span></a> <span class="kw3">href</span><span class="sy0">=</span><span class="st0">&quot;/cakephp/cms/blog/posts/index/page:1&quot;</span>&gt;&lt;&lt; previous&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/a.html"><span class="kw2">a</span></a>&gt;</span><br />
<span class="sc2">&lt;<a href="http://december.com/html/4/element/ul.html"><span class="kw2">ul</span></a> <span class="kw3">class</span><span class="sy0">=</span><span class="st0">&quot;pagination&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="sc2">&lt;<a href="http://december.com/html/4/element/li.html"><span class="kw2">li</span></a>&gt;&lt;<a href="http://december.com/html/4/element/a.html"><span class="kw2">a</span></a> <span class="kw3">href</span><span class="sy0">=</span><span class="st0">&quot;/cakephp/cms/blog/posts/index/page:1&quot;</span>&gt;</span>1<span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/a.html"><span class="kw2">a</span></a>&gt;&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/li.html"><span class="kw2">li</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="sc2">&lt;<a href="http://december.com/html/4/element/li.html"><span class="kw2">li</span></a> <span class="kw3">class</span><span class="sy0">=</span><span class="st0">&quot;current&quot;</span>&gt;</span>2<span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/li.html"><span class="kw2">li</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="sc2">&lt;<a href="http://december.com/html/4/element/li.html"><span class="kw2">li</span></a>&gt;&lt;<a href="http://december.com/html/4/element/a.html"><span class="kw2">a</span></a> <span class="kw3">href</span><span class="sy0">=</span><span class="st0">&quot;/cakephp/cms/blog/posts/index/page:3&quot;</span>&gt;</span>3<span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/a.html"><span class="kw2">a</span></a>&gt;&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/li.html"><span class="kw2">li</span></a>&gt;</span><br />
<span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/ul.html"><span class="kw2">ul</span></a>&gt;</span><br />
<span class="sc2">&lt;<a href="http://december.com/html/4/element/a.html"><span class="kw2">a</span></a> <span class="kw3">href</span><span class="sy0">=</span><span class="st0">&quot;/cakephp/cms/blog/posts/index/page:3&quot;</span>&gt;</span>next &gt;&gt;<span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/a.html"><span class="kw2">a</span></a>&gt;</span><br />
<span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/div.html"><span class="kw2">div</span></a>&gt;</span></div>
</div>
<p>To style this digg-stylee you can use the following CSS, just add it to your apps main CSS file.</p>
<div class="codesnip-container" >
<div class="css codesnip" style="font-family:monospace;">div<span class="re1">.paging</span> a<span class="br0">&#123;</span><br />
<span class="kw1">border</span><span class="sy0">:</span><span class="kw2">solid</span> <span class="re3">1px</span> <span class="re0">#9aafe5</span><span class="sy0">;</span><br />
<span class="kw1">margin-right</span><span class="sy0">:</span><span class="re3">2px</span><span class="sy0">;</span><br />
<span class="kw1">display</span><span class="sy0">:</span><span class="kw2">block</span><span class="sy0">;</span><br />
<span class="kw1">float</span><span class="sy0">:</span><span class="kw1">left</span><span class="sy0">;</span><br />
<span class="kw1">padding</span><span class="sy0">:</span><span class="re3">3px</span> <span class="re3">4px</span><span class="sy0">;</span><br />
<span class="br0">&#125;</span><br />
ul<span class="re1">.pagination</span> li<span class="br0">&#123;</span><br />
<span class="kw1">border</span><span class="sy0">:</span><span class="nu0">0</span><span class="sy0">;</span> <span class="kw1">margin</span><span class="sy0">:</span><span class="nu0">0</span><span class="sy0">;</span> <span class="kw1">padding</span><span class="sy0">:</span><span class="nu0">0</span><span class="sy0">;</span><br />
<span class="kw1">font-size</span><span class="sy0">:</span><span class="re3">11px</span><span class="sy0">;</span><br />
<span class="kw1">list-style</span><span class="sy0">:</span><span class="kw2">none</span><span class="sy0">;</span><br />
<span class="kw1">margin-right</span><span class="sy0">:</span><span class="re3">2px</span><span class="sy0">;</span><br />
<span class="br0">&#125;</span><br />
ul<span class="re1">.pagination</span> a<span class="br0">&#123;</span><br />
<span class="kw1">border</span><span class="sy0">:</span><span class="kw2">solid</span> <span class="re3">1px</span> <span class="re0">#9aafe5</span><span class="sy0">;</span><br />
<span class="kw1">margin-right</span><span class="sy0">:</span><span class="re3">2px</span><span class="sy0">;</span><br />
<span class="kw1">display</span><span class="sy0">:</span><span class="kw2">block</span><span class="sy0">;</span><br />
<span class="br0">&#125;</span><br />
div<span class="re1">.paging</span> div<span class="re1">.disabled</span> <span class="br0">&#123;</span><br />
<span class="kw1">border</span><span class="sy0">:</span><span class="kw2">solid</span> <span class="re3">1px</span> <span class="re0">#DEDEDE</span><span class="sy0">;</span><br />
<span class="kw1">color</span><span class="sy0">:</span><span class="re0">#888888</span><span class="sy0">;</span><br />
<span class="kw1">display</span><span class="sy0">:</span><span class="kw2">block</span><span class="sy0">;</span><br />
<span class="kw1">float</span><span class="sy0">:</span><span class="kw1">left</span><span class="sy0">;</span><br />
<span class="kw1">font-weight</span><span class="sy0">:</span><span class="kw2">bold</span><span class="sy0">;</span><br />
<span class="kw1">margin-right</span><span class="sy0">:</span><span class="re3">2px</span><span class="sy0">;</span><br />
<span class="kw1">padding</span><span class="sy0">:</span><span class="re3">3px</span> <span class="re3">4px</span><span class="sy0">;</span><br />
<span class="br0">&#125;</span><br />
ul<span class="re1">.pagination</span> <span class="re1">.next</span> a<span class="sy0">,</span><br />
ul<span class="re1">.pagination</span> <span class="re1">.previous</span> a <span class="br0">&#123;</span><br />
<span class="kw1">font-weight</span><span class="sy0">:</span><span class="kw2">bold</span><span class="sy0">;</span><br />
<span class="br0">&#125;</span><br />
ul<span class="re1">.pagination</span> .current<span class="br0">&#123;</span><br />
<span class="kw1">background</span><span class="sy0">:</span><span class="re0">#2e6ab1</span><span class="sy0">;</span><br />
<span class="kw1">color</span><span class="sy0">:</span><span class="re0">#FFFFFF</span><span class="sy0">;</span><br />
<span class="kw1">font-weight</span><span class="sy0">:</span><span class="kw2">bold</span><span class="sy0">;</span><br />
<span class="kw1">display</span><span class="sy0">:</span><span class="kw2">block</span><span class="sy0">;</span><br />
<span class="kw1">float</span><span class="sy0">:</span><span class="kw1">left</span><span class="sy0">;</span><br />
<span class="kw1">padding</span><span class="sy0">:</span><span class="re3">4px</span> <span class="re3">6px</span><span class="sy0">;</span><br />
<span class="br0">&#125;</span><br />
ul<span class="re1">.pagination</span> a<span class="re2">:link</span><span class="sy0">,</span><br />
ul<span class="re1">.pagination</span> a<span class="re2">:visited </span><span class="br0">&#123;</span><br />
<span class="kw1">color</span><span class="sy0">:</span><span class="re0">#0e509e</span><span class="sy0">;</span><br />
<span class="kw1">display</span><span class="sy0">:</span><span class="kw2">block</span><span class="sy0">;</span><br />
<span class="kw1">float</span><span class="sy0">:</span><span class="kw1">left</span><span class="sy0">;</span><br />
<span class="kw1">padding</span><span class="sy0">:</span><span class="re3">3px</span> <span class="re3">6px</span><span class="sy0">;</span><br />
<span class="kw1">text-decoration</span><span class="sy0">:</span><span class="kw2">none</span><span class="sy0">;</span><br />
<span class="br0">&#125;</span><br />
ul<span class="re1">.pagination</span> a<span class="re2">:hover</span><span class="br0">&#123;</span><br />
<span class="kw1">border</span><span class="sy0">:</span><span class="kw2">solid</span> <span class="re3">1px</span> <span class="re0">#0e509e</span><br />
<span class="br0">&#125;</span></div>
</div>
<p>You should then have something that looks like this</p>
<p style="text-align: center;"><a href="http://www.nanothree.net/wp-content/uploads/2010/03/digg-pagination.png"><img class="size-full wp-image-39  aligncenter" title="CakePHP Digg Style Pagination" src="http://www.nanothree.net/wp-content/uploads/2010/03/digg-pagination.png" alt="CakePHP Style Pagination" /></a></p>
<p style="text-align: left;">And thats it!</p>
<p>Any trouble, leave a comment and we&#8217;ll try and sort it out.</p>
<p>The original CSS code for the Digg style links was taken from this post: <a href="http://woork.blogspot.com/2008/03/perfect-pagination-style-using-css.html" target="_blank">http://woork.blogspot.com/2008/03/perfect-pagination-style-using-css.html</a>  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.nanothree.net/2010/turning-cakephps-pagination-output-to-a-list/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

