<?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>chez michel &#187; wordpress</title>
	<atom:link href="http://michel.wermelinger.ws/chezmichel/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://michel.wermelinger.ws/chezmichel</link>
	<description>a self-explanatory site</description>
	<lastBuildDate>Wed, 11 Jan 2012 14:13:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Showing your Web 2.0 presence</title>
		<link>http://michel.wermelinger.ws/chezmichel/2009/09/showing-your-web-2-0-presence/</link>
		<comments>http://michel.wermelinger.ws/chezmichel/2009/09/showing-your-web-2-0-presence/#comments</comments>
		<pubDate>Sun, 20 Sep 2009 17:11:01 +0000</pubDate>
		<dc:creator>mw</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://michel.wermelinger.ws/chezmichel/?p=413</guid>
		<description><![CDATA[Many (but not all) Web 2.0 sites provide little badges or widgets to insert in your own blog and thereby link to those sites.  Additionally, we are spoilt for choice with all those designer-made eye-candy badges, like a cute little blue bird asking your readers to follow you on Twitter. After coming across Ben Godfrey&#8216;s [...]]]></description>
			<content:encoded><![CDATA[<p>Many (but not all) Web 2.0 sites provide little badges or widgets to insert in your own blog and thereby link to those sites.  Additionally, we are spoilt for choice with all those designer-made eye-candy badges, like a cute little blue bird asking your readers to follow you on Twitter. After coming across <a href="http://aftnn.org/about/" target="_blank">Ben Godfrey</a>&#8216;s site, I decided I wanted to take the same simple yet visual, compact, and general approach: a list of site names, together with their <a href="http://en.wikipedia.org/wiki/Favicon" target="_blank">favicons</a>, linking to my accounts on those sites. Ben uses some CSS magic which I couldn&#8217;t understand, but after some trials and errors, I found a way to replicate his approach.</p>
<p>Using WordPress&#8217;s <a href="http://codex.wordpress.org/Widgets_SubPanel" target="_blank">text widget</a>, which allows to put any plain text or HTML in the sidebar, it&#8217;s a breeze to make such a list. The HTML code</p>
<pre>&lt;ul&gt;&lt;li&gt;
&lt;a href="http://bibsonomy.org/user/michelw" title="papers"&gt;&lt;img
src="http://bibsonomy.org/favicon.ico" style="vertical-align:middle"
&gt; Bibsonomy&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;
&lt;a href="http://www.linkedin.com/in/michelwermelinger" title="contacts"&gt;&lt;img
src="http://www.linkedin.com/favicon.ico" style="vertical-align:middle"
&gt; LinkedIn&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;</pre>
<p>will generate this list:</p>
<ul>
<li> <a title="papers" href="http://bibsonomy.org/user/michelw"><img style="vertical-align:middle" src="http://bibsonomy.org/favicon.ico" alt="" /> Bibsonomy</a></li>
<li> <a title="contacts" href="http://www.linkedin.com/in/michelwermelinger"><img style="vertical-align:middle" src="http://www.linkedin.com/favicon.ico" alt="" /> LinkedIn</a></li>
</ul>
<p>The only problem is if the site doesn&#8217;t have a favicon file. The best is to <a href="http://www.labnol.org/internet/get-favicon-image-of-websites-with-google/4404/" target="_blank">use Google to obtain the favicon</a> for a given domain, because  it will return a default globe icon if no favicon can be found. In the HTML code above, simply use as image source <code>src="http://www.google.com/s2/favicons?domain=bibsonomy.org"</code> or similar.</p>
]]></content:encoded>
			<wfw:commentRss>http://michel.wermelinger.ws/chezmichel/2009/09/showing-your-web-2-0-presence/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Merging blogs</title>
		<link>http://michel.wermelinger.ws/chezmichel/2009/09/merging-blogs/</link>
		<comments>http://michel.wermelinger.ws/chezmichel/2009/09/merging-blogs/#comments</comments>
		<pubDate>Sun, 20 Sep 2009 14:05:58 +0000</pubDate>
		<dc:creator>mw</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://michel.wermelinger.ws/chezmichel/?p=407</guid>
		<description><![CDATA[I finally became reasonable and admitted to myself that there is no point in maintaining two separate blogs about Computing, this one and one on digital art, especially if the latter had so few updates. I hence looked for a way to transfer all the content from that blog to this one. A quick search [...]]]></description>
			<content:encoded><![CDATA[<p>I finally became reasonable and admitted to myself that there is no point in maintaining two separate blogs about Computing, this one and one on digital art, especially if the latter had so few updates. I hence looked for a way to transfer all the content from that blog to this one. A quick search returned <a href="http://markjaquith.wordpress.com/2009/01/14/tip-for-merging-two-wordpress-blogs/" target="_blank">a post</a> by one of the WordPress developers, with the gist of the solution: just use the built-in <a href="http://codex.wordpress.org/Administration_Panels#Tools_-_Managing_your_Blog" target="_blank">export/import functionality</a> to save all posts, pages, comments, categories and tags from the blog to be deleted and then load them into the blog to be kept.</p>
<p>Of course, if you have added lots of widgets to and customized the theme of your retired blog, all that will be lost, and you will have to decide whether and how to change the look and feel of the kept blog in order to accommodate the content of the retired blog. No automation can help you in that&#8230; However, I&#8217;d expect links and their categories to also be exported, but they aren&#8217;t. Hence, if you have lots of links and blogrolls on your sidebars, I have no clue how to easily copy them to another blog. Fortunately, that was not the case with my digital art blog to be retired; a simple transfer of posts (and their comments, categories and tags) was all I needed.</p>
<p>I was pleasently surprised when the import process offered to also get the files uploaded to the retired blog. Since it used some Java applets, this would be really useful. Unfortunately, I got error messages saying &#8216;unknown file extension&#8217;: apparently only certain file attachments can be imported. Oh well, no big problem. I logged into my web hosting service, where I keep all my blogs in separate sub-folders, and used the cPanel file manager to move all uploaded files from one blog&#8217;s folder to the other, and then delete the retired blog&#8217;s folder. Back to the main cPanel view, I used the <em>Manage redirects</em> functionality in the <em>Domains</em> sub-panel, in order to make all URLs of the form <code>http://michel.wermelinger.ws/digitar-te</code> (the retired blog) redirect to <code>http://michel.wermelinger.ws/chezmichel</code> (this blog). Since I use the same permalink format in both blogs, namely year/month/post-title, any links to my retired blog will correctly resolve to the corresponding posts or files in this blog.</p>
<p>To sum up, the export/import facilities of WordPress go a long way to help the merging of blogs, but be prepared to do quite some manual tweaking, especially if the two blogs are very dissimilar in the presentation of their content. Among the things to consider are the merging of different permalink structures, &#8216;About&#8217; pages, and blogrolls.</p>
]]></content:encoded>
			<wfw:commentRss>http://michel.wermelinger.ws/chezmichel/2009/09/merging-blogs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Unstandard</title>
		<link>http://michel.wermelinger.ws/chezmichel/2009/08/the-unstandard/</link>
		<comments>http://michel.wermelinger.ws/chezmichel/2009/08/the-unstandard/#comments</comments>
		<pubDate>Mon, 31 Aug 2009 12:48:44 +0000</pubDate>
		<dc:creator>mw</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[themes]]></category>

		<guid isPermaLink="false">http://michel.wermelinger.ws/chezmichel/?p=322</guid>
		<description><![CDATA[For my new stamp blog, I looked for a highly visual layout, and came across The Unstandard, a WordPress theme that influenced others. The basic idea is that each blog post is represented by a single image in the index pages (i.e. the home, archive, category, tag and search result pages), instead of being inserted [...]]]></description>
			<content:encoded><![CDATA[<p>For my new <a href="http://michel.wermelinger.ws/postugal" target="_blank">stamp blog</a>, I looked for a highly visual layout, and came across <a href="http://5thirtyone.com/the-unstandard" target="_blank">The Unstandard</a>, a WordPress theme that influenced others. The basic idea is that each blog post is represented by a single image in the index pages (i.e. the home, archive, category, tag and search result pages), instead of being inserted in full or as an excerpt, as most themes do.  Since I aimed for the blog to somehow mimic a stamp album, having index pages display just stamp images was ideal.</p>
<p>The theme is very easy to use. <span id="more-322"></span>When writing each post, add two <a href="http://codex.wordpress.org/Using_Custom_Fields" target="_blank">custom fields</a>, named <code>lead_image</code> and <code>secondary_image</code>. The value of each field is the URL of an image, which can be external to your site or have been previously uploaded. The larger lead image will appear at the top of your blog post, while the smaller secondary image will appear in the index pages. The theme automatically crops the images to the dimensions needed. This means you can use the same URL for both custom fields, which is what I do in my stamp blog: each post is about a group of stamps and I select one of them to be featured both in the post header and in the index pages. I think that using the same image is better, because it provides &#8216;navigational continuity&#8217; when the blog visitors select a post from an index page. The <a href="http://theunstandard.5thirtyone.com" target="_blank">theme demo</a> site also uses the same images for post headers and index pages. The theme crops the images by selecting the central part and enlarging to the required ratio. This usually works fine, but occasionally the relevant part of the image is not in the middle. In those cases you have to crop your images on your computer (593 x 225 pixels for the lead image and 293 x 150 pixels for the secondary image) and then upload them.</p>
<p>Version 1.2.1 of the theme has some problems, and to fix them I had to find my way through the PHP and CSS files in the <a href="http://codex.wordpress.org/Appearance_Editor_SubPanel" target="_blank">Appearance&gt;Editor</a> administration panel. Here is a list of the problems, my fixes, and the solutions I&#8217;d like to see in the next release of the theme, in the hope it&#8217;s useful for other users of this great theme.</p>
<ol>
<li><strong>Problem</strong>: Clicking the &#8216;About&#8217; button at the top of each page doesn&#8217;t do anything.<br />
<strong>Fix</strong>: Replace <code>/#</code> by <code>/about</code> in <code>header.php</code>.<br />
<strong>Solution</strong>: This change should be part of the next version, so that at least there is an error message if the user hasn&#8217;t created the &#8216;About&#8217; page.</li>
<li><strong>Problem</strong>: Categories are shown in multiple columns at the bottom of each post. I prefer them on the sidebar, using the usual categories widget.<br />
<strong>Fix</strong>: In files <code>page.php</code>, <code>single.php</code> and <code>index.php</code> delete the line of code that includes the <code>show_categories.php</code> file.<br />
<strong>Solution</strong>: Create a theme option that allows to turn categories at the bottom on or off.</li>
<li><strong>Problem</strong>: HTML tags like <code>&lt;strong&gt;</code>, <code>&lt;code&gt;</code> and <code>&lt;em&gt;</code> are ignored, forcing one to use the HTML editor to write posts, in order to use alternative HTML tags like <code>&lt;b&gt;</code>.<br />
<strong>Fix</strong>: Delete those tags in <code>reset.css</code>, so that their default behaviour is in effect.<br />
<strong>Solution</strong>: I&#8217;m not a CSS expert, so there may be a better way to do it.</li>
<li><strong>Problem</strong>: The blog&#8217;s tagline is not shown below the blog&#8217;s name.<br />
<strong>Fix</strong>: Insert a PHP call to <code>bloginfo('description');</code> in <code>header_text.php</code>.<br />
<strong>Solution</strong>: Do proper styling of the tagline.</li>
<li><strong>Problem</strong>: The number of comments is superposed on the secondary images. This obscures them and doesn&#8217;t look good if most posts have no comments.<br />
<strong>Fix</strong>: Delete the <code>post-comments</code> class in <code>index.php</code>.<br />
<strong>Solution</strong>: Provide a theme option that allows this feature to be turned on or off.</li>
<li><strong>Problem</strong>: The date format of a post is hard-wired to <code>'M jS Y'</code> (e.g. &#8216;Aug 31st 1999&#8242;).<br />
<strong>Fix</strong>: Changed it to <code>'j F Y'</code> (i.e. &#8217;31 August 1999&#8242;) in <code>single.php</code>.<br />
<strong>Solution</strong>: Ideally, the theme would automatically pick up the format chosen in the <a href="http://codex.wordpress.org/Settings_General_SubPanel" target="_blank">Settings&gt;General</a> administration panel.</li>
<li><strong>Problem</strong>: If a blog post hasn&#8217;t been tagged, the box below the post will just state &#8216;This post has been tagged&#8217;, because it assumes a list of tags will follow.<br />
<strong>Fix</strong>: In <code>single.php</code>, change the text within the <code>for-tags</code> paragraph to the following (note the punctuation and spacing)<code>:</code></li>
</ol>
<pre><code>This post is &lt;?php if (!get_the_tag_list()) echo 'not'; ?&gt;
tagged&lt;?php the_tags(' ', ', ', ''); ?&gt;.</code></pre>
<p>I also did another small change to the theme, which is a matter of taste: in <code>style.css</code> I reduced the opacity of the title box over the stamp images from 80% to 70%.</p>
]]></content:encoded>
			<wfw:commentRss>http://michel.wermelinger.ws/chezmichel/2009/08/the-unstandard/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Sumer is icumen in</title>
		<link>http://michel.wermelinger.ws/chezmichel/2009/06/sumer-is-icumen-in/</link>
		<comments>http://michel.wermelinger.ws/chezmichel/2009/06/sumer-is-icumen-in/#comments</comments>
		<pubDate>Sun, 21 Jun 2009 10:48:15 +0000</pubDate>
		<dc:creator>mw</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[themes]]></category>

		<guid isPermaLink="false">http://michel.wermelinger.ws/chezmichel/?p=297</guid>
		<description><![CDATA[A few days ago, the forecast for today was a hot sunny day, to properly mark the start of Summer. In turned out to be a windy overcast morning and a warm sunny evening with a light breeze, at least in my neck of the woods. Although today felt more like early Fall (my favourite [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Maple Leaf theme" href="http://www.templatelite.com/maple-leaf-free-wordpress-theme"><img class="alignleft" style="margin: 3px;" title="Maple Leaf theme" src="http://www.templatelite.com/uploads/2009/02/mapleleaf-450x400.jpg" alt="Maple Leaf theme screenshot" width="300" height="255" /></a>A few days ago, the forecast for today was a hot sunny day, to properly mark the start of Summer. In turned out to be a windy overcast morning and a warm sunny evening with a light breeze, at least in my neck of the woods. Although today felt more like early Fall (my favourite time of the year) than Summer, I took the date to be a symbolic opportunity to change the markedly autumnal look of my blog de to the <a href="http://www.templatelite.com/maple-leaf-free-wordpress-theme/" target="_blank">Maple Leaf</a> theme shown left. It has served me well for the past months, but it was time to get something less seasonal.<span id="more-297"></span></p>
<p>I could have just replaced the falling leaves photo in the header by some photo of beach and sea or the like, but it wouldn&#8217;t match the foliage on the sides. Moreover,  I wasn&#8217;t complete satisfied with the greyish green or the fonts used by Maple Leaf. Installing and trying out different WordPress themes <a href="http://codex.wordpress.org/Using_Themes#Adding_New_Themes" target="_blank">is a breeze</a>, the problem is choosing among the thousands of freely available themes.</p>
<p>After spending several hours during the past days (I&#8217;m insane, I know) surfing the web and trying out various ones, I settled for the <a href="http://www.prelovac.com/vladimir/wordpress-themes/amazing-grace" target="_blank">Amazing Grace</a> theme you&#8217;re looking at. Its green-based colour scheme establishes some continuation with the previous look of my blog, while definitely improving on the typography, with a large and readable font. Other things I like about Amazing Grace:</p>
<ul>
<li>the compact header, avoiding wasting valuable screen estate on small laptops and netbooks;</li>
<li>the RSS feed icon and its placement in the header;</li>
<li>the small colourful icons to provide visual cues on a post&#8217;s date, categories and comments;</li>
<li>the horizontal layout of the categories in the header;</li>
<li>the rotating photos in the header, which can help keep the blog in tune with seasons.</li>
</ul>
<p>Unfortunately, no theme is perfect and there are also some drawbacks:</p>
<ul>
<li>the title of the blog doesn&#8217;t appear in the browser window and tabbed windows in Firefox;</li>
<li>the date and author of a post are unnecessarily repeated;</li>
<li>there is no icon for tags and they aren&#8217;t separated from the post;</li>
<li>the second sidebar makes the main column narrower, leading to more scrolling.</li>
</ul>
<p>Fortunately, Amazing Graze has a dedicated forum on the author&#8217;s website, so hopefully someone will be able to help me fix some of those minor snags. Overall, it&#8217;s a good looking, clean and readable theme.</p>
]]></content:encoded>
			<wfw:commentRss>http://michel.wermelinger.ws/chezmichel/2009/06/sumer-is-icumen-in/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrading WordPress</title>
		<link>http://michel.wermelinger.ws/chezmichel/2009/01/upgrading-wordpress/</link>
		<comments>http://michel.wermelinger.ws/chezmichel/2009/01/upgrading-wordpress/#comments</comments>
		<pubDate>Sun, 11 Jan 2009 22:34:23 +0000</pubDate>
		<dc:creator>mw</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://michel.wermelinger.ws/chezmichel/?p=146</guid>
		<description><![CDATA[It&#8217;s been over 1 month since I wrote here but that doesn&#8217;t mean I haven&#8217;t been blogging; I just have been writing elsewhere, namely in my games blog (follow the ludossier link on the sidebar). Today I upgraded my three blogs to WordPress 2.7, which has a completely redesigned Dashboard, easier to use and with [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been over 1 month since I wrote here <img src='http://michel.wermelinger.ws/chezmichel/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  but that doesn&#8217;t mean I haven&#8217;t been blogging; I just have been writing elsewhere, namely in my games blog (follow the ludossier link on the sidebar). Today I upgraded my three blogs to WordPress 2.7, which has a completely redesigned Dashboard, easier to use and with more functionalities. <span id="more-146"></span>Although some of my previous posts explaining WordPress have become slightly outdated in some places, they&#8217;re still valid for the most part. The interface looks different, but the organisation of the panels remained the same. So, the WordPress features are still in the same place and are obtained in the same way.</p>
<p>I first looked up the Codex to see how to <a href="http://codex.wordpress.org/Upgrading_WordPress" target="_blank">upgrade a WordPress installation</a>, but I didn&#8217;t like the process. It involves backing up the current installation and then overwriting it with the new installation, but making sure to handle some special cases. It sounded too fidgety to me. So, I came up with the following process, and so far I haven&#8217;t found any errors in the upgraded blogs.</p>
<ol>
<li>Log into your blog&#8217;s administration panels and deactivate any plugins that might conflict with the upgrade. For example, I deactivated a plugin that improves the menu structure, because it has been completely changed in version 2.7.</li>
<li>Log out of WordPress and log into your web host&#8217;s cPanel.</li>
<li>Backup the MySQL database containing your blog&#8217;s posts, pages, categories and tags, as explained in an <a href="http://michel.wermelinger.ws/chezmichel/2008/11/moving-a-blog-to-a-new-web-host/">earlier post</a>.</li>
<li>In cPanel&#8217;s file manager, rename the root of your current blog to some other name. Continuing the example, I renamed the <code>public_html/michel/ludossier</code> folder to <code>public_html/michel/ludossier26</code> (to remind me it uses WordPress 2.6).</li>
<li>Install WordPress 2.7 using Fantastico, in the way <a href="http://michel.wermelinger.ws/chezmichel/2008/11/creating-a-blog-is-fantastico/" target="_self">described previously</a> in this blog. Create a new blog with exactly the same parameters as you created the original blog, i.e. with the same name, in the same folder, and with the same administrator username and password as the old blog you want to upgrade. For the example, I created a blog called ludossier in the ludossier folder.</li>
<li>Go into the file manager of cPanel and copy (not move!) file <code>wp-config.php</code> from the old blog&#8217;s folder to the new blog&#8217;s folder, e.g. from <code>/public_html/michel/ludossier26</code> to <code>/public_html/michel/ludossier</code>.</li>
<li>Look under the <code>wp-content</code> folder for any new plugins, themes and files you have uploaded to your old blog, and copy them to the corresponding place in the new blog&#8217;s folders.</li>
<li>Log into your blog as usual. WordPress will say that the database needs to be updated and ask you to press a button. Do so and you&#8217;re done!</li>
</ol>
<p>Basically, the whole idea is to create in the <em>same </em>folder as the old blog a new blog that uses the latest WordPress software (steps 4-5). It has to be the same folder: otherwise all URLs used by the blog (like the permalinks of your posts) would break. We then transfer the configuration from the current blog to the new one (steps 6-7). Note that although Fantastico created a new MySQL database for the new blog in step 5, step 6 makes the new blog use the same database as the current blog. Hence we need step 3 to back the old version up, in case something nasty happens.</p>
]]></content:encoded>
			<wfw:commentRss>http://michel.wermelinger.ws/chezmichel/2009/01/upgrading-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Organising the sidebar widgets</title>
		<link>http://michel.wermelinger.ws/chezmichel/2008/11/organising-the-sidebar-widgets/</link>
		<comments>http://michel.wermelinger.ws/chezmichel/2008/11/organising-the-sidebar-widgets/#comments</comments>
		<pubDate>Sat, 29 Nov 2008 21:51:12 +0000</pubDate>
		<dc:creator>mw</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://michel.wermelinger.ws/chezmichel/?p=128</guid>
		<description><![CDATA[A WordPress blog can have one or two sidebars, each divided into several parts: search box, list of pages, monthly archives, links to external sites and blogs, etc. The content of each part is generated by a widget. To decide which widgets should be used, go into the Design &#62; Widgets sub-panel. You&#8217;ll see on [...]]]></description>
			<content:encoded><![CDATA[<p>A WordPress blog can have one or two sidebars, each divided into several parts: search box, list of pages, monthly archives, links to external sites and blogs, etc. The content of each part is generated by a <a href="http://codex.wordpress.org/Plugins/WordPress_Widgets" target="_blank">widget</a>. To decide which widgets should be used, go into the <a href="http://codex.wordpress.org/Widgets_SubPanel" target="_blank">Design &gt; Widgets</a> sub-panel. You&#8217;ll see on the left side the list of available widgets, and on the right side the list of the widgets actually used. The list on the right will be in the exact same order as the widgets appear on the sidebar.</p>
<p>When you go into the sub-panel for the first time, you&#8217;ll be surprised to see that no widgets are used, in spite of your blog having a sidebar. This is because <span id="more-128"></span>each theme shows some widgets by default, when none are selected. The Kubrick theme that comes pre-installed with WordPress shows by default <a href="http://codex.wordpress.org/Image:default1.png">these widgets</a>, in this order:</p>
<ol>
<li> Search: the search box</li>
<li>Pages: the list of pages</li>
<li>Archives: the monthly post archive</li>
<li>Categories: the list of categories used to classify posts and pages</li>
<li>Links: the list of external links, with one section per link category</li>
<li>Meta: a fixed list of miscellaneous links</li>
</ol>
<p>To remove the Categories and Meta widgets — I will reintroduce the former when I start using categories — I simply clicked on the left side of the panel on the Search, Pages, Archive and Links widgets, in that order. This added them to the right side of the panel. If I had wished to change the order the widgets appear on the sidebar, I could simply drag up or down each of the widgets on the right side of the panel.  To finish, I clicked &#8216;Save changes&#8217; on the right-hand side of the panel, below the sidebar widget list.</p>
<p>Note that the Links widget lists <em>all</em> the links marked as visible in the <a href="http://codex.wordpress.org/Manage_Links_SubPanel" target="_blank">Manage &gt; Links</a> sub-panel. The widget will automatically create in the sidebar one section per link category. Since I was re-arranging the sidebar, I took the opportunity to add links to my other blogs (I know it&#8217;s crazy to start three blogs in parallel&#8230;) and put them under the new &#8216;Alter blegos&#8217; (get it?) link category. Thus, the Links widget now lists both the new and the <a href="http://michel.wermelinger.ws/chezmichel/2008/11/organising-the-sidebar-links/" target="_blank">existing wordpress.org links</a>.</p>
<p>One problem emerged when looking at my blog&#8217;s new sidebar: the pages were listed in the wrong order. If you remember <a href="http://michel.wermelinger.ws/chezmichel/2008/11/sub-pages/">my earlier post</a>, I had tweaked the page order number so that pages would be listed in the order I wanted. However, the Pages widget lists them in alphabetical order by default. Fortunately this can be changed:</p>
<ol>
<li>Go into the Design &gt; Widgets sub-panel.</li>
<li>On the right-hand side, click on the &#8216;Edit&#8217; link within the Pages widget. This will show the widget&#8217;s options.</li>
<li>In the &#8216;Sort by:&#8217; drop-down menu, select &#8216;Page ID&#8217;.</li>
<li>Click &#8216;Change&#8217; to hide again the widget&#8217;s options.</li>
<li>Click &#8216;Save changes&#8217; below the widget list.</li>
</ol>
<p>Now that the sidebar is done, the next thing is to install some useful plugins, besides <a href="http://michel.wermelinger.ws/chezmichel/2008/11/removing-spam-comments/" target="_blank">Akismet</a>, and to change the theme. I have nothing against the default theme, but I&#8217;m not the only one to find it <a href="http://themeshaper.com/blog/the-next-wordpress-default-theme/" target="_blank">slightly unexciting</a>&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://michel.wermelinger.ws/chezmichel/2008/11/organising-the-sidebar-widgets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Removing spam comments</title>
		<link>http://michel.wermelinger.ws/chezmichel/2008/11/removing-spam-comments/</link>
		<comments>http://michel.wermelinger.ws/chezmichel/2008/11/removing-spam-comments/#comments</comments>
		<pubDate>Sat, 29 Nov 2008 11:24:20 +0000</pubDate>
		<dc:creator>mw</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://michel.wermelinger.ws/chezmichel/?p=122</guid>
		<description><![CDATA[Earlier this week, I was invited to the programme committee of the industrial track of the major academic software engineering conference. I logged into the blog to add the event to the Upcoming Events page. But, surprise, surprise, there was a little red balloon over the Comments sub-panel button, telling me I had 3 comments [...]]]></description>
			<content:encoded><![CDATA[<p>Earlier this week, I was invited to the programme committee of the industrial track of the major academic software engineering conference. I logged into the blog to add the event to the <a href="http://michel.wermelinger.ws/chezmichel/upcoming-events/">Upcoming Events</a> page. But, surprise, surprise, there was a little red balloon over the <a href="http://codex.wordpress.org/Comments_Comments_SubPanel" target="_blank">Comments sub-panel</a> button, telling me I had 3 comments waiting for approval to appear on the blog. Strange how the comments started right after the move to the new host. The internet is full of mysteries&#8230; <span id="more-122"></span>The Comments sub-panel presents a list of all comments, whether approved (i.e. they appear on the blog) or waiting approval. One comment was gibberish, a sequence of random characters: clearly spam. I removed it and approved the other two by clicking on the appropriate links in front of each comment. But if spamming was to become the norm, going manually through comments would be tedious.</p>
<p>Fortunately, Automattic, the company behind WordPress, also developed <a href="http://akismet.com/" target="_blank">Akismet</a>, a spam filtering service,  and a plugin for (i.e. an extension to) WordPress in order to use that service. The <a href="http://codex.wordpress.org/Akismet" target="_blank">Akismet plugin</a>, which is part of the WordPress installation but needs to be explicitly activated, automatically marks comments as spam as they are submitted to your blog, and deletes them after 15 days. The spam comments never show up on the blog, keeping it clean. Akismet is not perfect, so you should check manually (e.g. once a week) that all comments marked as spam are indeed spam. If you re-classify them as valid comments, they will be sent to the Akismet service so that it learns to improve its filtering.</p>
<p>These are the steps to start using Akismet on your blog:</p>
<ol>
<li>Go to <a href="http://wordpress.com" target="_blank">wordpress.com</a> and click on &#8216;sign up&#8217;.</li>
<li>Choose a username and password, give a valid e-mail, and click on &#8216;Just a username, please&#8217;, unless you also want to host a blog on wordpress.com</li>
<li>You will receive an e-mail with a link to click, in order to activate your wordpress.com account.</li>
<li>Wait a couple of minutes more, and you&#8217;ll get a second e-mail confirming that the account was created. The most important is that the e-mail will also contain an <a href="http://wordpress.com/api-keys/" target="_blank">API key</a>. Copy it to the clipboard.</li>
<li>Log into your blog&#8217;s administration panel and go to the Plugins sub-panel. In the list of existing plugins, to the right of the Akismet entry, click &#8216;Activate&#8217;.</li>
<li>In the next screen, paste the API key into the text box. Save the changes.</li>
</ol>
<p>Done! Now continue working on the blog&#8217;s content and let the spammers waste their life away&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://michel.wermelinger.ws/chezmichel/2008/11/removing-spam-comments/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Organising the sidebar links</title>
		<link>http://michel.wermelinger.ws/chezmichel/2008/11/organising-the-sidebar-links/</link>
		<comments>http://michel.wermelinger.ws/chezmichel/2008/11/organising-the-sidebar-links/#comments</comments>
		<pubDate>Sun, 23 Nov 2008 16:47:24 +0000</pubDate>
		<dc:creator>mw</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://michel.wermelinger.ws/chezmichel/?p=117</guid>
		<description><![CDATA[Now that the web host move is out of my way, I can resume where I left off one week ago: organising the sidebar links. The default WordPress installation shows on the sidebar several links to wordpress.org pages (documentation, etc.), all under the heading &#8216;Blogroll&#8217;. That is actually a slight misnomer, because a blogroll is [...]]]></description>
			<content:encoded><![CDATA[<p>Now that the web host move is out of my way, I can resume where I left off one week ago: organising the sidebar links.</p>
<p>The default WordPress installation shows on the sidebar several links to wordpress.org pages (documentation, etc.), all under the heading &#8216;Blogroll&#8217;. That is actually a slight misnomer, because a blogroll is a list of other blogs that the author of this blog reads. The WordPress team <a href="http://codex.wordpress.org/Glossary#Blogroll" target="_blank">knows that</a>, but nevertheless chose the term &#8216;blogroll&#8217; to categorise any links (not just to blogs) that the blog author hasn&#8217;t yet classified.</p>
<p>So, if I want to change the &#8216;Blogroll&#8217; heading into &#8216;WordPress.org&#8217;, I will have to <span id="more-117"></span>create a new link category with that name and then move all links from the old to the new category. I will also take the opportunity to hide some of the links I don&#8217;t care about (like the WordPress developers&#8217; blog).</p>
<p>After logging into the administration panel, I went to <a href="http://codex.wordpress.org/Manage_Link_Categories_SubPanel" target="_blank">Manage &gt; Link Categories</a> subpanel and created a new category named &#8216;WordPress.org&#8217;. I just provided the name, leaving the other information fields empty. Then, in the <a href="http://codex.wordpress.org/Manage_Links_SubPanel" target="_blank">Manage &gt; Links</a> subpanel, I went through the list of existing links, clicking on each link&#8217;s name to edit the link (note that the Codex documentation for the Manage &gt; Links subpanel is slightly outdated). This will open a <a href="http://codex.wordpress.org/Write_Link_SubPanel" target="_blank">Write &gt; Link</a> subpanel, with all information for the existing link pre-filled. For those links I wanted to keep, I changed the category from &#8216;Blogroll&#8217; to &#8216;WordPress.org&#8217;, whereas for those I didn&#8217;t want to keep I just made them private, to hide them. I could have removed them, but one never knows if they will become useful later on. After doing all this, the <a href="http://codex.wordpress.org/Image:default1.png" target="_blank">original sidebar</a>&#8216;s Blogroll list became the currently seen list.</p>
<p>My next goal is to get rid of the rather useless Meta section in the sidebar.</p>
]]></content:encoded>
			<wfw:commentRss>http://michel.wermelinger.ws/chezmichel/2008/11/organising-the-sidebar-links/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Moving a blog to a new web host</title>
		<link>http://michel.wermelinger.ws/chezmichel/2008/11/moving-a-blog-to-a-new-web-host/</link>
		<comments>http://michel.wermelinger.ws/chezmichel/2008/11/moving-a-blog-to-a-new-web-host/#comments</comments>
		<pubDate>Sun, 23 Nov 2008 15:10:45 +0000</pubDate>
		<dc:creator>mw</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://michel.wermelinger.ws/chezmichel/?p=111</guid>
		<description><![CDATA[This weekend I started using a new web hosting provider, as the previous one was having too much downtime for my liking. A WordPress blog consists of a lot of PHP files that provide the funtionality, the files that have been uploaded to the blog, and a MySQL database that stores all posts, pages, and [...]]]></description>
			<content:encoded><![CDATA[<p>This weekend I started using a new web hosting provider, as the previous one was having too much downtime for my liking. A WordPress blog consists of</p>
<ul>
<li> a lot of <a href="http://en.wikipedia.org/wiki/PHP" target="_blank">PHP</a> files that provide the funtionality,</li>
<li>the files that have been uploaded to the blog,</li>
<li>and a <a href="http://en.wikipedia.org/wiki/MySQL" target="_blank">MySQL</a> database that stores all posts, pages, and sidebar links.</li>
</ul>
<p>All this has to be copied to the new web host. To make things easier, I chose a hosting service that also provides cPanel.  The steps are rather straightforward and take only a few minutes (depending on the size of your blog), although it took me some hours to figure them out.<span id="more-111"></span></p>
<ol>
<li>Log into the cPanel of your old hosting service.</li>
<li>In the file manager, select the directory containing your blog (public_html/michel/chezmichel in my case) and compress it into a zip file and then download it to your local machine.</li>
<li>In the backup section of cPanel, download a backup of the database. If you created the blog with Fantastico, the database will be called <em>OU</em>_wrdp<em>N</em>, where <em>OU</em> is the username you were assigned by the old hosting provider and <em>N</em> is a number. After performing this step, you will have a file <code>wrdp<em>N</em>.sql.gz</code> on your local machine.</li>
<li>Log out from your old host provider and log into the cPanel of the new one.</li>
<li>In the backup section, restore the backup of the database. It will be called <em>NU</em>_wrdp<em>N</em>, with your new username <em>NU</em> which may be different from the <em>OU </em>username at your old provider. That&#8217;s OK.</li>
<li>In cPanel&#8217;s file manager, recreate the same parent directory for the blog, if necessary (public_html/michel in my case). In that directory, upload the zip file from your local machine and uncompress it. This will restore all WordPress files that were in the old host provider into the same path on the new provider.</li>
<li>While in the file manager, use the code editor to open the file <code>wp_config.php</code> that exists in the blog&#8217;s directory. You will see at the start of the file three lines similar to
<pre>define('DB_NAME', '<em>OU</em>_wrdp<em>N</em>');    // The name of the database
define('DB_USER', '<em>OU</em>_wrdp<em>N</em>');     // Your MySQL username
define('DB_PASSWORD', 'rP9v[4AwLKxx'); // ...and password</pre>
<ol>
<li>The first line tells WordPress which database is associated to the blog. Change <em>OU </em>to <em>NU</em>, if your new username is different  from the old username.</li>
<li>The second and third lines define the username and password that WordPress will use to access and modify the database, to store new posts, pages, and links. If the blog was created by Fantastico, the username is the same as the database name, and the password is some random sequence of letters, digits and symbols. You can keep your old database username, but I preferred to also change <em>OU </em>to <em>NU </em>in the second line, to keep the username the same as the database name.</li>
<li>Copy the password into the clipboard, i.e. select the password and press Ctrl-C.</li>
<li>Save the changes to the file and exit the code editor.</li>
</ol>
</li>
<li> Go to cPanel&#8217;s &#8216;MySQL Databases&#8217; section.</li>
<li>Create a new database user with the same username and password as given in the wp_config.php file. Just press Ctrl-V to paste the password into the appropriate text field. Click &#8216;Create User&#8217; to finish.</li>
<li>On the right side of the same page, add the newly created user to the database restored in step 5 above. Click the &#8216;Submit&#8217; button and in the new screen give all privileges to the new user.</li>
</ol>
<p>That&#8217;s all it takes to transfer the blog! Note that these steps assume you have your own domain name for your blog and that you want to keep it, i.e. you just want to change where your blog is stored, not the URLs of any of your pages and posts. In that case, the only thing still to be done is to go to your domain name registrar and let it know which are the name servers of your new hosting provider. This change will take up to 48 hours to propagate through the internet, but once it&#8217;s done, whenever anyone types your blog&#8217;s URL into their browser, they will be transparently redirected to the new hosting provider. And since all the URLs were kept, any external pages and search engines will still point to your blog.</p>
<p>However, if you don&#8217;t have your own domain name, i.e. if your blog&#8217;s URL was something like http://blogname.oldhostingcompany.co.uk and will now be http://blogname.newhostingcompany.com, then my guess (I haven&#8217;t tried it out) is that, after step 3 above, you have to uncompress the database backup on your local machine, open the wrdp<em>N</em>.sql text file, do a global replace of the old URL by the new one, and compress the file again. You will also have to make the old URL redirect to the new one; this can be done in cPanel&#8217;s &#8216;Manage Redirects&#8217; screen (in the old provider account, of course). In that way, in time search engines and other people will pick up your new URL. However, sooner or later you&#8217;ll want to close your old provider&#8217;s account, and then there&#8217;s no guarantee that someone&#8217;s links to your blog will be broken. Nothing beats having your own domain from the start.</p>
]]></content:encoded>
			<wfw:commentRss>http://michel.wermelinger.ws/chezmichel/2008/11/moving-a-blog-to-a-new-web-host/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Defining the permalink structure</title>
		<link>http://michel.wermelinger.ws/chezmichel/2008/11/defining-the-permalink-structure/</link>
		<comments>http://michel.wermelinger.ws/chezmichel/2008/11/defining-the-permalink-structure/#comments</comments>
		<pubDate>Sun, 16 Nov 2008 23:33:32 +0000</pubDate>
		<dc:creator>mw</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://michel.wermelinger.ws/chezmichel/?p=103</guid>
		<description><![CDATA[A permalink (short for permanent link) is a permanent URL to a webpage, contrary to a URL that may change between different accesses to the webpage. For example, in the early days of blogging, the URL of a post would change when the post moved from the front page to the archives. By default, the [...]]]></description>
			<content:encoded><![CDATA[<p>A permalink (short for permanent link) is a permanent URL to a webpage, contrary to a URL that may change between different accesses to the webpage. For example, in the early days of blogging, the URL of a post would change when the post moved from the front page to the archives.</p>
<p>By default, the permalink of a WordPress post is the blog&#8217;s URL appended by ?p=<em>N</em>, where <em>N</em> is the post&#8217;s unique number, assigned by WordPress. For example, the default permalink of this page is <a href="http://michel.wermelinger.ws/chezmichel/?p=103">http://michel.wermelinger.ws/chezmichel/?p=103</a>. The URL for a page is not much better: &#8230;/?page_id=<em>N</em>. Having numbers in the URLs is not very informative and  doesn&#8217;t help search engines. Like almost everything else in WordPress, the permalink structure is configurable. Just go to <span id="more-103"></span>the <a href="http://codex.wordpress.org/Settings_Permalinks_SubPanel" target="_blank">Settings &gt; Permalinks </a>administration sub-panel and choose one of the available options or compose your own structure.</p>
<p>I chose the <em>year</em>/<em>month</em>/<em>slug</em> structure, where <em><a href="http://codex.wordpress.org/Glossary#Slug" target="_blank">slug</a></em> is any sequence of letters you wish. By default, the slug is automatically generated from the post&#8217;s or page&#8217;s title, by replacing spaces with hyphens and dropping any punctuation. For example, if this post were titled &#8220;It&#8217;s a nice day!&#8221;, the URL would be <code>http://michel.wermelinger.ws/chezmichel/2008/10/its-a-nice-day</code>. When you edit a post or page, the slug is shown directly beneath the post&#8217;s or page&#8217;s title and you can edit it to make it clearer or shorter. Continuing the example, the slug might be changed to  <code>a-nice-day</code>, in order to make it shorter and avoid any confusion between &#8220;it&#8217;s&#8221; and &#8220;its&#8221;.</p>
<p>The WordPress Codex warns that not using a date-based permalink structure might break some date-dependent features, like the calendar of posts, one of the widgets that can be installed in the side bar. Moreover, starting post permalinks with the date of the post makes it very easy to access the archives: just drop the slug part. For example, all of this month&#8217;s entries can be listed by accessing the webpage <a href="http://michel.wermelinger.ws/chezmichel/2008/11">http://michel.wermelinger.ws/chezmichel/2008/11</a>.</p>
<p>Speaking of sidebar widgets: I should clean up all those default links to WordPress sites.</p>
]]></content:encoded>
			<wfw:commentRss>http://michel.wermelinger.ws/chezmichel/2008/11/defining-the-permalink-structure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

