<?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>NickoLabs &#187; Laboratory</title>
	<atom:link href="http://blog.nickolabs.com/category/laboratory/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.nickolabs.com</link>
	<description></description>
	<lastBuildDate>Mon, 26 Apr 2010 01:07:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Icons and there usage</title>
		<link>http://blog.nickolabs.com/icons-and-there-usage</link>
		<comments>http://blog.nickolabs.com/icons-and-there-usage#comments</comments>
		<pubDate>Thu, 25 Mar 2010 16:35:56 +0000</pubDate>
		<dc:creator>Nickolas</dc:creator>
				<category><![CDATA[Laboratory]]></category>

		<guid isPermaLink="false">http://blog.nickolabs.com/?p=340</guid>
		<description><![CDATA[Internet is a fast paced tool, that&#8217;s a given. Sometime, we have little problems finding informations quickly and accurately. This is why most website uses icons in order for us to recognize a tool (and its function) simply by seeing its icons. So a problem we sometime stumble upon, is how to get nice looking [...]]]></description>
			<content:encoded><![CDATA[<p>Internet is a fast paced tool, that&#8217;s a given.</p>
<p>Sometime, we have little problems finding informations quickly and accurately. This is why most website uses icons in order for us to recognize a tool (and its function) simply by seeing its icons.</p>
<p>So a problem we sometime stumble upon, is how to get nice looking icons, quickly. We aren&#8217;t all designers and there we cannot always take time to create one every time we need.<a href="http://blog.nickolabs.com/wp-content/uploads/2010/03/IconFinder_logo.png"><img class="alignright  size-full wp-image-341" title="IconFinder_logo" src="http://blog.nickolabs.com/wp-content/uploads/2010/03/IconFinder_logo.png" alt="IconFinder Logo" width="160" height="65" /></a></p>
<p>This is why I&#8217;m introducing you to <a title="IconFinder.net" href="http://www.iconfinder.net/" target="_blank">IconFinder.net</a>, a website that aims in helping you finding nice icons.</p>
<p>Apart from providing nice icons, they offer links to some services such as a <a title="Tool: Favicon generator" href="http://www.favicon.cc/" target="_blank">Favicon</a> (favourite icon &#8211; the icon the website will have in your address bar and favourites list), or<a title="Tool: Convert Icon" href="http://iconverticons.com/" target="_blank"> Convert Icons</a>.</p>
<p>Actually, they also have a blog (shame on me for discovering it only now) where they have a <a title="Tips for using icons in interface design" href="http://www.iconfinder.net/blog/4/" target="_blank">nice post</a> explaining how icons usage can be slippery in interface design&#8230; and how not over-use them.<em><br />
I strongly recommend you read it on<a title="Tips for using icons in interface design" href="http://www.iconfinder.net/blog/4/" target="_blank"> http://www.iconfinder.net/blog/4/</a></em><em>!</em></p>
<p>Should you wish to receive more information, you might wanna follow me on <a title="NickoLabs on Twitter" href="http://twitter.com/nickolabs" target="_blank">Twitter</a>, since I recently tweeted of a list of free icons they were advertising: <a rel="nofollow" href="http://bit.ly/free_icons" target="_blank">http://bit.ly/free_icons</a>. I have a tendency of tweeting some nice stuff before talking about it &#8220;officially&#8221; here. ^^</p>
<p>Stay tuned for more information.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nickolabs.com/icons-and-there-usage/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ajax Loading Icons</title>
		<link>http://blog.nickolabs.com/ajax-loading-icons</link>
		<comments>http://blog.nickolabs.com/ajax-loading-icons#comments</comments>
		<pubDate>Tue, 23 Mar 2010 12:44:31 +0000</pubDate>
		<dc:creator>Nickolas</dc:creator>
				<category><![CDATA[Laboratory]]></category>

		<guid isPermaLink="false">http://blog.nickolabs.com/?p=329</guid>
		<description><![CDATA[You know, every once in a while, someone come up with something simple, yet useful. That&#8217;s how I would describe this little tool that can be found at http://www.ajaxload.info/ You only have to do a few things before downloading your &#8220;loading gif&#8221;: The type of loading icon you want; The background color and; the foreground [...]]]></description>
			<content:encoded><![CDATA[<p>You know, every once in a while, someone come up with something simple, yet useful.</p>
<p>That&#8217;s how I would describe this little tool that can be found at <a title="http://www.ajaxload.info/" href="http://www.ajaxload.info/" target="_blank">http://www.ajaxload.info/</a></p>
<p><a title="http://www.ajaxload.info/" href="http://www.ajaxload.info/" target="_blank"><img class="size-medium wp-image-337 alignnone" title="AjaxLoadLogo" src="http://blog.nickolabs.com/wp-content/uploads/2010/03/logo-300x105.png" alt="AjaxLoadLogo" width="300" height="105" /></a></p>
<p>You only have to do a few things before downloading your &#8220;loading gif&#8221;:</p>
<ol>
<li>The type of loading icon you want;</li>
<li>The background color and;</li>
<li>the foreground color.</li>
</ol>
<p>Talk about simple! Perhaps, the only thing I&#8217;m thinking that could be added is a speed modifier&#8230;</p>
<p>I wanted to share my thought on that.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nickolabs.com/ajax-loading-icons/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS3? Yes we can!</title>
		<link>http://blog.nickolabs.com/css3-yes-we-can</link>
		<comments>http://blog.nickolabs.com/css3-yes-we-can#comments</comments>
		<pubDate>Mon, 22 Mar 2010 12:32:16 +0000</pubDate>
		<dc:creator>Nickolas</dc:creator>
				<category><![CDATA[Laboratory]]></category>

		<guid isPermaLink="false">http://blog.nickolabs.com/?p=318</guid>
		<description><![CDATA[Perhaps you never heard of that, and if you have, you might simply be wondering what will they EVER do? &#8220;Six Revisions&#8221; wrote a nice piece of article on that subject&#8230; and since it&#8217;s Monday, I&#8217;ll give you two for the same price! http://sixrevisions.com/css/basic-css3-techniques-that-you-should-know/ This article is all about basic techniques that can be achieve [...]]]></description>
			<content:encoded><![CDATA[<p>Perhaps you never heard of that, and if you have, you might simply be wondering what will they EVER do? &#8220;Six Revisions&#8221; wrote a nice piece of article on that subject&#8230; and since it&#8217;s Monday, I&#8217;ll give you two for the same price!</p>
<p><img class="alignnone" title="Six Revisions - CSS3 Basic Technique" src="http://images.sixrevisions.com/2009/12/11-01_css3_basic_techniques_lead.jpg" alt="" width="550" height="200" /><span id="more-318"></span></p>
<p><a href="http://sixrevisions.com/css/basic-css3-techniques-that-you-should-know/" target="_blank">http://sixrevisions.com/css/basic-css3-techniques-that-you-should-know/</a></p>
<p>This article is all about basic techniques that can be achieve with CSS3&#8230; I prefer the Font-Face one&#8230; and perhaps the Rounded borders too.</p>
<p>The other article, from the same website (I&#8217;m taking a liking to them), goes deeper with the Font playing&#8230; which is probably why I like it.</p>
<p><img class="alignnone" title="Six Revisions - Inset Type Heading" src="http://images.sixrevisions.com/2010/03/22-01_inset_type_heading.jpg" alt="" width="550" height="200" /></p>
<p><a href="http://sixrevisions.com/css/how-to-create-inset-typography-with-css3/" target="_blank">http://sixrevisions.com/css/how-to-create-inset-typography-with-css3/</a></p>
<p>Hope you enjoy those two.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nickolabs.com/css3-yes-we-can/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IndustrielAMI.com</title>
		<link>http://blog.nickolabs.com/industrielami-com</link>
		<comments>http://blog.nickolabs.com/industrielami-com#comments</comments>
		<pubDate>Thu, 25 Feb 2010 13:36:22 +0000</pubDate>
		<dc:creator>Nickolas</dc:creator>
				<category><![CDATA[Laboratory]]></category>

		<guid isPermaLink="false">http://blog.nickolabs.com/?p=236</guid>
		<description><![CDATA[View the website A new website has been put online. Well, it isn&#8217;t really a NEW one, but more like a revision and a complete redo of the old one. Now now, I know the splash page is kinda an old fashioned way of selecting a language. But you see, it was a client requirement [...]]]></description>
			<content:encoded><![CDATA[<p><span class="button"><a title="IndustrielAMI.com" href="http://www.industrielami.com/" target="_blank">View the website</a></span></p>
<p>A new website has been put online. Well, it isn&#8217;t really a NEW one, but more like a revision and a complete redo of the old one.</p>
<div id="attachment_237" class="wp-caption alignnone" style="width: 310px"><a href="http://blog.nickolabs.com/wp-content/uploads/2010/02/industrielami.jpg"><img class="size-medium wp-image-237" title="Industriel AMI.com" src="http://blog.nickolabs.com/wp-content/uploads/2010/02/industrielami-300x231.jpg" alt="" width="300" height="231" /></a><p class="wp-caption-text">A screenshot of the website</p></div>
<p>Now now, I know the splash page is kinda an old fashioned way of selecting a language. But you see, it was a client requirement to have a &#8220;book cover&#8221; page. That&#8217;s a way of seeing thing and it&#8217;s a point that can be defended. In any cases, should the use access directly the index.php page without choosing any language, the website will do its best to detect and redirect the client to his preferred language (be it French or English).</p>
<p>The framework (&#8220;MooTools FTW!&#8221; as would say a friend) and administrator section uses (almost) the same code then my previous project, Grimard. I did learned some stuff in CSS laying-out since this website has passed through various layouts. I had to had a few MooTools line in order to set the height of the various columns&#8230; and since I had a TextResizer on the page, it was simply the easiest solution&#8230; perhaps not the most standard though.</p>
<p>In any case, I&#8217;m glad this project came to be finalized. Once the French version was online, the English was completed in less then 8 hours. I&#8217;m glad I did the admin page myself: that way I really know how to use it at its best!</p>
<p>This website was also the opportunity to write my first &#8220;User guide&#8221; for the client. I had to describe, explain and demonstrate how to use the website. It went pretty well and I ended up with a 22 pages Powerpoint file explaining how to edit/add a news, and so on.</p>
<p>One thing I really wish to add to the website, is URL-Rewriting. I&#8217;m getting real sick of those &#8220;index.php?id=62&#8243;&#8230; I&#8217;ll have to do some research on that. Anyone has a suggestion/solution/tutorial for that?</p>
<p>That pretty much it. Feel free to visit and comment here on the website itself!</p>
<p><span class="button"><a title="IndustrielAMI.com" href="http://www.industrielami.com/" target="_blank">View the website</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nickolabs.com/industrielami-com/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Grimard.ca</title>
		<link>http://blog.nickolabs.com/grimard-ca</link>
		<comments>http://blog.nickolabs.com/grimard-ca#comments</comments>
		<pubDate>Thu, 28 Jan 2010 20:32:51 +0000</pubDate>
		<dc:creator>Nickolas</dc:creator>
				<category><![CDATA[Laboratory]]></category>

		<guid isPermaLink="false">http://blog.nickolabs.com/?p=200</guid>
		<description><![CDATA[View the website This project was what introduced me deeply into MooTools. It&#8217;s actually during this project that I red the &#8220;MooTools Essentials&#8221; book (twice) and enjoyed the experimentation. I also had to develop a whole CMS for the client, in the form of an admin panel. Back then, I didn&#8217;t really knew what WordPress [...]]]></description>
			<content:encoded><![CDATA[<p><span class="button"><a title="Grimard" href="http://www.grimard.ca/" target="_blank">View the website</a></span></p>
<div id="attachment_215" class="wp-caption alignnone" style="width: 372px"><a href="http://blog.nickolabs.com/wp-content/uploads/2010/01/grimard.jpg"><img class="size-full wp-image-215 " title="grimard" src="http://blog.nickolabs.com/wp-content/uploads/2010/01/grimard.jpg" alt="" width="362" height="260" /></a><p class="wp-caption-text">A screenshot of the home page</p></div>
<p>This project was what introduced me deeply into MooTools. It&#8217;s actually during this project that I red the &#8220;<a title="MooTools Essentials on Amazon" href="http://www.amazon.com/MooTools-Essentials-JavaScript-Development-Firstpress/dp/1430209836" target="_blank">MooTools Essentials</a>&#8221; book (twice) and enjoyed the experimentation.</p>
<p>I also had to develop a whole CMS for the client, in the form of an admin panel. Back then, I didn&#8217;t really knew what WordPress was capable of. I&#8217;m still using the CMS as a stand-alone installation for some clients though. It has proven useful for me since I used this opportunity to develop some script with MooTools.</p>
<p>As part of this CMS, I used for the first time the script &#8220;FancyUpload2&#8243; (<a title="Project Fancy Upload" href="http://digitarald.de/project/fancyupload/" target="_blank">http://digitarald.de/project/fancyupload/</a>), a cute flash uploader. It had to be included in the Accomplishments&#8217; admin panel, so the administrator can specify the pictures he want to use with each accomplishments.</p>
<p>As you may guess, I did the code part: slicing, integration and PHP coding. Design was made by the company I&#8217;m working with, <a title="KOK Stratégie" href="http://www.kokstrategie.ca" target="_blank">KOK Stratégie</a>.</p>
<p>It was an interesting project and a good way to learn new things. The hardest part of this project must have been the writing and revision of the texts.</p>
<p>This project was completed in november 2009. Since the lauch of the new website, it has generated over 2000 visits, from about 22 countries around the world.</p>
<p><span class="button"><a title="Grimard" href="http://www.grimard.ca/" target="_blank">View the website</a></span></p>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 380px; width: 1px; height: 1px;"><p>C&#8217;est d&#8217;ailleurs dans ce CMS que j&#8217;ai pour la première fois eu à utiliser la librairie &#8220;FancyUpload 2&#8243; (&lt;a title=&#8221;Projet FancyUpload&#8221; href=&#8221;http://digitarald.de/project/fancyupload/&#8221; target=&#8221;_blank&#8221;&gt;http://digitarald.de/project/fancyupload/&lt;/a&gt;), un utilitaire flash pour gérer l&#8217;upload de fichier. J&#8217;ai inclus tout ça dans le gestionnaire de réalisations du site web, de cette façon, l&#8217;administrateur peut ajouter les photos qui lui plait.</p>
<p>Comme vous vous en douter peut-être, je me suis occupé de faire le côté &#8220;code&#8221;: découpage, intégration et programmation PHP. Le design fut fait par la compagnie qui m&#8217;emploie, &lt;a title=&#8221;KOK Stratégie&#8221; href=&#8221;http://www.kokstrategie.ca&#8221; target=&#8221;_blank&#8221;&gt;KOK Stratégie&lt;/a&gt;.</p>
<p>Ce fut vraiment un projet intéressant, bien que la rédaction fut réellement difficile: c&#8217;est une site très complet en terme de textes et plusieurs fois il fallut modifier les textes, ajouter et corriger.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.nickolabs.com/grimard-ca/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ThreadSpace: Hyperbol Server List</title>
		<link>http://blog.nickolabs.com/tshb-server-list</link>
		<comments>http://blog.nickolabs.com/tshb-server-list#comments</comments>
		<pubDate>Tue, 22 Dec 2009 20:29:19 +0000</pubDate>
		<dc:creator>Nickolas</dc:creator>
				<category><![CDATA[Laboratory]]></category>

		<guid isPermaLink="false">http://blog.nickolabs.com/?p=147</guid>
		<description><![CDATA[DemoGitHub repository I already talked about that little thing once, without much explanation on what it does. So I&#8217;ll get more into it right away. What is ThreadSpace: Hyperbol? Well, that is a game I used to play. I was playing this game as &#8220;Hyrkali&#8221;, and I was getting quite good at it. The goal [...]]]></description>
			<content:encoded><![CDATA[<p><span class="button"><a title="ThreadSpace: Hyperbol Server List" href="http://nickolabs.com/hyperbol/" target="_blank">Demo</a></span><span class="button-git"><a title="Visit the GitHub Repository for ThreadSpace: Hyperbol Server List" href="http://github.com/NickoLabs/ThreadSpace-Hyperbol_Server-List" target="_blank">GitHub repository</a></span></p>
<p><a href="http://blog.nickolabs.com/wp-content/uploads/2009/12/banner.jpg"><img class="alignnone size-full wp-image-129" title="ThreadSpace: Hyperbol Server List" src="http://blog.nickolabs.com/wp-content/uploads/2009/12/banner.jpg" alt="ThreadSpace: Hyperbol Server List Banner" width="500" height="177" /></a></p>
<p>I already talked about that little thing once, without much explanation on what it does. So I&#8217;ll get more into it right away.</p>
<h3>What is ThreadSpace: Hyperbol?</h3>
<p>Well, that is a game I used to play. I was playing this game as &#8220;Hyrkali&#8221;, and I was getting quite good at it. The goal is simple: destroy or get destroyed (if JackD is playing, it is more like &#8220;get pwned&#8221; then anything else&#8230; <img src='http://blog.nickolabs.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  ). You control a ship that is highly customizable and you can battle on different arena with different objectives, with team or not.</p>
<p>Instead of explaining everything, I&#8217;d rather let the developers do it. See <a title="http://www.hyperbol.com/" href="http://www.hyperbol.com/" target="_blank">http://www.hyperbol.com/</a> for more information.</p>
<h3>So why such a tool?</h3>
<p>I developed this tool in order to have an efficient means to see if there was anyone playing, on what server and so on. The original idea was from Nephyrin, who built a Proof Of Concept (PoC) for XML and XLST, a style sheet.</p>
<p>The script was working well, but wasn&#8217;t user-friendly at all.</p>
<p>So I built the first version of the script, which was simply parsing the XML Nephyrin generated. That worked wonders, until his XML generator stopped working. It was probably shut down by him, I never knew what happened there. The thing I knew is that my list was no longer usable.</p>
<p>That&#8217;s when I decided to build my own XML Generator. To do so, I had to know more about socket communication, since the generator had to connect with the game Master Server. This is where Vek, one of the game developer helped a lot. He essentially built the whole XML Generator from scratch, puting all that into a simple Python script.</p>
<p>I only had to call the python script to generate my own fresh XML. Voilà, the list was now back on the web.</p>
<h3>The script</h3>
<p>The script is pretty straightforward: the PHP calls (exec) for the Python script, which generate the XML. Once the XML is generated, the PHP goes on with the parsing of it, the creation of the output and the output itself.</p>
<p>One thing that can be done is put the Python script in a Cron job so it runs all by itself every once in a while. Since I cannot define cron job in interval less then 15 minutes, I used the solution I just named, the PHP exec() method.</p>
<p>One could also run the Python script right from his computer (you&#8217;d need a Python Parser installed on your computer) and let it run in a loop, uploading the XML on a FTP server.</p>
<p>Since the code is already all on GitHub, I won&#8217;t copy it again. I&#8217;ll explain how I built the server list page instead (since the &#8220;index.php&#8221; isn&#8217;t in the GitHub repository).</p>
<h3>The HTML</h3>
<p>After the simple layout, I display the output from the XML this way:</p>
<pre class="brush: jscript;">
&lt;script&gt;
var refreshId = setInterval(function()
{
	 $('#refresh_zone').fadeOut(&quot;slow&quot;).load('ajax_refresh.php').fadeIn(&quot;slow&quot;);
}, 60000);
//60 x 1000 = 1 minute (60000)
$(document).ready(function()
{
	$('#refresh_zone').load('ajax_refresh.php');
});
&lt;/script&gt;
</pre>
<p>Yes, that is jQuery script&#8230; Why I used that, instead of the usual MooTools? Because I used another jQuery script named yShout5 to get a Chat-Like area on my page. Since it requires jQuery, I did my Ajax refresh using the same framework.</p>
<p>Since this post isn&#8217;t a yShout5 usage tutorial, I won&#8217;t get into explaining how it works&#8230; you can always go see the Demo itself for that.</p>
<h3>Conclusion</h3>
<p>That pretty much sums it all up.</p>
<p>I want to thanks Nephyrin for the idea, and Vek for his awesome support with the XML generation part.</p>
<p>I may develop more on that tool later, I&#8217;d really like to have a PHP version of the XML generator. I don&#8217;t know if I&#8217;ll ever have time for that, since there is a working script online already, developing it is kinda like overkill&#8230; but I&#8217;ll see what can be done.</p>
<p><span class="button"><a title="ThreadSpace: Hyperbol Server List" href="http://nickolabs.com/hyperbol/" target="_blank">Demo</a></span><span class="button-git"><a title="Visit the GitHub Repository for ThreadSpace: Hyperbol Server List" href="http://github.com/NickoLabs/ThreadSpace-Hyperbol_Server-List" target="_blank">GitHub repository</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nickolabs.com/tshb-server-list/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Syntax Highlighter Usage</title>
		<link>http://blog.nickolabs.com/syntax-highlighter-testing</link>
		<comments>http://blog.nickolabs.com/syntax-highlighter-testing#comments</comments>
		<pubDate>Sat, 05 Dec 2009 01:19:22 +0000</pubDate>
		<dc:creator>Nickolas</dc:creator>
				<category><![CDATA[Laboratory]]></category>

		<guid isPermaLink="false">http://blog.nickolabs.com/?p=76</guid>
		<description><![CDATA[I finally decided myself for using the SyntaxHighlighter Evolved plugin for displaying code. Reason is, even though I love Mootools, the Lighter.js class wasn&#8217;t quite that easy to use/implement. Granted, I could have tried harder maybe, but I simply find the class a bit&#8230; unsupported. So, here we are with this class, with code coloring [...]]]></description>
			<content:encoded><![CDATA[<p>I finally decided myself for using the SyntaxHighlighter Evolved plugin for displaying code. Reason is, even though I love Mootools, the Lighter.js class wasn&#8217;t quite that easy to use/implement.</p>
<p>Granted, I could have tried harder maybe, but I simply find the class a bit&#8230; unsupported.</p>
<p><span id="more-76"></span>So, here we are with this class, with code coloring a bit &#8220;odd&#8221;. I&#8217;ll see about that as well a bit later. Tell me what do you think about this highlighter vs the Lighter.js class&#8230; if you got anything to sat about it that is!</p>
<p>I&#8217;m gonna give Lighter.js another try later though&#8230; who knows, maybe it&#8217;s &#8220;lighter&#8221; then this script to use, once well set up (no pun intended)!</p>
<pre class="brush: php;">&lt;?php
/**
*
* @package phpBB3
* @version $Id: index.php 8987 2008-10-09 14:17:02Z acydburn $
* @copyright (c) 2005 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

/**
*/

/**
* @ignore
*/
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);

// Start session management
$user-&gt;session_begin();
$auth-&gt;acl($user-&gt;data);
$user-&gt;setup('viewforum');

display_forums('', $config['load_moderators']);

// Set some stats, get posts count from forums data if we... hum... retrieve all forums data
$total_posts	= $config['num_posts'];
$total_topics	= $config['num_topics'];
$total_users	= $config['num_users'];

$l_total_user_s = ($total_users == 0) ? 'TOTAL_USERS_ZERO' : 'TOTAL_USERS_OTHER';
$l_total_post_s = ($total_posts == 0) ? 'TOTAL_POSTS_ZERO' : 'TOTAL_POSTS_OTHER';
$l_total_topic_s = ($total_topics == 0) ? 'TOTAL_TOPICS_ZERO' : 'TOTAL_TOPICS_OTHER';

// Grab group details for legend display
if ($auth-&gt;acl_gets('a_group', 'a_groupadd', 'a_groupdel'))
{
	$sql = 'SELECT group_id, group_name, group_colour, group_type
		FROM ' . GROUPS_TABLE . '
		WHERE group_legend = 1
		ORDER BY group_name ASC';
}
else
{
	$sql = 'SELECT g.group_id, g.group_name, g.group_colour, g.group_type
		FROM ' . GROUPS_TABLE . ' g
		LEFT JOIN ' . USER_GROUP_TABLE . ' ug
			ON (
				g.group_id = ug.group_id
				AND ug.user_id = ' . $user-&gt;data['user_id'] . '
				AND ug.user_pending = 0
			)
		WHERE g.group_legend = 1
			AND (g.group_type &lt;&gt; ' . GROUP_HIDDEN . ' OR ug.user_id = ' . $user-&gt;data['user_id'] . ')
		ORDER BY g.group_name ASC';
}
$result = $db-&gt;sql_query($sql);
?&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.nickolabs.com/syntax-highlighter-testing/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
