<?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; web design</title>
	<atom:link href="http://www.linickx.com/tag/web-design/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>CSS Styling Apache Directory Listings.</title>
		<link>http://www.linickx.com/343/css-styling-apache-directory-listings</link>
		<comments>http://www.linickx.com/343/css-styling-apache-directory-listings#comments</comments>
		<pubDate>Thu, 11 Oct 2007 08:44:54 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.linickx.com/archives/343/css-styling-apache-directory-listings</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<div style="float:right">
<table <tr>
<td><a href='http://www.linickx.com/files/2008/05/apachedirlisting_before.png' rel="lightbox[343]"><img src="http://www.linickx.com/files/2008/05/apachedirlisting_before-150x150.png" alt="Before I change Apache" title="Default Apache Directory Listing " width="150" height="150" class="alignnone size-thumbnail wp-image-409" /></a></td>
<tr>
<td style="text-align:center"><strong>Before.</strong></td>
</tr>
</table>
</div>
<p>As part of <a href="http://www.linickx.com/archives/336/website-changes">my website overhaul</a>, I&#8217;ve finally gotten round to styling my <a href="http://www.linickx.com/files/">/files/</a> directory. I was surprised at how easy it was actually, and the benefits far out way the time taken to set it up, not only does this part of the site now &#8220;fit in&#8221;, but I can apply analytics tracking and adsense <img src='http://www.linickx.com/wp/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  I&#8217;m sure there probably is a wordpress plugin that can achieve the same thing&#8230; probably better, but I find my list of plugins ever growing and since I don&#8217;t <em>need</em> on for this I figure if Apache can do it, let Apache do it!</p>
<p>The work can be done in one of two ways either by pasting Apache directives into a .htaccess file (<em>in the directory you want to apply conf to</em>), or in your httpd.conf you can wrap it all up in a
<pre class="brush: plain; title: ; notranslate">&lt;Directory&gt; </pre>
<p> tag&#8230; something like
<pre class="brush: plain; title: ; notranslate">&lt;Directory &quot;/var/www/html/files/&quot;&gt; foobar&gt; &lt;/Directory&gt;</pre>
<p> below is an example of a .htaccess file as that will apply to most people:</p>
<pre class="brush: plain; title: ; notranslate">
        RewriteEngine Off
        AddType text/html .shtml
        AddOutputFilter INCLUDES .shtml
        Options Indexes Includes
        IndexOptions FancyIndexing SuppressHTMLPreamble XHTML IconsAreLinks FoldersFirst SuppressDescription
        HeaderName /files/HEADER.shtml
        ReadmeName /files/README.shtml
</pre>
<p>Since my site uses wordpress with &#8220;pretty permalinks&#8221; enabled, the 1st thing I needed to do is disable mod re-write for the directory where I wanted listing enabled. Now if you check my <a href="http://www.linickx.com/files/">/files/</a> page you&#8217;ll notice that the page title and tag line under &#8220;[LINICKX].com&#8221; change depending on what directory you are viewing, this is done with &#8220;Server Side Includes&#8221; (<em>SSI</em>), so the next two options in the above config set that up.</p>
<p>Now to take a look at the actual directory listing setup, it might be worth you taking a look at the <a href="http://httpd.apache.org/docs/2.2/mod/mod_autoindex.html">Apache documentation</a> for a full description, but the important ones to note are
<pre class="brush: plain; title: ; notranslate">Options Indexes Includes</pre>
<p> to enable directory listing and switch on SSI, then you need
<pre class="brush: plain; title: ; notranslate">IndexOptions SuppressHTMLPreamble XHTML</pre>
<p> to disable the default headers so that we can setup our style sheet and favour xHTML over HTML. Apache 2.2 users also have <a href="http://httpd.apache.org/docs/2.2/mod/mod_autoindex.html#indexstylesheet">IndexStyleSheet</a> available, but since I&#8217;m using CentOS4 we&#8217;ll do it this way. Finally you need the <b>HeaderName</b>, <b>ReadmeName</b> directives to tell Apache which file to look for (<em>by default Apache looks for README.html, but that won&#8217;t support SSI</em>)&#8230; note how my .shtml files are relative to my web root, these are not absolute paths on the file system, i.e. /files actually maps to /var/www/html/files. </p>
<p>You&#8217;re now good to go, HEADER.shtml should contain all the xHTML you want to appear before the directory listing, and README.html is everything after&#8230; make sure you include all the correct &lt;html&gt;, &lt;body&gt; and DOCTYPE tags.</p>
<p>Now you&#8217;ll want to get working is some dynamic content, for a simple &#8220;print current directory&#8221; you can use
<pre class="brush: plain; title: ; notranslate">&lt;!--#echo var=&quot;REQUEST_URI&quot;--&gt;</pre>
<p> in your html, further documentation on getting more magic is available <a href="http://webmaster.iu.edu/tool_guide_info/ssitutorial.shtml">here</a> &#038; <a href="http://www.georgedillon.com/web/ssivar.shtml">here</a>, I was able to knock up a simple line of code to print the current year at the bottom of the page&#8230;.</p>
<pre class="brush: plain; title: ; notranslate">
&lt;!--#config timefmt=&quot;%Y&quot;--&gt;
&lt;small&gt;Nick Bettison 2005 - &lt;!--#echo var=&quot;DATE_LOCAL&quot;--&gt; &amp;amp;copy; &lt;/small&gt;;
</pre>
<p>Cool eh! The trick to watch out for is spaces in the above code, there should be no white space between
<pre class="brush: plain; title: ; notranslate">&lt;--#echo</pre>
<p> or the trailing
<pre class="brush: plain; title: ; notranslate">--&gt;</pre>
<div style="float:right">
<table <tr>
<td><a href='http://www.linickx.com/files/2008/05/apachedirlisting_after.png' rel="lightbox[343]"><img src="http://www.linickx.com/files/2008/05/apachedirlisting_after-150x150.png" alt="Looking much better" title="Linickx.com V2 Styled Listing!" width="150" height="150" class="alignnone size-thumbnail wp-image-410" /></a></td>
<tr>
<td style="text-align:center"><strong>After.</strong></td>
</tr>
</table>
</div>
<p>The final thing you&#8217;ll want to look at is those horible default icons! You have a couple of options: You can either simply replace/over-write the default ones (<em>on my flavour of linux they are in /var/www/icons</em>), or you can add
<pre class="brush: plain; title: ; notranslate">AddIcon /icons/tar.png .tar</pre>
<p> to your htaccess file telling apache to look at tar.png rather than the default tar.gif, I found some <a href="https://gna.org/projects/apache-icons/">deb archives</a> which I extracted with file-roller (<em>rather than trying to install anything</em>) and simply changed the ones I was going to use&#8230;. I&#8217;m very please with the final result, I think it makes a big difference.</p>
<p>Happy Styling One &amp; All!</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/343/css-styling-apache-directory-listings/feed</wfw:commentRss>
		<slash:comments>27</slash:comments>
		</item>
		<item>
		<title>Nice Banner !</title>
		<link>http://www.linickx.com/205/nice-banner</link>
		<comments>http://www.linickx.com/205/nice-banner#comments</comments>
		<pubDate>Wed, 21 Jun 2006 17:07:50 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[rant]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://www.linickx.com/blog/archives/205/nice-banner/</guid>
		<description><![CDATA[I&#8217;ve never really been happy with the banner on my site, but to be honest I&#8217;ve never settled on anything good, so I&#8217;ve stuck to the plain blue thingy. Over the last couple of day&#8217;s I&#8217;ve come across a couple &#8230; <a href="http://www.linickx.com/205/nice-banner">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve never really been happy with the banner on my site, but to be honest I&#8217;ve never settled on anything good, so I&#8217;ve stuck to the <a href="http://www.linickx.com/blog/wp-content/themes/linickx_v2/images/background-header.png" rel="lightbox[205]">plain blue thingy</a>.</p>
<p>Over the last couple of day&#8217;s I&#8217;ve come across a couple of nice ones&#8230;.</p>

<a href='http://www.linickx.com/205/nice-banner/cshields-personalheader' title='cshields-personalheader'><img src="http://www.linickx.com/files/2008/10/cshields-personalheader.jpg" class="attachment-thumbnail" alt="http://staff.osuosl.org/~cshields" title="cshields-personalheader" /></a>
<a href='http://www.linickx.com/205/nice-banner/crypt-header' title='crypt-header'><img src="http://www.linickx.com/files/2008/10/crypt-header.jpg" class="attachment-thumbnail" alt="http://www.crypt.gen.nz" title="crypt-header" /></a>

<p>as you can see my tastes are very different; but I like both idea&#8217;s very much. I&#8217;ve always wanted to include <a href="http://art.gnome.org/users/linickx/backgrounds/">my more successful GnomeArts</a> in my website theme somewhere but never managed it&#8230; humm back to the drawing board thinks I <img src='http://www.linickx.com/wp/wp-includes/images/smilies/icon_wink.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/205/nice-banner/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>h4x0r on themes.wordpress.net</title>
		<link>http://www.linickx.com/121/h4x0r-on-themeswordpressnet</link>
		<comments>http://www.linickx.com/121/h4x0r-on-themeswordpressnet#comments</comments>
		<pubDate>Thu, 09 Feb 2006 12:16:30 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.linickx.com/blog/archives/121/h4x0r-on-themeswordpressnet/</guid>
		<description><![CDATA[Tiz cool when things get published on other sites, my h4x0r theme is on themes.wordpress.net cool shame i can&#8217;t work out how to link to them properly ! Copyright &#169; 2012 [LINICKX].com. This Feed is for personal non-commercial use only. &#8230; <a href="http://www.linickx.com/121/h4x0r-on-themeswordpressnet">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Tiz cool when things get published on other sites, my <a href="http://www.linickx.com/blog/index.php?wptheme=h4x0r-LINICKX">h4x0r theme</a> is on <a href="http://themes.wordpress.net">themes.wordpress.net</a></p>
<p><a href="http://www.linickx.com/files/2008/10/h4x0r_onwptheme.jpg" rel="lightbox[121]"><img src="http://www.linickx.com/files/2008/10/h4x0r_onwptheme-300x185.jpg" alt="" title="h4x0r on WP Theme.net" width="300" height="185" class="aligncenter size-medium wp-image-577" /></a></p>
<p>cool <img src='http://www.linickx.com/wp/wp-includes/images/smilies/icon_cool.gif' alt=':cool:' class='wp-smiley' /> </p>
<p><em>shame i can&#8217;t work out how to link to them properly !</em></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/121/h4x0r-on-themeswordpressnet/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

