<?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>Lirae.co.uk &#187; Articles</title>
	<atom:link href="http://lirae.co.uk/blog/categories/articles/feed" rel="self" type="application/rss+xml" />
	<link>http://lirae.co.uk</link>
	<description>Not for the ordinary</description>
	<lastBuildDate>Sun, 26 Jun 2011 13:37:40 +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>My WordPress Plugins (November 2010)</title>
		<link>http://lirae.co.uk/blog/entries/my-wordpress-plugins-november-2010.php</link>
		<comments>http://lirae.co.uk/blog/entries/my-wordpress-plugins-november-2010.php#comments</comments>
		<pubDate>Tue, 09 Nov 2010 19:47:30 +0000</pubDate>
		<dc:creator>Lirae</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Other]]></category>
		<category><![CDATA[Site Stuff]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://lirae.co.uk/?p=1737</guid>
		<description><![CDATA[My previous WordPress Plugins list has done fairly well in visits, so I thought I would do it again. So, here&#8217;s a list of the WordPress plugins I&#8217;ve installed since my previous list: Archives by Selected Categories^ &#8211; although I like my normal archives list, I also wanted to have a page that listed all [...]]]></description>
			<content:encoded><![CDATA[<p>My previous <a href="http://lirae.co.uk/blog/entries/my-wordpress-plugins-april-2009.php">WordPress Plugins</a> list has done fairly well in visits, so I thought I would do it again. <img src='http://lirae.co.uk/wp-includes/images/smilies/tongue.gif' alt=':P' class='wp-smiley' /> </p>
<p>So, here&#8217;s a list of the WordPress plugins I&#8217;ve installed since my previous list:</p>
<ul>
<li><a href="http://www.dagondesign.com/articles/archives-by-selected-categories-plugin-for-wordpress/">Archives by Selected Categories</a><sup>^</sup> &#8211; although I like my normal <a href="http://lirae.co.uk/archives/">archives</a> list, I also wanted to have a page that listed all of my entries by what category they&#8217;re in. This plugin does the job nicely and was very easy to set up. I&#8217;ve modified the code slightly by adding jQuery &#8220;Show All&#8221; links to each of the categories.</li>
<li><a href="http://www.viper007bond.com/wordpress-plugins/clean-archives-reloaded/">Clean Archives Reloaded</a><sup>^</sup> &#8211; I didn&#8217;t like the default way that WordPress shows archived entries, so I set about looking for a plugin that would display my archives in chronological order but in a nice and clean way.</li>
<li><a href="http://www.maxblogpress.com/plugins/dppp/">Different Posts Per Page</a><sup>^</sup> &#8211; set how many entries are displayed on different views: 3 on the home page, 5 on a tag view, etc.</li>
<li><a href="http://eightface.com/wordpress/flickrrss/">flickrRSS</a><sup>^</sup> &#8211; when I was using my own CMS, I used <a href="http://lirae.co.uk/blog/entries/displaying-your-recent-flickr-photos-without-using-wordpress.php">a Flickr parser</a> to display my most recent Flickr photos. I liked the script but couldn&#8217;t get it to work nicely with WordPress, so I went in search for a plugin that was very similar to the previous script I used. I came across this one and I like it; it displays as many of your photographs as you want and doesn&#8217;t have any unnecessary code floating about.</li>
<li><a href="http://www.ilfilosofo.com/blog/wp-db-backup">WordPress Database Backup</a><sup>^</sup> &#8211; this plugin will automatically backup your WordPress database and send the resulting *.zip to an email address you specify. You won&#8217;t have to worry about backing up your database ever again!</li>
<li><a href="http://www.bravenewcode.com/wordtwit">WordTwit</a><sup>^</sup> &#8211; this will send a link and the title of all new blog entries to your Twitter account.</li>
<li><a href="http://mitcho.com/code/yarpp/">Yet Another Related Posts Plugin</a><sup>^</sup> &#8211; this will add a list of similar posts at the bottom of the current entry on the single view.</li>
</ul>
<p>A short one this time, as I&#8217;ve been finding it difficult to find plugins that I actually want to use and work with the current version of WordPress.</p>
]]></content:encoded>
			<wfw:commentRss>http://lirae.co.uk/blog/entries/my-wordpress-plugins-november-2010.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My WordPress Plugins (April 2009)</title>
		<link>http://lirae.co.uk/blog/entries/my-wordpress-plugins-april-2009.php</link>
		<comments>http://lirae.co.uk/blog/entries/my-wordpress-plugins-april-2009.php#comments</comments>
		<pubDate>Fri, 24 Apr 2009 12:36:30 +0000</pubDate>
		<dc:creator>Lirae</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Other]]></category>
		<category><![CDATA[Site Stuff]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://lirae.co.uk/?p=926</guid>
		<description><![CDATA[My favourite type of WordPress-related posts are the ones where the site owner has written out a list of the Plugins they use and why they use them. This is my list of the Plugins that I&#8217;m using on my site right now and why I use them. I&#8217;ve only listed the Plugins that actually [...]]]></description>
			<content:encoded><![CDATA[<p>My favourite type of WordPress-related posts are the ones where the site owner has written out a list of the Plugins they use and why they use them.</p>
<p>This is my list of the Plugins that I&#8217;m using on my site right now and why I use them. I&#8217;ve only listed the Plugins that actually add something to my site (improved functionality) or are useful (for example, by cutting down the amount of time I have to waste maintaining my site).<span id="more-926"></span></p>
<ul>
<li><a href="http://akismet.com/">Askimet</a><sup>^</sup> and <a href="http://www.bad-behavior.ioerror.us/">Bad Behavior</a><sup>^</sup> &#8211; these work best together; Bad Behavior stops almost all spam from invading my blog. Anything that gets through is caught by Askimet and, while it&#8217;s waiting for me to decide whether or not the &#8220;spam&#8221; is actually a legit comment, it keeps it off my site.</li>
<li><a href="http://w-shadow.com/blog/2007/08/05/broken-link-checker-for-wordpress/">Broken Link Checker</a><sup>^</sup> &#8211; I have a full time job and, I&#8217;ll admit, checking through every single page of my site, looking for broken links, is tiresome and just plain <em>boring</em>. That&#8217;s where this Plugin becomes very useful for me; I install this Plugin and it keeps an eye on links for me. When I open up my admin panel, I get a little message saying that &#8220;there are [x] broken links&#8221;. As well as that, it warns my visitors that a link isn&#8217;t working by putting a line through it until either I remove the link or update it.</li>
<li><a href="http://projects.radgeek.com/feedwordpress">FeedWordPress</a><sup>^</sup> &#8211; this Plugin works by grabbing the RSS Feeds of your chosing (<a href="http://tumblr.com">Tumblr</a><sup>^</sup>, <a href="http://twitter.com">Twitter</a><sup>^</sup>, <a href="http://flickr.com">Flickr</a><sup>^</sup>, <a href="http://del.icio.us">Del.icio.us</a><sup>^</sup>, etc) and displaying them as individual blog entries on your website.<br />
Sometimes I can&#8217;t blog from this site but I can post entries to <a href="http://lirae.tumblr.com">my Tumblr account</a><sup>^</sup> using the email function on my phone (don&#8217;t ask why I can&#8217;t just email it to my &#8220;WordPress only&#8221; email account&#8230;it&#8217;ll take too long).</li>
<li><a href="http://www.michelem.org/wordpress-plugin-nofollow-free/">NoFollow Free</a><sup>^</sup> &#8211; whereas most anti-nofollow Plugins will just strip nofollow from all of the links, this one can be set up so that only people who have commented on your site [x] times will have nofollow removed from their link. I don&#8217;t want to give out a free rankable link to just <em>anyone</em> &#8211; only my regs. <img src='http://lirae.co.uk/wp-includes/images/smilies/wink.gif' alt=';)' class='wp-smiley' /> </li>
<li><a href="http://www.andrewsw.com/pages/pluginsUsedPlugin">Plugins Used Plugin</a><sup>^</sup> &#8211; a nice, simple Plugin that lists all of the Plugins I&#8217;ve used. I don&#8217;t want or need a big nasty table taking up most of the page, telling everyone what each Plugin does; what version it is, etc.</li>
<li><a href="http://fucoder.com/code/search-excerpt/">Search Excerpt</a><sup>^</sup> &#8211; this improves the search function bundled with WordPress already, by showing the relevant part of the post as the excerpt.<br />
Without this, it would look like some of the results weren&#8217;t relevant, as you wouldn&#8217;t be able to see if I really did mention the search term within the post.<br />
<a href="http://lirae.co.uk/?s=myke">Here&#8217;s an example for when you search for &#8220;Myke&#8221;</a>.</li>
<li><a href="http://www.prelovac.com/vladimir/wordpress-plugins/theme-test-drive">Theme Test Drive</a><sup>^</sup> &#8211; this theme allows you &#8211; and only you &#8211; to view the new theme / layout you&#8217;re making for your site. It wasn&#8217;t until I got this Plugin that I realised just how long it was taking me to create new themes / layouts for my site.</li>
<li><a href="http://codemonkey.nu/wordnote/">WordNote</a><sup>^</sup> &#8211; this adds a little &#8220;notes&#8221; section in your Dashboard and you can use it for whatever you want. For example, right now, I have a list of posts that I would like to write out at some point and a list of things I need to do.</li>
</ul>
<p>What are the most useful Plugins that <em>you</em> have installed right now?</p>
]]></content:encoded>
			<wfw:commentRss>http://lirae.co.uk/blog/entries/my-wordpress-plugins-april-2009.php/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Answering some ear piercing questions</title>
		<link>http://lirae.co.uk/blog/entries/answering-some-ear-piercing-questions.php</link>
		<comments>http://lirae.co.uk/blog/entries/answering-some-ear-piercing-questions.php#comments</comments>
		<pubDate>Sat, 21 Mar 2009 21:00:15 +0000</pubDate>
		<dc:creator>Lirae</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Other]]></category>
		<category><![CDATA[Piercings]]></category>
		<category><![CDATA[Body Modification]]></category>

		<guid isPermaLink="false">http://lirae.co.uk/?p=796</guid>
		<description><![CDATA[I put a lot of time and effort into my &#8220;How to properly care for a new ear piercing&#8221; article. That time and effort seems to have been well used, as it&#8217;s my second most popular post. As much time and effort I put into that entry, I&#8217;ve noticed that a lot of questions probably [...]]]></description>
			<content:encoded><![CDATA[<p>I put a lot of time and effort into my &#8220;<a href="http://lirae.co.uk/blog/entries/how-to-properly-care-for-a-new-ear-piercing.php">How to properly care for a new ear piercing</a>&#8221; article. That time and effort seems to have been well used, as it&#8217;s my second most popular post.</p>
<p>As much time and effort I put into that entry, I&#8217;ve noticed that a lot of questions probably aren&#8217;t answered as well as they could have been. Some of these aren&#8217;t exactly <em>questions</em> but I feel they&#8217;re worth discussing.</p>
<h3>List of questions answered</h3>
<ul>
<li><a href="/blog/entries/answering-some-ear-piercing-questions.php#dry-skin-around-piercing">Dry skin around piercing</a></li>
<li><a href="/blog/entries/answering-some-ear-piercing-questions.php#how-to-make-a-sea-salt-solution">How to make a sea salt solution for your ear</a></li>
<li><a href="/blog/entries/answering-some-ear-piercing-questions.php#how-soon-can-you-change-a-new-piercing">How soon can you change a new ear piercing?</a></li>
<li><a href="/blog/entries/answering-some-ear-piercing-questions.php#turning-new-ear-piercing">Turning new ear piercing</a></li>
<li><a href="/blog/entries/answering-some-ear-piercing-questions.php#can-an-ear-piercing-seal-up-in-an-hour">Can an ear piercing seal up in an hour?</a></li>
<li><a href="/blog/entries/answering-some-ear-piercing-questions.php#how-to-clean-an-infection-ear-piercing">How to clean an infection from ear piercing</a></li>
<li><a href="/blog/entries/answering-some-ear-piercing-questions.php#how-to-clean-newly-pierced-ear">How to clean newly pierced helix? / How to clean newly pierced ear?</a></li>
<li><a href="/blog/entries/answering-some-ear-piercing-questions.php#contact-solution-on-ear-piercings">Can you use contact solution on ear piercings?</a></li>
<li><a href="/blog/entries/answering-some-ear-piercing-questions.php#how-long-should-you-clean-a-new-piercing-for">How long should you clean a new piercing for?</a></li>
<li><a href="/blog/entries/answering-some-ear-piercing-questions.php#how-many-times-do-i-clean-newly-pierced-ears">How many times do I clean newly pierced ears?</a></li>
<li><a href="/blog/entries/answering-some-ear-piercing-questions.php#ear-piercing-not-healing">What to do &#8211; ear piercing not healing?</a></li>
</ul>
<p><span id="more-796"></span></p>
<h3><a id="dry-skin-around-piercing">Dry skin around piercing</a></h3>
<p>This is usually caused by either cleaning the new ear piercing with the wrong solution, by over-cleaning or not removing the excess solution from the site of the piercing.</p>
<p><strong>Don&#8217;t use alcohol-based products to clean your new ear piercing</strong>, as it will dry out the surrounding skin and make it uncomfortable (itchy!) and unsightly. There&#8217;s a very good reason why using stuff like Surgical Spirit <em>hurts</em> &#8211; it&#8217;s not supposed to be used!</p>
<p><strong>Don&#8217;t clean the new ear piercing more than twice a day</strong>, <em>unless</em> you have some pussing going on, or if the new ear piercing regularly comes into contact with something dirty (hands / fingers, hair, etc) &#8211; if any of these are the case, then clean the piercing up to three times a day.</p>
<p><strong>Always remove excess solution from the site of the piercing</strong> &#8211; not doing this can eventually cause the area to become dry. You can do this the same way you clean the piercing but DON&#8217;T rub the area.</p>
<h3><a id="how-to-make-a-sea-salt-solution">How to make a sea salt solution for your ear</a></h3>
<p>Fill the kettle up and start boiling. While you&#8217;re waiting, get a large CLEAN measuring jug, a CLEAN teaspoon and some sea salt (NOT rock salt or table salt or any other type of salt!).<br />
Measure out about &frac14; of a teaspoon of the salt and pour it into the jug.<br />
When the kettle has boiled, pour out about 300ml / half a pint of the water into the jug.</p>
<p>Sit and wait for it to cool down &#8211; I like my water to be warm, so I wait around half an hour. My sister likes her water cool, so she waits for about an hour.</p>
<h3><a id="how-soon-can-you-change-a-new-piercing">How soon can you change a new ear piercing?</a></h3>
<p>This depends on the placement of the piercing &#8211; a lobe piercing can be changed after around 2 &frac12; months but a helix piercing (&#8220;top of the ear&#8221; piercing) needs to have at least 3-4 months to heal.</p>
<p>The first time you want to change the jewellery in your ear piercing, you should go back to the piercer; it costs very little (it costs around &pound;2 here) and they make sure the jewellery is clean before they insert it.</p>
<p>It&#8217;s really best to wait for as long as you can stand the jewellery. <img src='http://lirae.co.uk/wp-includes/images/smilies/wink.gif' alt=';)' class='wp-smiley' /> </p>
<h3><a id="turning-new-ear-piercing">Turning new ear piercing</a></h3>
<p><strong>Don&#8217;t twist or turn the jewellery in your new ear piercing!</strong> Doing this is kind of like picking your scabs; as the piercing is healing, there are going to be tiny new scabs inside the wound, where you can&#8217;t see or feel them. These tiny scabs will &#8220;stick&#8221; to the jewellery. By twisting the jewellery, you are effectively picking at all those tiny scabs and then rubbing them into all of the newly opened wounds; you&#8217;re increasing the chance of your new piercing becoming infected.</p>
<p>Your jewellery will not get &#8220;stuck&#8221; into one position if you don&#8217;t twist or turn the jewellery &#8211; all of those tiny scabs I mentioned will eventually be removed by your body.<br />
You&#8217;re not &#8220;helping the hole form&#8221; or &#8220;helping the healing process along&#8221; by twisting or turning the jewellery &#8211; <strong>by twisting or turning the jewellery in your new ear piercing, you&#8217;re hindering the healing process and making it go on for much longer than it needs to</strong>.</p>
<p>Also, it&#8217;s really gross.</p>
<h3><a id="can-an-ear-piercing-seal-up-in-an-hour">Can an ear piercing seal up in an hour?</a></h3>
<p>Depends on how old the piercing is and if it has an infection.</p>
<p>An unhealed piercing can &#8211; and will &#8211; heal up very quickly. This is why you should wait for as long as you can before changing the jewellery.<br />
When I was eleven and had just had my first helix piercing, I decided that I was bored with the jewellery already and wanted to change it, despite the piercing only being a week old at the time. In the time it took me to take out the original &#8220;stud&#8221; and try to put the new one in, the hole had partially closed up. My mum had to help me force the new &#8220;stud&#8221; into the hole and I ended up with a lovely infection as a result.</p>
<h3><a id="how-to-clean-an-infection-ear-piercing">How to clean an infection from ear piercing</a></h3>
<p>Bump the cleaning up to three times a day, using a <a href="#how-to-make-a-sea-salt-solution">sea salt solution</a> and make sure you keep your hair up!<br />
If the infection is still present after a week, go back to the piercer, as they can tell you what to do and where to go next. Unless the <em>piercer</em> (and no one else!) says otherwise, do not remove the jewellery! You <em>need</em> to keep the jewellery in, otherwise the wound will close up and keep the pus inside your ear. If the pus has no where to go, it will then rot and will create an even bigger infection.</p>
<p>If your ear seems fine and then suddendly swells or &#8220;puffs up&#8221;, go straight to the hospital, as this could be a very serious infection. If you&#8217;ve knocked it and it suddenly swells or &#8220;puffs up&#8221;, you don&#8217;t need to go to the hospital, but you do need to be more careful. <img src='http://lirae.co.uk/wp-includes/images/smilies/wink.gif' alt=';)' class='wp-smiley' /> </p>
<h3><a id="how-to-clean-newly-pierced-ear">How to clean newly pierced helix? / How to clean newly pierced ear?</a></h3>
<p>Make up a <a href="#how-to-make-a-sea-salt-solution">sea salt solution</a> and use clean cotton buds / q-tips.</p>
<p>You dip the cotton bud into the solution and let any excess drips &#8230; er, drip. Then place the cotton bud against the site of the piercing and roll it gently towards the end of the jewellery, while keeping it in place. Do this all around each side of the piercing (you should have two sides &#8211; front and back) and use a clean cotton bud each time.<br />
Once you&#8217;ve cleaned, use a clean and DRY cotton bud to remove the excess solution from your piercing. If you leave it on, the salt in the solution can cause dryness.</p>
<h3><a id="contact-solution-on-ear-piercings">Can you use contact solution on ear piercings?</a></h3>
<p><strong>NO.</strong></p>
<h3><a id="how-long-should-you-clean-a-new-piercing-for">How long should you clean a new piercing for?</a></h3>
<p>For as long as it takes but make sure you clean the piercing for <em>at least</em> the recommended amount of time. You can get that information from your piercer &#8211; just phone them up or go into the shop.</p>
<h3><a id="how-many-times-do-i-clean-newly-pierced-ears">How many times do I clean newly pierced ears?</a></h3>
<p>Twice a day for <em>at least</em> the recommended amount of time. This depends on the placement of the piercing and you should really ask your piercer for this information.</p>
<h3><a id="ear-piercing-not-healing">What to do &#8211; ear piercing not healing?</a></h3>
<p>Most piercers will offer free &#8220;check-ups&#8221; on the piercing you have had done with them. If you feel that your piercing is taking too long to heal or doesn&#8217;t seem to be healing at all, you should go back and see them.</p>
]]></content:encoded>
			<wfw:commentRss>http://lirae.co.uk/blog/entries/answering-some-ear-piercing-questions.php/feed</wfw:commentRss>
		<slash:comments>57</slash:comments>
		</item>
		<item>
		<title>How to properly care for a new ear piercing</title>
		<link>http://lirae.co.uk/blog/entries/how-to-properly-care-for-a-new-ear-piercing.php</link>
		<comments>http://lirae.co.uk/blog/entries/how-to-properly-care-for-a-new-ear-piercing.php#comments</comments>
		<pubDate>Sat, 28 Feb 2009 10:47:29 +0000</pubDate>
		<dc:creator>Lirae</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Other]]></category>
		<category><![CDATA[Piercings]]></category>
		<category><![CDATA[Body Modification]]></category>

		<guid isPermaLink="false">http://lirae.co.uk/?p=569</guid>
		<description><![CDATA[There are so many articles on the web and a great deal of them are inaccurate and could increase the amount of time it will take your piercing to heal. I don&#8217;t have any degrees or qualifications on the subject of body piercing but I&#8217;ve put myself through it enough times to know what you [...]]]></description>
			<content:encoded><![CDATA[<p>There are so many articles on the web and a great deal of them are inaccurate and could <em>increase</em> the amount of time it will take your piercing to heal.</p>
<p>I don&#8217;t have any degrees or qualifications on the subject of body piercing but I&#8217;ve put myself through it enough times to know what you <em>should</em> do to get those piercings healed up nice and quickly. </p>
<p><span id="more-569"></span><br />
<h3>What NOT to clean with and why</h3>
<p>A lot of the aforementioned articles will tell you to use some sort of alcohol-based solution, such as surgical spirits. NEVER use these as they can dry out the surrounding skin, causing it to become sore and dry.<br />
Alcohol-based solutions actually damage the skin cells it comes into contact with, killing them off and making it easy for an infection to get in.</p>
<p>You also shouldn&#8217;t use tea tree oil to clean piercings with. Although it has anti-bacterial properties, it&#8217;s a *bit* harsh to be putting on your skin twice a day, every day; when I did this, my piercing started looking like I&#8217;d put a cigarette out on it; the tea tree oil had burnt the skin surrounding the piercing!</p>
<p>It&#8217;s a good idea to not put any type of oil on a new piercing, as it can create a sort of seal around it, stopping the air from getting to it, stopping the solution you SHOULD use from getting to it and stopping the gunk from getting out.<br />
Not having gunk come out of the piercing may sound nice but what do you think that gunk&#8217;s going to do, if it can&#8217;t drain out of the piercing? It&#8217;ll start to rot. Not so nice, is it?</p>
<h3>What you SHOULD clean with</h3>
<p>Instead of using any fancy lotions and potions that could actually cause more damage to your piercing, you should use a sea salt solution.<br />
Some piercers will send you out with a sea salt solution but others will just give you a slip which will tell you how to make your own.</p>
<p>A sea salt solution can be made at home and costs next to nothing. The best part is that you can adjust the amount of salt you use, so if your ears start to look a little dry, you just add less salt. <img src='http://lirae.co.uk/wp-includes/images/smilies/smile.gif' alt=':)' class='wp-smiley' /> </p>
<h3>How to make the sea salt solution</h3>
<p>What you will need:</p>
<ul>
<li>A kettle</li>
<li>A jug &#8211; with measurements written on it</li>
<li>A tea spoon</li>
<li>Sea salt (which can be bought from health food shops and supermarkets and is very cheap)</li>
</ul>
<p>Fill up your kettle and turn it on. While you&#8217;re waiting, grab your jug, a tea spoon and your sea salt. Measure out a quarter of a tea spoon of your sea salt and pour it in the jug.<br />
When the kettle&#8217;s boiled, pour about half a pint / 300ml / 30cl of the boiling water in the jug.</p>
<p>You need to wait for the water to cool down; you don&#8217;t want to scald the new piercings. I like the water to still be quite warm, so I usually wait about 35-40 minutes before I clean my piercings. My sister likes it cold, so she waits at least an hour.</p>
<h3>How to clean the piercing</h3>
<p>You should use a cotton bud / q-tip (you know, those things people stick in their ear holes to &#8220;clean them&#8221;) to clean the piercings with. I buy the ones meant for babies, as the cotton is wound one more tightly and doesn&#8217;t look like it&#8217;ll fall apart when I get it wet.</p>
<p>Dip the cotton bud in the solution you&#8217;ve just made up, making sure NOT to touch the end that will come into contact with the piercing. Tap the stick part against the rim of the jug, to get rid of any drips and excess water.<br />
Place the cotton bud against the jewelry and gently, softly roll the cotton bud around the edge of the piercing.<br />
For every piercing, you will have an entrance and an exit. Make sure you use a NEW, CLEAN, UNUSED cotton bud for each. If you drop a cotton bud or accidentally touch it, discard it and get another one.</p>
<p>When you&#8217;ve cleaned the piercing, you will have a little wet patch surrounding each piercing. You will want to get rid of the little wet patches, as they contain salt (dry skin anyone?). Dry off the same way you would clean the piercing but make sure that the cotton bud is dry. <img src='http://lirae.co.uk/wp-includes/images/smilies/tongue.gif' alt=':P' class='wp-smiley' /> </p>
<p>If the area surrounding the piercing starts to look a little dry or flaky, then reduce the amount of salt you add to the solution. For example, I actually use a little more than half the amount that&#8217;s recommended, because I started having some dryness and flakyness going on around my piercings.</p>
<p>You should clean your piercing twice a day, every day for the healing period. If you&#8217;re not sure what the healing period is, ask your piercer.<br />
If you develop an infection, clean your ears three times a day but NO MORE than that, otherwise your piercing may become dry and sore.</p>
<h3>What you should and should NOT do with your new piercing</h3>
<ul>
<li>DO NOT turn or twist the jewelry. The jewelry WILL NOT get &#8220;stuck&#8221; if you don&#8217;t and your ear WILL NOT &#8220;eat&#8221; the jewelry (unless you get it so infected it swells up to gigantic proportions). By twisting or turning it, all you&#8217;re doing is pissing off your ear even further, causing new tears to open up in the piercing and reopening old ones.</li>
<li>DO leave the starter jewelry in the piercing for as long as possible, unless it&#8217;s causing irritation (IF this happens, go back to the piercer and have THEM change the jewelry). For the first jewelry change, go back to the piercer and get them to do it for you.</li>
<li>DO find out the gauge you&#8217;ve gotten pierced at and try and only buy jewelry at that gauge; you were pierced at that size for a reason.</li>
<li>DO keep your hair away from your ears for as long as possible after getting a new piercing. Just like fingernails, it doesn&#8217;t matter how often you clean your hair, it will still contain dirt. You don&#8217;t want ANY dirt in your new piercing.</li>
<li>DON&#8217;T cover the piercing with a plaster; air needs to be able to get to it.</li>
<li>DON&#8217;T touch the jewelry unless you&#8217;re cleaning it. Even then, make sure you&#8217;ve JUST washed your hands with anti-bacterial soap.</li>
<li>DON&#8217;T pick off the crusties or try to force them off while cleaning. I know it&#8217;s gross having to walk around with your hair tied up and having these nasty little scab-like things on your new holes but you&#8217;ll only risk damaging the piercing or causing an infection if you push too hard. If anyone mentions it or makes a big deal out of it, tell them to &#8220;get lost&#8221; (using your own choice words <img src='http://lirae.co.uk/wp-includes/images/smilies/wink.gif' alt=';)' class='wp-smiley' />  ).</li>
<li>DO NOT remove the jewelry if you develop an infection. When there&#8217;s an infection, there will be pus. Your jewelry gives the pus a way out of the piercing, preventing the infection from worsening.</li>
</ul>
<p>Look after your new piercing and you should have no problems.</p>
<hr />
You should take a look at my other piercing-related article, <a href="http://lirae.co.uk/blog/entries/answering-some-ear-piercing-questions.php">&#8220;Answering Some Ear Piercing Questions&#8221;</a> if you feel unsure about anything to do with your ear piercing.</p>
]]></content:encoded>
			<wfw:commentRss>http://lirae.co.uk/blog/entries/how-to-properly-care-for-a-new-ear-piercing.php/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How To Install MagpieRSS</title>
		<link>http://lirae.co.uk/blog/entries/how-to-install-magpierss.php</link>
		<comments>http://lirae.co.uk/blog/entries/how-to-install-magpierss.php#comments</comments>
		<pubDate>Fri, 08 Aug 2008 21:27:33 +0000</pubDate>
		<dc:creator>Lirae</dc:creator>
				<category><![CDATA[Almost Tutorials]]></category>
		<category><![CDATA[Articles]]></category>
		<category><![CDATA[Help]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Site Stuff]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://lirae.co.uk/?p=709</guid>
		<description><![CDATA[An easy way to understand RSS is to think of an RSS reader as a custom newspaper; you choose who writes the articles in your newspaper. The RSS feed just inserts the &#8220;article&#8221; into your &#8220;newspaper&#8221;. This is a really handy way of keeping up to date with your favourite sites; you just add the [...]]]></description>
			<content:encoded><![CDATA[<p>An easy way to understand <acronym title="Really Simple Syndication">RSS</acronym> is to think of an <acronym title="Really Simple Syndication">RSS</acronym> reader as a custom newspaper; you choose who writes the articles in your newspaper. The <acronym title="Really Simple Syndication">RSS</acronym> feed just inserts the &#8220;article&#8221; into your &#8220;newspaper&#8221;.<br />
This is a really handy way of keeping up to date with your favourite sites; you just add the <acronym title="Uniform Resource Locator">URL</acronym> of the <acronym title="Really Simple Syndication">RSS</acronym> feed into your feed reader.</p>
<p>MagpieRSS basically uses your site as a feed reader. If an <acronym title="Really Simple Syndication">RSS</acronym> feed is just a list of updates from a site, you can use your site to show updates from another site.</p>
<p>To install it, first you need to <a href="http://sourceforge.net/project/showfiles.php?group_id=55691">download MagpieRSS</a><sup>^</sup>.<br />
It&#8217;ll probably download as a .tar.gz file which you probably won&#8217;t be able to open. This doesn&#8217;t matter; you won&#8217;t need to open it anyway. As always, when you&#8217;ve downloaded it, scan it to make sure it&#8217;s virus free.</p>
<p>Upload the .tar.gz file to your root directory. You might as well do this in your cPanel because you&#8217;ll need to use it in a moment anyway.<br />
Once uploaded, use the File Manager in your cPanel and view your root folder (usually called &#8216;Document Root&#8217;).</p>
<div class="center"><img src="/foryou/almosttutorials/magpierss/1.jpg" alt="" /></div>
<p>If you&#8217;re using the fancy file manager, check the checkbox next to the MagpieRSS .tar.gz file. If you&#8217;re using the basic <acronym title="HyperText Markup Language">HTML</acronym> file manager, click on the name of the file.<br />
Click the &#8220;Extract&#8221; button.</p>
<div class="center"><img src="/foryou/almosttutorials/magpierss/2.jpg" alt="" /></div>
<p>You&#8217;ll now find that you&#8217;ve got a new folder, called &#8220;magpierss&#8221;.<br />
You don&#8217;t need to do anything else; it&#8217;s now installed. <img src='http://lirae.co.uk/wp-includes/images/smilies/smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://lirae.co.uk/blog/entries/how-to-install-magpierss.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Display Last.fm Scrobbles On Your Site</title>
		<link>http://lirae.co.uk/blog/entries/display-lastfm-scrobbles-on-your-site.php</link>
		<comments>http://lirae.co.uk/blog/entries/display-lastfm-scrobbles-on-your-site.php#comments</comments>
		<pubDate>Fri, 08 Aug 2008 20:16:35 +0000</pubDate>
		<dc:creator>Lirae</dc:creator>
				<category><![CDATA[Almost Tutorials]]></category>
		<category><![CDATA[Articles]]></category>
		<category><![CDATA[Help]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Site Stuff]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://lirae.co.uk/?p=662</guid>
		<description><![CDATA[Disclaimer: I didn&#8217;t write this script; I&#8217;ve modified David Kadavy&#8217;s TwitBlog script^ to display your Last.fm scrobbles and the time the track was scrobbled. FOR NON-WORDPRESS USERS: Before you can use this on your site, you&#8217;ll need to install MagpieRSS; this script grabs the parsed feed from MagpieRSS and displays it in a visitor-friendly way. [...]]]></description>
			<content:encoded><![CDATA[<p><small><strong>Disclaimer:</strong> I didn&#8217;t write this script; I&#8217;ve modified <a href="http://www.kadavy.net/blog/posts/twitblog-syndicating-twitter-to-my-blog/">David Kadavy&#8217;s TwitBlog script</a><sup>^</sup> to display your Last.fm scrobbles and the time the track was scrobbled.</p>
<p><strong>FOR NON-WORDPRESS USERS:</strong><br />
Before you can use this on your site, you&#8217;ll need to install MagpieRSS; this script grabs the parsed feed from MagpieRSS and displays it in a visitor-friendly way. <img src='http://lirae.co.uk/wp-includes/images/smilies/smile.gif' alt=':)' class='wp-smiley' />  (Don&#8217;t know <a href="http://lirae.co.uk/blog/entries/install-magpierss.php">how to install MagpieRSS</a>?)<br />
WordPress users don&#8217;t need to install MagpieRSS. <img src='http://lirae.co.uk/wp-includes/images/smilies/smile.gif' alt=':)' class='wp-smiley' /> </small></p>
<p>Download the <a href="/foryou/almosttutorials/last.fm.txt">Last.fm.txt file</a> (right click on the link &raquo; Save As) and open the file in Notepad.</p>
<p>Press Ctrl + G and type in 12 (this will take you to line 12).<br />
Change <code>/home/USER/public_html/magpierss/rss_fetch.inc</code> to the server path where the rss_fetch.inc file is. If you don&#8217;t know where it is, just change <strong>USER</strong> to your cPanel username.<br />
<strong>WordPress comes with MagpieRSS installed, so if you will be using this with WordPress, you will need to point the path to go to</strong> <code>/home/USER/public_html/wp-includes/rss.php</code></p>
<p>Go down to line 16 and change <code>/home/USER/public_html/cache</code> to the server path where <em>your</em> cache directory is. If you don&#8217;t know where it is but you installed MagpieRSS in your root directory, just change <strong>USER</strong> to your cPanel username.</p>
<p>Next, go down to line 19 and change <code>http://ws.audioscrobbler.com/1.0/user/lirae666/recenttracks.rss</code> to the <acronym title="Uniform Resource Locator">URL</acronym> of <em>your</em> Recent Tracks feed. (Unless you want to display what <em>I&#8217;ve</em> been listening to!)<br />
You can find this on your profile, just above the &#8220;Recently Listened Tracks&#8221; list:</p>
<div class="center"><a href="http://lirae.co.uk/foryou/almosttutorials/lastfm/1.jpg"><img src="/foryou/almosttutorials/lastfm/1.jpg" style="width: 400px;" alt="" /></a></div>
<p>Go down to line 22 if you want to change the amount of scrobbles you wish to display on your site. (I think the most amount of scrobbles you can show is 10.)</p>
<p>For now, leave line 25 as it is. This just sets how many hours ahead or behind your server time is, compared to Last.fm&#8217;s server time.<br />
If you find that the times are off, change <strong>+4</strong> to how many hours off the times are.<br />
For example: if the time the track was played is showing up as 9am, when you played it at 11am, change <strong>+4</strong> to <strong>+6</strong>. Similarly, if the time is showing up as 11am, when you played the track at 9am, change <strong>+4</strong> to <strong>+2</strong>.</p>
<p>Now resave the file as &#8220;last.fm.php&#8221; and upload it to the root directory of your site.</p>
<p>To show the list on your site, all you need to do is include the last.fm.php file in your sidebar: <code>&lt;?php include("/home/USER/public_html/last.fm.php");?&gt;</code> (change <strong>USER</strong> to your cPanel username).</p>
]]></content:encoded>
			<wfw:commentRss>http://lirae.co.uk/blog/entries/display-lastfm-scrobbles-on-your-site.php/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Displaying your recent Flickr photos without using WordPress</title>
		<link>http://lirae.co.uk/blog/entries/displaying-your-recent-flickr-photos-without-using-wordpress.php</link>
		<comments>http://lirae.co.uk/blog/entries/displaying-your-recent-flickr-photos-without-using-wordpress.php#comments</comments>
		<pubDate>Fri, 08 Jun 2007 14:48:48 +0000</pubDate>
		<dc:creator>Lirae</dc:creator>
				<category><![CDATA[Almost Tutorials]]></category>
		<category><![CDATA[Articles]]></category>
		<category><![CDATA[Flickr]]></category>
		<category><![CDATA[Help]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://littleblog.lirae.co.uk/wordpress/?p=104</guid>
		<description><![CDATA[I wanted to &#8216;pull&#8217; my recent Flickr photos^ and display them on my site. All of the scripts I found were actually WordPress (or other blogging tools) plugins. I sort of gave up on the idea until last night, when I joined Twitter^; I wanted to display my twitters on my site. I found a [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to &#8216;pull&#8217; <a href="http://flickr.com/photos/lirae">my recent Flickr photos</a><sup>^</sup> and display them on my site. All of the scripts I found were actually WordPress (or other blogging tools) plugins.</p>
<p>I sort of gave up on the idea until last night, when <a href="http://twitter.com/lirae">I joined Twitter</a><sup>^</sup>; I wanted to display my twitters on my site. I found a JavaScript snippet that would do it for me but it kept killing Internet Explorer, so I kept looking around and found a script called <a href="http://www.kadavy.net/blog/archive/2006/11/my_twitters_are.php" class="broken_link">TwitBlog</a><sup>^</sup>.</p>
<p>TwitBlog requires <a href="http://magpierss.sourceforge.net">Magpie RSS</a><sup>^</sup> to be installed; the script is actually pulling your Twitters from the RSS feed and displaying it in HTML format and the RSS feed is parsed with Magpie RSS. (Don&#8217;t know <a href="http://lirae.co.uk/blog/entries/install-magpierss.php">how to install MagpieRSS</a>?)</p>
<p>I then Googled &#8216;flickr rss parser&#8217; and came across a script called GetFlickrPHP<sup>^</sup> (the link no longer works, so you can download <a href="/foryou/almosttutorials/GetFlickrPHP.txt">a copy of GetFlickrPHP</a> from here), which did the whole &#8216;display in HTML format&#8217; thing for me. <img src='http://lirae.co.uk/wp-includes/images/smilies/wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>To get it working, I had to <a href="http://idgettr.com">find my Flickr ID</a><sup>^</sup> and then modify the variables, near the top of the script. This is what my variables are set to:</p>
<p><code># set what type of tag you're pulling from flickr<br />
# 0 = tag; 1 = user; 2 = group pool<br />
$tagtype = 1;<br />
# set the tag to pull from flickr (tag, user or group pool)<br />
# example: "cats", "44124462494@N01", "circle"<br />
$tag = "46498153@N00";<br />
# set default value for number of pictures to show<br />
# (flickr show maximum of 10 photos in feed)<br />
$num_items = 9;<br />
# set to true to use medium pics, otherwise it uses small<br />
$mediumPics = false;<br />
# set location of Magpie RSS files<br />
# require_once('magpierss/rss_fetch.inc');<br />
# require_once('magpierss/rss_utils.inc');<br />
require_once('/home/user/public_html/magpierss_installed/rss_fetch.inc');<br />
require_once('/home/user/public_html/magpierss_installed/rss_utils.inc');<br />
# use image cache &#038; set location<br />
$useImageCache = false;<br />
$cachePath="http://www.thebishop.net/news/cache/";<br />
$fullPath="/home/tbishop61/www/news/cache/";</code></p>
<p>Easy! <img src='http://lirae.co.uk/wp-includes/images/smilies/grin.gif' alt=':D' class='wp-smiley' />  I just wish someone had done this before me <em>and talked about it</em>!</p>
]]></content:encoded>
			<wfw:commentRss>http://lirae.co.uk/blog/entries/displaying-your-recent-flickr-photos-without-using-wordpress.php/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Stylesheet Switcher</title>
		<link>http://lirae.co.uk/blog/entries/stylesheet-switcher.php</link>
		<comments>http://lirae.co.uk/blog/entries/stylesheet-switcher.php#comments</comments>
		<pubDate>Mon, 01 Jan 2007 21:52:22 +0000</pubDate>
		<dc:creator>Lirae</dc:creator>
				<category><![CDATA[Almost Tutorials]]></category>
		<category><![CDATA[Articles]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Help]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Site]]></category>
		<category><![CDATA[Site Stuff]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://lirae.co.uk/?p=736</guid>
		<description><![CDATA[A stylesheet switcher is kind of like skinning your site, except that the only thing that changes is the stylesheet; everything else stays exactly the same. You must already have some knowledge of using &#8220;PHP Includes&#8221;. Getting Ready The first thing you need to do is to set up a new folder in your root [...]]]></description>
			<content:encoded><![CDATA[<p>A stylesheet switcher is kind of like skinning your site, except that the only thing that changes is the stylesheet; everything else stays <em>exactly the same</em>.</p>
<p>You must already have some knowledge of using &#8220;<acronym title="PHP: Hypertext Preprocessor">PHP</acronym> Includes&#8221;.</p>
<h3>Getting Ready</h3>
<p>The first thing you need to do is to set up a new folder in your root directory called &#8220;styles&#8221;. The &#8220;styles&#8221; folder is where all of your different stylesheets should be placed.<br />
When you add new stylesheets, name them &#8220;style1.css&#8221;, &#8220;style2.css&#8221;, &#8220;style3.css&#8221;, etc.</p>
<ul>
<li>root directory
<ul>
<li>styles/
<ul>
<li>style1.css</li>
<li>style2.css</li>
<li>style3.css</li>
</ul>
</li>
</ul>
</li>
</ul>
<p>Once you&#8217;ve done this, you can upload the &#8220;styles&#8221; folder (containing your stylesheets and any images) and move onto the next step.</p>
<h3>Coding</h3>
<p>First, we&#8217;ll need to make the file that will control how many styles you have, which style is the default, allow the user to change style, etc.<br />
This file will be called &#8220;styles.php&#8221; and will be uploaded to your <em>root directory</em>.</p>
<p><a href="/foryou/almosttutorials/stylesheetswitcher.txt">Download stylesheetswitcher.txt</a>.</p>
<p>You&#8217;ll only need to edit the first chunk of coding:<br />
<code>$path = &quot;/home/YOURUSERNAME/public_html/styles/&quot;;<br />
$defaultstyle = 2;<br />
$totalstyles = 3;</code></p>
<ul>
<li>Change <strong>YOURUSERNAME</strong> to your site&#8217;s username. Since you already use includes, you should know your site&#8217;s username. <img src='http://lirae.co.uk/wp-includes/images/smilies/wink.gif' alt=';)' class='wp-smiley' /> </li>
<li><strong>$defaultstyle = 2</strong> &#8211; change the number to the number of the style you want to be the default (self explanatory, really).</li>
<li><strong>$totalstyles = 3</strong> &#8211; change this to the number of styles you have&#8230;</li>
</ul>
<p><em>You will not need to edit anything else in that file.</em><br />
Reupload the file now. Please. <img src='http://lirae.co.uk/wp-includes/images/smilies/tongue.gif' alt=':P' class='wp-smiley' /> </p>
<p>Open up your header.php file and add this to the top of the page (<strong>before anything else</strong>):<br />
<code>&lt;?php include(&quot;/home/USERNAME/public_html/styles.php&quot;);&gt;</code></p>
<p>Now replace the &#8220;link&#8221; to your stylesheet with this:<br />
<code>&lt;link rel=&quot;stylesheet&quot; href=&quot;/styles/style&lt;?php print $currentstyle;?&gt;.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot; /&gt;</code></p>
<p>Unless you&#8217;ve screwed up along the way (unlikely since you&#8217;re most definitely not skim reading this, are you?), everything should work perfectly.</p>
<h3>Switching The Stylesheet</h3>
<p>There&#8217;s a reason why &#8220;styles.php&#8221; is included into every page; the visitor can change the style with no preview page crap and they won&#8217;t lose the page they&#8217;re currently on. Woohoo!</p>
<p>Anyway, the link to change the style is &#8220;?switchstyle=[stylenumber]&#8220;.<br />
Example:<br />
<code>&lt;a href="?switchstyle=1"&gt;Name Of Style 1&lt;/a&gt;<br />
&lt;a href="?switchstyle=2"&gt;Name Of Style 2&lt;/a&gt;<br />
&lt;a href="?switchstyle=3"&gt;Name Of Style 3&lt;/a&gt;</code><br />
These links can go on any page since you&#8217;re including the file which switches the stylesheet in the file which is included into every page.</p>
]]></content:encoded>
			<wfw:commentRss>http://lirae.co.uk/blog/entries/stylesheet-switcher.php/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Skinning vs Stylesheet Switcher</title>
		<link>http://lirae.co.uk/blog/entries/skinning-vs-stylesheet-switcher.php</link>
		<comments>http://lirae.co.uk/blog/entries/skinning-vs-stylesheet-switcher.php#comments</comments>
		<pubDate>Mon, 01 Jan 2007 21:51:23 +0000</pubDate>
		<dc:creator>Lirae</dc:creator>
				<category><![CDATA[Almost Tutorials]]></category>
		<category><![CDATA[Articles]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Help]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://lirae.co.uk/?p=733</guid>
		<description><![CDATA[When I first put them up, I received a lot of criticism on my Div Skinning tutorial and Iframes / Frames Skinning tutorial. It had nothing to do with the code or the method; it was because I was showing people how to skin when they could just use a stylesheet switcher instead. Good point. [...]]]></description>
			<content:encoded><![CDATA[<p>When I first put them up, I received a lot of criticism on my <a href="http://lirae.co.uk/blog/entries/div-skinning.php">Div Skinning tutorial</a> and <a href="http://lirae.co.uk/blog/entries/iframe-skinning.php">Iframes / Frames Skinning tutorial</a>. It had nothing to do with the code or the method; it was because I was showing people how to <em>skin</em> when they could just use a stylesheet switcher instead.</p>
<p>Good point. Except, when I was asked to write the iframe / frame skinning tutorial, it was for someone who wanted to be able to switch between iframes and frames on their site. Something which couldn&#8217;t be done by just changing the <acronym title="Cascading Style Sheets">CSS</acronym>.<br />
Someone else asked me to modify it so they could use the method in their div layouts, which I &#8211; obviously &#8211; did.<br />
And now, I&#8217;ve written up a <a href="http://lirae.co.uk/blog/entries/stylesheet-switcher.php">Stylesheet Switcher tutorial</a>. <img src='http://lirae.co.uk/wp-includes/images/smilies/smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>If all of your layouts use exactly the same <acronym title="HyperText Markup Language">HTML</acronym>, you should use a <em>stylesheet switcher</em>.<br />
For those of us who change the <acronym title="HyperText Markup Language">HTML</acronym> of our layouts, then we need to <em>skin</em> our sites.</p>
]]></content:encoded>
			<wfw:commentRss>http://lirae.co.uk/blog/entries/skinning-vs-stylesheet-switcher.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Iframe Skinning</title>
		<link>http://lirae.co.uk/blog/entries/iframe-skinning.php</link>
		<comments>http://lirae.co.uk/blog/entries/iframe-skinning.php#comments</comments>
		<pubDate>Mon, 01 Jan 2007 21:47:57 +0000</pubDate>
		<dc:creator>Lirae</dc:creator>
				<category><![CDATA[Almost Tutorials]]></category>
		<category><![CDATA[Articles]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Help]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://lirae.co.uk/?p=729</guid>
		<description><![CDATA[Skinning with PHP is easy; shove in a bit of code here and a bit of code there, make a couple of different layouts and there you have it: a skinned website. You must already have some knowledge of using &#8220;PHP Includes&#8221;. (Skinning is basically the same as using includes, you just have a few [...]]]></description>
			<content:encoded><![CDATA[<p>Skinning with <acronym title="PHP: Hypertext Preprocessor">PHP</acronym> is easy; shove in a bit of code here and a bit of code there, make a couple of different layouts and there you have it: a skinned website.</p>
<p>You must already have some knowledge of using &#8220;<acronym title="PHP: Hypertext Preprocessor">PHP</acronym> Includes&#8221;.<br />
(Skinning is basically the same as using includes, you just have a few extra lines of code, is all.)</p>
<h3>Getting Ready</h3>
<p>The first thing you need to do is to set up a new folder in your root directory called &#8220;skins&#8221;. Inside &#8220;skins&#8221;, add a <em>numbered</em> folder for each different skin you have; if you have 3 skins, the folders will look like this:</p>
<ul>
<li>root directory
<ul>
<li>skins/
<ul>
<li>1/</li>
<li>2/</li>
<li>3/</li>
</ul>
</li>
</ul>
</li>
</ul>
<p>Within each numbered folder, you&#8217;ll need to have a &#8220;header.php&#8221;, &#8220;footer.php&#8221;, your stylesheet, the iframes / frame page (the one with all of the codes) and layout-specific images you&#8217;ll be using.</p>
<p>Once you&#8217;ve done this, you can upload the folders and move onto the next step.</p>
<h3>Coding</h3>
<p>First, we&#8217;ll need to make the file which will control how many skins you have, which skin is the default skin, allow the user to change skins, the path to the header.php, footer.php &amp; frames.php files, <acronym title="et cetera">etc</acronym>.<br />
This file will be called &#8220;skins.php&#8221; and will be uploaded to your <em>root directory</em>.</p>
<p><a href="/foryou/almosttutorials/iframeskins.txt">Download iframeskins.txt</a>.</p>
<p>You&#8217;ll only need to edit the first chunk of coding:<br />
<code>$path = "/home/YOURUSERNAME/public_html/skins/";<br />
$header = "/header.php";<br />
$footer = "/footer.php";<br />
$frames = "/frames.php";<br />
$defaultskin = 2;<br />
$totalskins = 3;</code></p>
<ul>
<li>Change <strong>YOURUSERNAME</strong> to your site&#8217;s username. Since you already use includes, you should know your site&#8217;s username. <img src='http://lirae.co.uk/wp-includes/images/smilies/wink.gif' alt=';)' class='wp-smiley' /> </li>
<li>$header, $footer &amp; $frames <em>will not need changing</em>.</li>
<li><strong>$defaultskin = 2</strong> &#8211; change the number to the number of the skin you want to be the default (self explanatory, really).</li>
<li><strong>$totalskins = 3</strong> &#8211; change this to the number of skins you have&#8230;</li>
</ul>
<p><em>You will not need to edit anything else in that file.</em><br />
Reupload the file now. Please. <img src='http://lirae.co.uk/wp-includes/images/smilies/tongue.gif' alt=':P' class='wp-smiley' /> </p>
<p>Go through every single page on your site and replace your header include (the one at the top of every page&#8230;) with this:<br />
<code>&lt;?php<br />
$rootpath = trim(strip_tags($_SERVER['DOCUMENT_ROOT']));<br />
@require("{$rootpath}/skins.php"); @include "$headerfile";<br />
?&gt;</code><br />
What that basically does is grab the server path and makes sure it&#8217;s clean, then <em>requires</em> that the &#8220;/skins.php&#8221; file be included before including the header file.<br />
(If &#8220;/skins.php&#8221; doesn&#8217;t exist, the page will stop loading.)</p>
<p>&#8230;now replace your footer include (the one at the bottom of every page&#8230;) with this code:<br />
<code>&lt;?php @include "$footerfile";?&gt;</code><br />
That just includes the footer file. <img src='http://lirae.co.uk/wp-includes/images/smilies/smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>You&#8217;ll also need to make a page called &#8220;enter.php&#8221; or something; this page will hold the code for your iframes / frames layout.<br />
Add this code into the page:<br />
<code>&lt;?php $rootpath = trim(strip_tags($_SERVER['DOCUMENT_ROOT']));<br />
@require("{$rootpath}/skins.php"); @include "$framesfile";?&gt;</code><br />
That is all that will be needed in the &#8220;enter.php&#8221; page; the <code>&lt;html&gt; &lt;head&gt; &lt;title&gt; &lt;title&gt; &lt;/head&gt; &lt;body&gt; ... &lt;/body&gt; &lt;/html&gt;</code> tags will be in the frames.php pages. <img src='http://lirae.co.uk/wp-includes/images/smilies/smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>{If you want a centered iframes layout, you&#8217;ll need to have the centered iframes code in the &#8220;frames.php&#8221; file [which will be included into the "enter.php" file...] and make a new file in the same folder called something else, like &#8220;iframes.php&#8221;.}</p>
<p>Unless you&#8217;ve screwed up along the way (unlikely since you&#8217;re most definitely not skim reading this, are you?), everything should work perfectly.</p>
<h3>Changing The Skins</h3>
<p>The link to change the skin is &#8220;?switchskin=[skinnumber]&#8220;.<br />
Example:<br />
<code>&lt;a href="?switchskin=1" target="_top"&gt;Name Of Skin 1&lt;/a&gt;<br />
&lt;a href="?switchskin=2" target="_top"&gt;Name Of Skin 2&lt;/a&gt;<br />
&lt;a href="?switchskin=3" target="_top"&gt;Name Of Skin 3&lt;/a&gt;</code><br />
These links should go on your splash page or something; when the user clicks the link, they&#8217;ll be redirected back to the page they just came from&#8230;which might cause some confusion if the links were placed in an in-frame page and then redirected to <em>just</em> that page; no actual layout.</p>
<h3>Miscellaneous</h3>
<p>You can show the visitor which skin they&#8217;re currently using by inserting this snippet wherever you want:<br />
<code>You are currently using skin number &lt;?php print $currentskin;?&gt;!</code></p>
<p>You could also have an image that changes with the skin the person is using:<br />
<code>&lt;img src="http://site.com/skins/&lt;?php print $currentskin;?&gt;/image.gif" alt="short description" /&gt;</code></p>
<p>You could even insert custom layout information in your sidebar (or something):<br />
<code>&lt;?php @include("{$rootpath}/skins/{$currentskin}/info.php");?&gt;</code></p>
<p><strong>You should be aware though</strong> that $_SERVER['DOCUMENT_ROOT'] can be easily spoofed by a nasty visitor (I&#8217;ve also noticed that it refuses to work with AwardSpace.com).<br />
If you&#8217;d rather be safe than sorry, delete this line:<br />
<code>$rootpath = trim(strip_tags($_SERVER['DOCUMENT_ROOT']));</code><br />
and replace:<br />
<code>{$rootpath}</code><br />
with:<br />
<code>/home/YOURUSERNAME/public_html</code><br />
You&#8217;ll need to know your <a href="http://lirae.co.uk/blog/entries/absolute-path.php">absolute path</a> though.</p>
]]></content:encoded>
			<wfw:commentRss>http://lirae.co.uk/blog/entries/iframe-skinning.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

