<?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>Notes, links and conversation &#187; WordPress</title>
	<atom:link href="http://pascal.vanhecke.info/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://pascal.vanhecke.info</link>
	<description></description>
	<lastBuildDate>Thu, 11 Aug 2011 14:38:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Making money with Adsense &#8211; without annoying your users: WordPress.com</title>
		<link>http://pascal.vanhecke.info/2007/11/21/making-money-with-adsense-without-annoying-the-community-wordpresscom/</link>
		<comments>http://pascal.vanhecke.info/2007/11/21/making-money-with-adsense-without-annoying-the-community-wordpresscom/#comments</comments>
		<pubDate>Wed, 21 Nov 2007 22:12:45 +0000</pubDate>
		<dc:creator>Pascal Van Hecke</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[WebWatch]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Adsense]]></category>
		<category><![CDATA[Advertising]]></category>
		<category><![CDATA[Automattic]]></category>
		<category><![CDATA[blogs]]></category>
		<category><![CDATA[busines model]]></category>
		<category><![CDATA[community]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[Matt Mullenweg]]></category>
		<category><![CDATA[wordpress.com]]></category>

		<guid isPermaLink="false">http://pascal.vanhecke.info/2007/11/21/making-money-with-adsense-without-annoying-the-community-wordpresscom/</guid>
		<description><![CDATA[Automattic is reaping the rewards for years of hard work. Automattic is the company behind comment spam filter Akismet and WordPress.com, and of course the magnificent open source blogging software started by Matt Mullenweg. But how do they make money from their free blog hosting service? [Update November 1, 2009] About a year after I [...]<div class="tantan-getcomments"><a href="http://pascal.vanhecke.info/2007/11/21/making-money-with-adsense-without-annoying-the-community-wordpresscom/#comments"><img src="http://pascal.vanhecke.info/wp-content/plugins/tantan/get-comments.php?p=365" width="100" height="15" style="border:0;" /></a></div>]]></description>
			<content:encoded><![CDATA[<p><a href="http://automattic.com/">Automattic</a> is <a href="http://www.techcrunch.com/2007/11/13/automattic-founders-to-take-big-money-off-the-table/">reaping the rewards</a> for years of hard work.  Automattic is the company behind comment spam filter <a href="http://akismet.com/">Akismet</a> and <a href="http://wordpress.com/">WordPress.com</a>, and of course the magnificent <a href="http://wordpress.org/">open source blogging software</a> started by <a href="http://photomatt.net/">Matt Mullenweg</a>. But how do they make money from their <a href="http://wordpress.com/">free blog hosting service</a>? </p>
<p><span id="more-365"></span>
<div class="infobox">
<div class="infoboxheader"><strong>[Update November 1, 2009]</strong></div>
<div class="infoboxbody">About a year after I posted this, WordPress.com introduced an ads-free upgrade for about $30/year.  Find out more about it <a href="http://en.blog.wordpress.com/2008/09/18/go-ad-free/">on Matt&#8217;s blog</a>.</div>
</div>
<p>   The answer: like everybody else &#8211; Google Adsense. Still you probably have never seen a single ad on their pages&#8230;  Here&#8217;s how they do it:<br />
<h3 id="toc-cherish-regular-readers-they-are-your-writers-to-be">Cherish regular readers &#8211; they are your writers-to-be</h3>
<p>If you&#8217;re a regular reader (let alone poster) on WordPress.com, cookies will prevent you from seeing ads.  Regular readers don&#8217;t click ads anyway, they&#8217;re there for the content.  Ads would be off-putting and keep readers from becoming contributors.</p>
<p>The small loss in revenue on regular readers is by far offset by the growth in &#8220;content inventory&#8221; if you can turn readers into writers.  First build the community, then monetize. (<em>I thought I remember Matt linking to a <a href="http://fortuito.us/2007/05/how_ads_really_work_superfans_1">similar argument</a> by the founder of <a href="http://www.metafilter.com/">Metafilter</a>, but I can&#8217;t find the referring post anymore.</em>)</p>
<h3 id="toc-only-show-ads-to-searchers">Only show ads to searchers</h3>
<p>Chances are you never visited <a href="http://crossthebreeze.com/">Kris Hoet&#8217;s blog</a>* &#8211; Kris is EMEA Marcom man for Msn/Windows Live. Although he has it <a href="http://wordpress.com/blog/2006/10/24/domain-mapping-registration/">mapped</a> on  his own domain crossthebreeze.com, the blog <a href="http://crossthebreeze.wordpress.com/">is</a> hosted by wordpress.com. Yet if I refer you to <a href="http://crossthebreeze.com/2007/11/20/back-in-business/">his holiday report</a>, you won&#8217;t see any ads either, even as a first time visitor, even if you delete your crossthebreeze.wordpress.com or crossthebreeze.com cookies (this <a href="http://addons.mozilla.org/firefox/addon/1595">cookie-killing Firefox extension</a> will save you time).</p>
<p>You might not be a regular reader (yet), but you didn&#8217;t go there to see ads, you went there because I referred you to what you expect to be a holiday report.  WordPress.com doesn&#8217;t want to spoil your first impression of Kris&#8217;s blog.</p>
<p>However, if you land there by accident <a href="http://www.google.com/search?hl=en&amp;q=back+in+business%2C+bars++in+Kota+Kinabalu&amp;btnG=Search">after a Google search</a>, things <em>are</em> different.</p>
<p><a href="http://pascal.vanhecke.info/wp-content/upload_images/2007/11/bars-in-kota-kinabula-search-result.gif"><img src="http://pascal.vanhecke.info/wp-content/upload_images/2007/11/bars-in-kota-kinabula-search-result-thumb.gif" style="border: 0px none " alt="bars-in-Kota-Kinabula-search-result" border="0" height="94" width="540" /></a></p>
<p>You&#8217;re quite likely not to be interested by his blog, but more by bars in Kota Kinabalu&#8230;  The served ads (<em><a href="http://blog.forret.com/2006/04/adsense-also-looks-at-search-terms/">fitting your search terms</a> even more than the content of the post</em>) offer a convenient click away.  (<em>Notice how the &#8220;Ads by Google&#8221; caption is even more inconspicuous here, probably because of some preferred partnership?)</em></p>
<p><a href="http://pascal.vanhecke.info/wp-content/upload_images/2007/11/bars-in-kota-kinabula-posting-after-google-search.gif"><img src="http://pascal.vanhecke.info/wp-content/upload_images/2007/11/bars-in-kota-kinabula-posting-after-google-search-thumb.gif" style="border: 0px none " alt="bars-in-Kota-Kinabula-posting-after-google-search" border="0" height="350" width="540" /></a></p>
<h3 id="toc-exploit-the-masses-spare-the-geeks">Exploit the masses, spare the geeks</h3>
<p><a href="http://pascal.vanhecke.info/wp-content/upload_images/2007/11/fake-your-user-agent-firefox-extension.gif"><img src="http://pascal.vanhecke.info/wp-content/upload_images/2007/11/fake-your-user-agent-firefox-extension-thumb.gif" style="border: 0px none " alt="fake-your-user-agent-firefox-extension" align="right" border="0" height="153" width="231" /></a> Still don&#8217;t see the ads when you click through <a href="http://www.google.com/search?hl=en&amp;q=back+in+business%2C+bars++in+Kota+Kinabalu&amp;btnG=Search">from the search page</a> (after some cookie-crumbling)?   <em>Aha</em>, but you&#8217;re using Firefox, right? (Or Flock, or another minority browser&#8230;)</p>
<p>Geeks like you are probably advertising-resistant, and notoriously loud and outspoken.  Rather than facing criticism from troublemakers that don&#8217;t click ads anyway, WordPress prefers not to show them at all&#8230;  Unless you <a href="http://addons.mozilla.org/en-US/firefox/addon/59">fake your User Agent</a> and do the same cookie-cleaning and <a href="http://www.google.com/search?hl=en&amp;q=back+in+business%2C+bars++in+Kota+Kinabalu&amp;btnG=Search">search</a> procedure over again&#8230;</p>
<p>Now that&#8217;s really all for the hoops you have to jump through, in order to enjoy the privilege of being served ads on WordPress.com!</p>
<h3 id="toc-cash-in-on-derived-content-tag-pages">Cash in on derived content: tag pages</h3>
<p>Another stroke of  brilliance are the WordPress.com tag pages.  Tag pages aggregate (excerpts of) postings with a particular category or tag (see <a href="http://wordpress.com/blog/2007/09/22/tags-and-categories/">their explanation</a>) across the WordPress.com network (<em>whereas tag pages on self-hosted wordpress blogs are internal links in your blog</em>).</p>
<p>See the <a href="http://wordpress.com/tag/emerging-church/">tag page for &#8220;Emergent Church&#8221;</a> as (<em>arbitrary, I swear!</em>) example .  They&#8217;re a searchengine&#8217; s <a href="http://www.google.com/translate_dict?q=gefundenes+fressen&amp;hl=en&amp;langpair=de|en"><em>Gefundenes Fressen</em></a>: tags are typically the keywords you use in search queries as well, and here you have pages <em>optimised for such a keyword</em>, with <em>lots of inlinks from relevant posts using that keyword as anchor text</em>,  on a <em>high-authority domain</em>.   What&#8217;s more, since tag pages are the result of coincidental co-production, no community member will dispute the site&#8217;s owner&#8217;s right to exploit this <em>no-man&#8217;s-land</em>.</p>
<p><a href="http://pascal.vanhecke.info/wp-content/upload_images/2007/11/wordpress.com-tag-emergent-church.gif"><img src="http://pascal.vanhecke.info/wp-content/upload_images/2007/11/wordpress.com-tag-emergent-church-thumb.gif" style="border: 0px none " alt="wordpress.com-tag-emergent-church" border="0" height="425" width="540" /></a><a href="http://pascal.vanhecke.info/wp-content/upload_images/2007/11/google-search-emergent-church.gif"></a></p>
<p>I used to see a lot of these pages in search results (especially for non-English queries) and I guess this has been a gold mine for a while.  Google however is seriously pushing back tag pages nowadays (or maybe on over-optimised pages as well&#8230;).  Tag pages can be considered search result pages by themselves&#8230; and <a href="http://www.mattcutts.com/blog/search-results-in-search-results/">who wants to see search results in search results</a>?  (See a similar <a href="http://www.techcrunch.com/2007/06/11/technorati-when-will-the-traffic-party-end/">argument on Technorati tag pages</a>.)  Still, they do show up, although you might need to <a href="http://www.google.com/search?q=emerging+church+wordpress">fiddle a bit to get a first-page result</a>:</p>
<p><a href="http://pascal.vanhecke.info/wp-content/upload_images/2007/11/google-search-emergent-church.gif"><img src="http://pascal.vanhecke.info/wp-content/upload_images/2007/11/google-search-emergent-church-thumb.gif" style="border: 0px none " alt="google-search-emergent-church" border="0" height="293" width="540" /></a></p>
<h2 id="toc-paid-accounts-profitable">Paid accounts profitable?</h2>
<p>A lot of other community sites are using the same techniques, yet none pushing it as far as WP.com&#8230;    Apparently the strategy is successful to that extent that I&#8217;m wondering it will ever be worth their time to offer completely ad-free blogging accounts.  Would people be willing to pay the equivalent or more of the advertising income their blog generates &#8211; after all, they never see an ad on their pages themselves?</p>
<p>I guess people like Kris Hoet might well be interested for reputation reasons, but maybe this market is not big enough to offer paid, large-scale, low-cost blog hosting?</p>
<p>*<em> I&#8217;m using Kris as my guinea pig here as a late follow-up to a discussion we had at a </em><a href="http://www.google.com/search?q=blogcom+antwerpen+pakhuis+2006"><em>bloggers&#8217; meeting</em></a><em> a long time ago.</em></p>
<div class="tantan-getcomments"><a href="http://pascal.vanhecke.info/2007/11/21/making-money-with-adsense-without-annoying-the-community-wordpresscom/#comments"><img src="http://pascal.vanhecke.info/wp-content/plugins/tantan/get-comments.php?p=365" width="100" height="15" style="border:0;" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://pascal.vanhecke.info/2007/11/21/making-money-with-adsense-without-annoying-the-community-wordpresscom/feed/</wfw:commentRss>
		<slash:comments>45</slash:comments>
		</item>
		<item>
		<title>Ultimate Tag Warrior on WordPress and Windows Live Writer</title>
		<link>http://pascal.vanhecke.info/2006/09/27/ultimate-tag-warrior-on-wordpress-and-windows-live-writer/</link>
		<comments>http://pascal.vanhecke.info/2006/09/27/ultimate-tag-warrior-on-wordpress-and-windows-live-writer/#comments</comments>
		<pubDate>Wed, 27 Sep 2006 21:46:59 +0000</pubDate>
		<dc:creator>Pascal Van Hecke</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[metadata]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[tagging]]></category>
		<category><![CDATA[tags]]></category>
		<category><![CDATA[ultimate+tag+warrior]]></category>
		<category><![CDATA[utw]]></category>
		<category><![CDATA[windowslivewriter]]></category>
		<category><![CDATA[xmlrpc]]></category>
		<category><![CDATA[{taglist}]]></category>

		<guid isPermaLink="false">http://pascal.vanhecke.info/1970/01/01/ultimate-tag-warrior-on-wordpress-and-windows-live-writer/</guid>
		<description><![CDATA[Ultimate Tag Warrior (UTW) is a popular and powerful WordPress plugin to tag your posts*. Windows Livewriter is a great (for once, that&#8217;s an understatement!) desktop blogging client tool Microsoft released last month. Here&#8217;s how you combine both, by configuring the UTW embedded tags in WLW**: Using the latest release (recommended) Upgrade to or download [...]<div class="tantan-getcomments"><a href="http://pascal.vanhecke.info/2006/09/27/ultimate-tag-warrior-on-wordpress-and-windows-live-writer/#comments"><img src="http://pascal.vanhecke.info/wp-content/plugins/tantan/get-comments.php?p=177" width="100" height="15" style="border:0;" /></a></div>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.neato.co.nz/ultimate-tag-warrior/">Ultimate Tag Warrior</a> (UTW) is a popular and powerful WordPress plugin to tag your posts*.  Windows Livewriter is a great (for once, <em>that&#8217;s an understatement!</em>) desktop blogging client tool Microsoft <a href="http://windowslivewriter.spaces.live.com/blog/cns!D85741BB5E0BE8AA!174.entry">released last month</a>.  Here&#8217;s how you combine both, by configuring the UTW <a href="http://www.neato.co.nz/wp-content/plugins/UltimateTagWarrior/ultimate-tag-warrior-help.html#configuration">embedded tags</a> in WLW**:<span id="more-177"></span></p>
<h3 id="toc-using-the-latest-release-recommended"><img src="http://pascal.vanhecke.info/wp-content/upload_images/2006/09/WindowsLiveWriter/e529afda1d14_F93/image04.png" style="border-width: 0px" align="right" border="0" height="149" width="160" />Using the latest release (recommended)</h3>
<ul>
<li> Upgrade to or download <a href="http://windowslivewriter.spaces.live.com/blog/cns!D85741BB5E0BE8AA!702.entry">the latest release</a>.  I can&#8217;t see any reason why, but if you want to keep the first beta, skip to the next section.</li>
<li>Choose Insert&#8230; Tags in the menu or the right side action panel</li>
<li>Choose &#8220;Customize Providers&#8221; in the &#8220;Tag provider&#8221; dropdown</li>
<li>Click &#8220;Add&#8221; and fill out the form as indicated:<br />
<img src="http://pascal.vanhecke.info/wp-content/upload_images/2006/09/WindowsLiveWriter/e529afda1d14_F93/20060927_tagging_wp7.gif" alt="Define Ultimate Tag Warrior internal tagging scheme" height="450" width="406" /></li>
<li>Confirm your settings and choose your self-defined tagging scheme every time you add tags:<br />
<img src="http://pascal.vanhecke.info/wp-content/upload_images/2006/09/WindowsLiveWriter/e529afda1d14_F93/20060927_tagging_wp_choice3.gif" alt="Choosing tags for Ultimate Tag Warrior in Windows LiveWriter" height="249" width="375" /></li>
<li>You&#8217;ll see the tags embedded in your body text.  Don&#8217;t worry, UTW extracts them from the text and puts them in the database, so they&#8217;ll show up as normal UTW tag links and in the tag maps you might have defined.</li>
</ul>
<h3 id="toc-using-the-first-release">Using the first release</h3>
<ul>
<li>You&#8217;ll need to install the <a href="http://www.codeplex.com/Wiki/View.aspx?ProjectName=tag4writer">Tag4Writer plugin</a>.</li>
<li>In Tools&#8230; Preferences&#8230; Plugins, you can set the options for the &#8220;Tag List Generator&#8221;, identical to the ones shown in the first section:
<ul>
<li>Custom Tag HTML Template: {tag}</li>
<li>Tag List HTML Template: [tags]{taglist}[/tags]</li>
</ul>
</li>
<li>Inserting the tags works in the same way<br />
<img src="http://pascal.vanhecke.info/wp-content/upload_images/2006/09/WindowsLiveWriter/e529afda1d14_F93/20060927_tagging_wp_tag4writer%5B5%5D.gif" alt="Tag4 writer Configuration" height="311" width="461" /></li>
</ul>
<h3 id="toc-resources">Resources</h3>
<ul>
<li><a href="http://windowslivewriter.spaces.live.com/blog/">Windows Live Writer Blog</a></li>
<li>The fabulous (independent) <a href="http://wlwplugins.com/">Windows Live Writer plugins blog</a></li>
<li><a href="http://jcheng.wordpress.com/">Whateverblog</a>: one of the WLW developers</li>
<li><a href="http://gallery.live.com/default.aspx?l=8">Windows Live Gallery</a> for Writer</li>
</ul>
<p><em>* although it might slow down rendering your pages &#8211; consider </em><a href="http://mnm.uib.es/gallir/wp-cache-2/"><em>WP-Cache</em></a><em> in that case<br />
</em><em>** there&#8217;s also a <a href="http://davidbrunelle.com/2006/08/21/windows-live-writer-and-ultimate-tag-warrior/">second approach</a> where you modify your xmlrpc.php file in your WP installation, and use the WLW post keywords (press F2 or View&#8230; Post Properties)</em></p>
<p>[tags]utw, ultimate+tag+warrior, wordpress, plugin, metadata, windows+live+writer, windowslivewriter, tags, tagging, xmlrpc[/tags]</p>
<div class="tantan-getcomments"><a href="http://pascal.vanhecke.info/2006/09/27/ultimate-tag-warrior-on-wordpress-and-windows-live-writer/#comments"><img src="http://pascal.vanhecke.info/wp-content/plugins/tantan/get-comments.php?p=177" width="100" height="15" style="border:0;" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://pascal.vanhecke.info/2006/09/27/ultimate-tag-warrior-on-wordpress-and-windows-live-writer/feed/</wfw:commentRss>
		<slash:comments>27</slash:comments>
		</item>
		<item>
		<title>WP-ShortStat plugin broken after upgrading to WordPress 2.0.2</title>
		<link>http://pascal.vanhecke.info/2006/03/18/wp-shortstat-plugin-broken-after-upgrading-to-wordpress-202/</link>
		<comments>http://pascal.vanhecke.info/2006/03/18/wp-shortstat-plugin-broken-after-upgrading-to-wordpress-202/#comments</comments>
		<pubDate>Sat, 18 Mar 2006 10:00:53 +0000</pubDate>
		<dc:creator>Pascal Van Hecke</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://pascal.vanhecke.info/2006/03/18/wp-shortstat-plugin-broken-after-upgrading-to-wordpress-202/</guid>
		<description><![CDATA[The visitor statistics plugin&#160;Wp-Shortstat&#160;stops logging new hits after&#160;a WordPress uprade to&#160;2.0.2 (It still works in version WordPress 2.0.0, haven&#8217;t checked 2.0.1).&#160; Here&#8217;s a&#160;fixed version&#160;as .txt file (save on your harddisk and omit the .txt).&#160; Some info on the package and the bug: On WP-ShortStat WP ShortStat is the easiest&#160;stats package&#160;for WordPress blogs you can imagine.&#160; [...]<div class="tantan-getcomments"><a href="http://pascal.vanhecke.info/2006/03/18/wp-shortstat-plugin-broken-after-upgrading-to-wordpress-202/#comments"><img src="http://pascal.vanhecke.info/wp-content/plugins/tantan/get-comments.php?p=157" width="100" height="15" style="border:0;" /></a></div>]]></description>
			<content:encoded><![CDATA[<p>The visitor statistics plugin&nbsp;Wp-Shortstat&nbsp;stops logging new hits after&nbsp;a WordPress uprade to&nbsp;2.0.2 (It still works in version WordPress 2.0.0, haven&rsquo;t checked 2.0.1).&nbsp; Here&rsquo;s a&nbsp;<a href="http://pascal.vanhecke.info/wp-content/upload_files/wp-shortstat.php.txt">fixed version&nbsp;as .txt</a> file (<em>save on your harddisk and omit the .txt</em>).&nbsp; Some info on the package and the bug:<span id="more-157"></span> </p>
<div class="infobox">
<div class="separator" style="BORDER-TOP: 1px solid"></div>
<div class="infoboxheader">On WP-ShortStat </div>
<div class="infoboxbody">
<p><a href="http://jrm.cc/archives/blog/wp-shortstat/">WP ShortStat</a> is  the easiest&nbsp;stats package&nbsp;for WordPress blogs you can imagine.&nbsp;  Simply <a href="http://dev.wp-plugins.org/wiki/wp-shortstat">download</a>&nbsp;the  file, upload it&nbsp;to your plugins directory, activate it in the WordPress  Control panel, and you&rsquo;re done.&nbsp; Two extra tables are created  by the plugin on activation.&nbsp; It is based on <a href="http://shortstat.shauninman.com/plete/">Shortstat</a>,  a predecessor&nbsp;of what&rsquo;s now been&nbsp;known as <a href="http://www.haveamint.com/">Mint</a>.&nbsp;</p>
<p>It&rsquo;s a very quick solution if you need to monitor all behaviour on  your website (searchbots, feedtraffic and browsers).&nbsp;&nbsp;I would  not recommend it for other than private and short-term use however&hellip;&nbsp;  If you want really meaningful&nbsp;information on human visitors, you&rsquo;ll  have to switch to a webbug-based system (see these postings on <a href="http://pascal.vanhecke.info/2005/07/19/referrer-spam-and-visitor-statistics/">referer  spam</a>&nbsp;and <a href="http://pascal.vanhecke.info/2005/07/21/express-install-instructions-for-phpopentracker/">phpopentracker</a>).&nbsp;  And because all site requests are logged in Mysql, you get huge tables and  <a href="http://www.donnybrookcheer.com/2005/10/21/the-trouble-with-wp-shortstat/">performance  problems</a>&nbsp;in no time (PhpOpentracker has the same problem, BTW).&nbsp;  But then again, simply emptying the tables from time to time probably is  less trouble than other more complex self-hosted solutions!</p>
</p></div>
<div class="separator" style="BORDER-TOP: 1px solid"></div>
</div>
<h3 id="toc-on-wordpress-plugins">On WordPress plugins</h3>
<p>Plugins are php functions you can add to your WordPress install&nbsp;that&nbsp;modify output (&ldquo;filters&rdquo;) or to change behaviour (&ldquo;actions&rdquo;).&nbsp; With the <a href="http://codex.wordpress.org/Plugin_API">Plugin API</a>&nbsp;you&nbsp;need to&nbsp;&ldquo;hook&rdquo; your own filters and actions into the WordPress flow, using the function: <code>add_action (&lt;your_function&gt;,&lt;wordpress_function&gt;)</code> Have a look at this <a href="http://markjaquith.wordpress.com/2006/03/04/wp-tutorial-your-first-wp-plugin/">5&ndash;minute video tutorial</a> on writing a basic plugin.&nbsp; As an example:&nbsp; I wanted my <a href="http://pascal.vanhecke.info/sitedeals15-released">SiteDeals15 Released</a> page to appear as a posting on both the blog and in the RSS feed (normally pages don&rsquo;t show up in either of them).&nbsp; So I wrote a&nbsp; plugin to change&nbsp;both the title and the link of&nbsp;my post on <a href="http://pascal.vanhecke.info/sitedeals15-released">Digg RSS feeds</a>, and have it point to the page.&nbsp;Have a look at&nbsp;the plugin (<a href="http://pascal.vanhecke.info/wp-content/upload_files/sitedeals.php.txt">as txt file</a>): it just contains two functions and&nbsp; &ldquo;hooks&rdquo;.&nbsp;</p>
<h3 id="toc-how-to-chase-a-wordpress-plugin-bug">How to chase a WordPress plugin bug</h3>
<p>Find out in&nbsp;which &ldquo;hook&rdquo; the problem is.&nbsp; In the WP-ShortStat, a text search for &ldquo;add_action&rdquo; shows there are 4 hooks:</p>
<p><code>wp-content\plugins\wp-shortstat.php(747): add_action('shutdown', array(&amp;$wpss, 'track'));<br />wp-content\plugins\wp-shortstat.php(751): add_action('init', array(&amp;$wpss, 'setup'));<br />wp-content\plugins\wp-shortstat.php(838): add_action('admin_menu', 'wp_shortstat_add_pages');<br />wp-content\plugins\wp-shortstat.php(974): add_action('admin_head', 'wp_shortstat_css');</code></p>
<p>Judging from the names, the most likely candidate is the &ldquo;track&rdquo; function that is called on shutdown: before finishing every blog page, WP-ShortStat writes a log entry to the database.&nbsp;&nbsp;The &ldquo;track&rdquo;&nbsp;function starts with&nbsp;this condition:</p>
<p><code>if($wpdb-&gt;is_admin <br />&nbsp;&nbsp;|| strstr($_SERVER['PHP_SELF'], 'wp-admin/')<br />&nbsp;&nbsp;|| is_404()<br />&nbsp;&nbsp;|| is_admin_page()<br />&nbsp;&nbsp;&nbsp; )return; // let's not track the admin pages -- no one cares.</code>
<p>&nbsp;If you play a bit with the code, it turns out that &ldquo;is_admin_page()&rdquo; is always true in WordPress 2.0.2!&nbsp; That has to do with the definition of this function:</p>
<p><code>if( !function_exists('is_admin_page') ) {<br />&nbsp;function is_admin_page() {<br />&nbsp;&nbsp;if (function_exists('check_admin_referer')) {<br />&nbsp;&nbsp;&nbsp;return true;<br />&nbsp;&nbsp;}<br />&nbsp;&nbsp;else {<br />&nbsp;&nbsp;&nbsp;return false;<br />&nbsp;&nbsp;}<br />&nbsp;}<br />}<br /></code>
<p>So here&rsquo;s the problem: one of the ways to check whether the visitor is in the control panel and should not be logged, is a check whether the function &#8216;check_admin_referer&#8217; is defined.&nbsp; Turns out that, in WordPress 2.0.0, this function has moved from the file &ldquo;wp-admin\admin-functions.php&rdquo; (only included for admin pages)&nbsp;&nbsp;to a file &ldquo;\wp-includes\pluggable-functions.php&rdquo; which is always included, so ShortStat thinks of every page as an admin page, and doesn&rsquo;t log any request anymore.&nbsp; I don&rsquo;t know enough about&nbsp;Wordpress to find out there are more elegant ways to do so, but this particular bug is quickly fixed by replacing the&nbsp;&nbsp;&#8217;check_admin_referer&#8217;&nbsp; condition by a check on &ldquo;write_post&rdquo;, which is still in the &ldquo;wp-admin\admin-functions.php&rdquo;.</p>
<p>And if you have read this far, you should have no more fear to <a href="http://codex.wordpress.org/Writing_a_Plugin">write your own WordPress plugin</a>&nbsp;and&nbsp;write something more meaningful&nbsp;than I just did :-)&nbsp;&nbsp;</p>
<h3 id="toc-update-march-26d">Update March 26d</h3>
<p>I learnt via <a href="http://pascal.vanhecke.info/2006/03/18/wp-shortstat-plugin-broken-after-upgrading-to-wordpress-202/#comment-884">this  trackback</a> the problem had been solved before by the people from <a href="http://www.happyarts.de/">HappyArts.de</a>  (see the &quot;older changes&quot; at their <a href="http://blog.happyarts.de/wp-shortstat/">WP-ShortStat  project page</a>). Their release also includes other bugfixes and localised  versions of the plugin. Should have googled better before I started :-).</p>
<div class="tantan-getcomments"><a href="http://pascal.vanhecke.info/2006/03/18/wp-shortstat-plugin-broken-after-upgrading-to-wordpress-202/#comments"><img src="http://pascal.vanhecke.info/wp-content/plugins/tantan/get-comments.php?p=157" width="100" height="15" style="border:0;" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://pascal.vanhecke.info/2006/03/18/wp-shortstat-plugin-broken-after-upgrading-to-wordpress-202/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Google Adsense and WordPress 2.0: beware of the preview</title>
		<link>http://pascal.vanhecke.info/2006/01/31/google-adsense-and-wordpress-20-beware-of-the-preview/</link>
		<comments>http://pascal.vanhecke.info/2006/01/31/google-adsense-and-wordpress-20-beware-of-the-preview/#comments</comments>
		<pubDate>Tue, 31 Jan 2006 00:00:30 +0000</pubDate>
		<dc:creator>Pascal Van Hecke</dc:creator>
				<category><![CDATA[Adsense]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://pascal.vanhecke.info/2006/01/31/google-adsense-and-wordpress-20-beware-of-the-preview/</guid>
		<description><![CDATA[WordPress 2.0 has a preview feature that can cause Adsense problems: “… because the post hasn’t been published yet, when Google’s bot tries to crawl the page a few seconds later, it will receive a 404 error.” Google prevents placing ads on 404 pages, as wel as pages hidden behind a login, so you might [...]<div class="tantan-getcomments"><a href="http://pascal.vanhecke.info/2006/01/31/google-adsense-and-wordpress-20-beware-of-the-preview/#comments"><img src="http://pascal.vanhecke.info/wp-content/plugins/tantan/get-comments.php?p=144" width="100" height="15" style="border:0;" /></a></div>]]></description>
			<content:encoded><![CDATA[<p>WordPress 2.0 has a <a href="http://error.wordpress.com/2005/12/27/adsense-on-wordpress-20/">preview feature that can cause Adsense problems</a>:<span id="more-144"></span></p>
<blockquote><p>“… because the post hasn’t been published yet, when Google’s bot tries to crawl the page a few seconds later, it will receive a 404 error.”</p></blockquote>
<p>Google prevents placing ads on <a href="http://en.wikipedia.org/wiki/File_Not_Found">404</a> pages, as wel as pages hidden behind a login, so you might get banned from Adsense.  Or  if not, get poorly targeted ads on the posting when published.  Another annoying feature for <a href="http://en.wikipedia.org/wiki/Web_statistics">stats junkies</a>, are the invalid page hits.</p>
<p>There’s  a <a href="http://blog.hypercubed.com/index.php/archives/2006/01/03/wordpress-20-hide-post-preview/">solution</a>: insert a bit of javascript in the  /wp-admin/post.php  file and make the preview optional.  Quick and dirty (<em>it’s not isolated in a plugin, so you’ll have to reapply it when upgrading</em>), but effective.</p>
<div class="tantan-getcomments"><a href="http://pascal.vanhecke.info/2006/01/31/google-adsense-and-wordpress-20-beware-of-the-preview/#comments"><img src="http://pascal.vanhecke.info/wp-content/plugins/tantan/get-comments.php?p=144" width="100" height="15" style="border:0;" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://pascal.vanhecke.info/2006/01/31/google-adsense-and-wordpress-20-beware-of-the-preview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Managing draft posts</title>
		<link>http://pascal.vanhecke.info/2006/01/29/managing-draft-posts/</link>
		<comments>http://pascal.vanhecke.info/2006/01/29/managing-draft-posts/#comments</comments>
		<pubDate>Sat, 28 Jan 2006 23:45:20 +0000</pubDate>
		<dc:creator>Pascal Van Hecke</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[KM]]></category>
		<category><![CDATA[Wiki]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://pascal.vanhecke.info/2006/01/29/managing-draft-posts/</guid>
		<description><![CDATA[This is a post that should never have been written. &#8220;Blogging is brainfarting&#8221;, so anything you write is for publication, and there shouldn&#8217;t be anything to manage! Why then are there constipated people like me, who end up with more than 70 draft posts, and feel this urge to manage them? Why? Vanity might be [...]<div class="tantan-getcomments"><a href="http://pascal.vanhecke.info/2006/01/29/managing-draft-posts/#comments"><img src="http://pascal.vanhecke.info/wp-content/plugins/tantan/get-comments.php?p=143" width="100" height="15" style="border:0;" /></a></div>]]></description>
			<content:encoded><![CDATA[<p>This is a post that should never have been written. &ldquo;Blogging is brainfarting&rdquo;, so anything you write is for publication, and there shouldn&#8217;t be anything to  manage! Why then are there constipated people like me, who end up with more  than 70 draft posts, and feel this urge to <em>manage</em> them?  <span id="more-143"></span> </p>
<h3 id="toc-why">Why?</h3>
<p>Vanity might be a reason. Fooling yourself into thinking: &ldquo;every posting should <em>add something</em>&rdquo;. It should be <em>original</em>. It should be witty and well-written. </p>
<p>Because, after all, it is <em>yours</em>, and people will judge you on it. So you <em>really</em> still need to work on it before letting it out! And so you <em>procrastinate</em>. You don&rsquo;t publish anymore. You postpone till next weekend. And then the weekend after that. And when a draft gets stale or obsolete because everybody has read and written on the same subject, you don&rsquo;t even delete. Because you still might rework it, <em>later</em>. When there&rsquo;s more time and new inpiration. </p>
<p>If you don&rsquo;t recognize the state of self-deception described above, count yourself lucky. For the rest of us silly perfectionists and procrastinators, what follows is a guide to manage your draft postings. Oh BTW, you&rsquo;re asking yourself how I finally managed to post this one? Really easy: following the advice of this essay on <a href="http://www-csli.stanford.edu/~john/procrastination.html">structured procrastination</a>, I in fact should have been finishing on <em>this other big posting the world was waiting for</em>. But, well, finishing things is so hard&hellip; So in order to have an excuse not to work on it, I finished this one :-) </p>
<p><em>&lt; !&mdash;&ndash; end of tongue-in-cheek-mode &mdash;&ndash;&gt;</em> </p>
<h3 id="toc-how">How?</h3>
<p>What are the ways to manage your draft postings? Let&rsquo;s start with the  most obvious way: saved as draft in your blogging system </p>
<ul>
<li>This works fine for just a couple of posts. As soon as you have a considerable number, you need to be able to <strong>search</strong> through your drafts &ndash; WordPress doesn&rsquo;t allow to do this, and I do not know of any other blogging engine who does.</li>
<li>With longer posts, the typical <strong>edit textbox</strong> is a pain to use. Here some WordPress-specific workarounds, none of them perfect:
<ul>
<li>in the admin panel, make the edit box bigger to get a better overview: options&hellip; writing&hellip; Size of the post box (in lines)</li>
<li>since <a href="http://wordpress.org/development/2005/12/wp2/">WordPress 2.0</a>, there&rsquo;s a post preview pane in the editing window, but it still takes a lot of scrolling down (and within the preview pane)</li>
<li>publish your post with a timestamp set in the future. You can have a look at the posting as it will be published, but it doesn&rsquo;t show (yet) on the front page or in the navigation. Or you could publish as <a href="http://codex.wordpress.org/Pages">page </a>(without including them in the navigation) to achieve the same effect. Neither trick solves the search problem however.</li>
</ul>
</li>
</ul>
<p>There should be better ways to keep an overview of, and search through your  drafts, and more comfortable editing environments. Let&rsquo;s have a look at  some other tools I tried *: </p>
<ul>
<li>Collect snippets of text in your <strong>Gmail drafts folder</strong>
<ul>
<li>the <code>in:drafts &lt;searchword&gt;</code> search phrase solves the  searching problem</li>
<li>the editing environment still is not ideal for long texts</li>
<li>you probably also have draft mails cluttering up the folder (logically,  that&rsquo;s what it&rsquo;s meant for)</li>
<li>could be useful if you <a href="http://codex.wordpress.org/Blog_by_Email">post  to your blog via email</a> anyway, but that seems more of a quick-posting  style which is contradictory to the idea of keeping and working on draft  posts :-)</li>
</ul>
</li>
<li><strong>Mind mapping</strong> tools
<ul>
<li>a mind mapping tool helps you to organize thoughts and concepts (see  <a href="http://pascal.vanhecke.info/2005/10/11/linklogs-talk-mind-map-and-wikipedia-article-stub/">earlier  posting</a> for an example).</li>
<li>so it can help you while preparing a text (which is why Mindjet <a href="http://blog.mindjet.com/2005/07/blog-better-with-mindmanager">promotes  its MindManager tool</a> to bloggers). But it doesn&rsquo;t help you to  get an overview on a collection of individual draft postings. And it is  more suitable for the phase of brainstorming and collecting ideas, not  so much for editing and finishing your postings.</li>
</ul>
</li>
<li><strong>Online text editors</strong>
<ul>
<li><a href="http://www.jotlive.com/">Jotspot</a>, <a href="http://www.writely.com/">Writely</a>,  <a href="http://www.writeboard.com/">Writeboard</a>, <a href="http://www.zohowriter.com/">Zohowriter</a>,  <a href="http://online.thinkfree.com/">Thinkfree</a>, <a href="http://synchroedit.com/">SynchroEdit</a>,  <a href="http://www.goffice.com/">Goffice</a>&hellip; a bunch of &ldquo;collaborative  online text editors&rdquo; has sprung up and try to be the MS Office for  the web (I tried them for a friend who wanted to circumvent corporate  IT to work on texts with colleagues &ndash; I have a draft post with a  comparison somewhere :-)</li>
<li>after a while, I gave up on using them: these tools have put a lot of  effort in trying to imitate the Office and Windows interfaces (working  with menus, pop-up windows&hellip;), which is just clumsy and uncomfortable  on the web.</li>
<li>I found Writely to be the most promising and feature-rich at first sight,  but the Writely code is not xhtml-compliant (e.g. tags instead of ) and  postings from Writely to the blog lost their title ) I&rsquo;m wondering  whether pro blogger Steve Rubel (see his <a href="http://www.micropersuasion.com/2005/11/ten_blogging_ha.html">10  blogging hacks</a>) <em>really</em> uses it.</li>
</ul>
</li>
<li>Write and maintain your <strong>draft texts in a wiki</strong>
<ul>
<li>not a bad idea: wikis have search built-in, and by the nature of a wiki,  editing should be quick and easy</li>
<li>you might have trouble copy-pasting from your wiki to your blog, because  of differences in how they handle/produce html</li>
<li>if you want to get away from a web-based editing interface, a wiki is  not a solution of course</li>
<li>like mindmapping tools, some would argue that a wiki is more suitable  for the brainstorming phase <em>before</em> defining the scope of your  blog posting.</li>
<li>an example: Dutch KM blogger <a href="http://www.zylstra.org/blog/">Ton  Zylstra</a> has a WikkaWiki running on his laptop for &ldquo;working out  ideas, filing, keeping notes&rdquo; (see his overview of <a href="http://www.zylstra.org/blog/archives/2005/10/information_str_1.html">information-processing  tools</a>).</li>
</ul>
</li>
<li><strong>Desktop blogging tools</strong>
<ul>
<li>Instead of a web interface, you can use a desktop application that posts  to your blog, here&rsquo;s a quick list (from yet another draft posting  :-) ):
<ul>
<li><a href="http://wbloggar.com/">W.Bloggar</a>  and <a href="http://www.zempt.com/">Zempt</a> are freeware oldies  with which you edit the html code: only for masochists</li>
<li>the more recent <a href="http://www.qumana.com/">Qumana</a> and  <a href="http://www.zoundry.com/">Zoundry  Blog Writer</a> are more sophisticated and very nice freeware aiming  to create an advertising network through its userbase</li>
<li>you can get <a href="http://ecto.kung-foo.tv/">Ecto</a> (Mac and  Windows) and <a href="http://blogjet.com/">Blogjet</a> (Windows only)  for a moderate fee. They probably are very well worth their money  if you spend a lot of time writing and want an intuitive and comfortable  interface.</li>
</ul>
</li>
<li>Apart from the first two, I find them more comfortable to work with  than a web interface &ndash; and you can save your drafts on your hard  disk and work on them off-line</li>
<li>but again, there&rsquo;s no way to search trough your drafts, unless  you use the text search functionality in Windows (or Mac, or&hellip;)</li>
</ul>
</li>
<li>Blog posting as an <strong>extension to your browser</strong>
<ul>
<li>the &ldquo;social browser&rdquo; <a href="http://www.flock.com/">Flock</a>  was hyped too early and failed the expectations, but the <a href="http://performancing.com/firefox/">Performancing  plugin</a> in Firefox is a lightweight and very practical alternative  &ndash; have a look at the <a href="http://performancing.com/firefox/handbook">features</a>.</li>
<li>search your &ldquo;notes&rdquo;, switch between WYSIWYG, code and preview  pane, maximize the editing window&hellip; really great! (the plugin saves  your non-published notes on your harddisk in \Application Data\Mozilla\Firefox\Profiles\{some  profile identifier}\extensions\performancing-notes.xml)</li>
<li>what it still lacks in comparison with desktop blogging tools is support  for image upload and for extended entries (separating the intro and the  &ldquo;More&hellip;&rdquo; part of the text )</li>
</ul>
</li>
</ul>
<h3 id="toc-what">What</h3>
<p>Finally, here&#8217;s the recipe I settled for (for now :-) ): </p>
<ul>
<li>publish snippets of text to a separate blog set up on a different subdomain  or subdirectory (such as test.vanhecke.info, but with another name :-).)</li>
<li>searching is the same as searching on any blog, and you see the text as  it will be published</li>
<li>the described desktop blogging clients and the Performancing plugin make  it easy to manage multiple blogging accounts &ndash; when the text is finished,  swith the target blog and publish to the actual blog</li>
<li>configure the image upload for the test blog to be the same location as  the actual blog</li>
<li>if you want to keep your testblog private, don&rsquo;t forget:
<ul>
<li>to put <code> &lt;meta content=&quot;noindex, nofollow&quot; name=&quot;robots&quot;&gt;</code>  in your html or <a href="http://www.searchengineworld.com/robots/robots_tutorial.htm">disallow</a>  search engines with your robots.txt.</li>
<li>switch off trackback and pingback</li>
</ul>
</li>
</ul>
<p>So, will it make me more productive? Dunno, but at least it made me write on  technical solutions for a psychological issue. How more geeky can it get?</p>
<p> <em>* (not necessarily alone in the context of blogging but for keeping notes  and editing texts in general)</em> </p>
<div class="tantan-getcomments"><a href="http://pascal.vanhecke.info/2006/01/29/managing-draft-posts/#comments"><img src="http://pascal.vanhecke.info/wp-content/plugins/tantan/get-comments.php?p=143" width="100" height="15" style="border:0;" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://pascal.vanhecke.info/2006/01/29/managing-draft-posts/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Google Adsense: easy Section Targeting in WordPress</title>
		<link>http://pascal.vanhecke.info/2005/08/26/google-adsense-easy-section-targeting-in-wordpress/</link>
		<comments>http://pascal.vanhecke.info/2005/08/26/google-adsense-easy-section-targeting-in-wordpress/#comments</comments>
		<pubDate>Thu, 25 Aug 2005 23:35:20 +0000</pubDate>
		<dc:creator>Pascal Van Hecke</dc:creator>
				<category><![CDATA[Adsense]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://pascal.vanhecke.info/2005/08/26/google-adsense-easy-section-targeting-in-wordpress/</guid>
		<description><![CDATA[If you&#8217;re not satisfied with the relevancy of your Adsense Ads (and thus your CTR), try section targeting: inserting a start and end html comment to mark the relevant content sections of your page. A very easy way to do this in the WordPress default Kubrick theme (or themes derived from it): insert &#60;!-- google_ad_section_start [...]<div class="tantan-getcomments"><a href="http://pascal.vanhecke.info/2005/08/26/google-adsense-easy-section-targeting-in-wordpress/#comments"><img src="http://pascal.vanhecke.info/wp-content/plugins/tantan/get-comments.php?p=93" width="100" height="15" style="border:0;" /></a></div>]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re not satisfied with the relevancy of your Adsense Ads (and thus your <a href="http://en.wikipedia.org/wiki/Click-through_rate">CTR</a>), try <a href="http://www.google.com/support/adsense/bin/answer.py?answer=23168&#038;topic=371">section targeting</a>: inserting a start and end html comment to mark the relevant content sections of your page.<span id="more-93"></span></p>
<p>A very easy way to do this in the WordPress default Kubrick theme (or themes derived from it):
<ul>
<li>insert <code>&lt;!-- google_ad_section_start --&gt;</code> at the bottom of header.php of your <a href="http://codex.wordpress.org/Using_Themes">WordPress theme</a></li>
<li>insert <code>&lt;!-- google_ad_section_end --&gt;</code> at the top of sidebar.php</li>
</ul>
<p>Or vice versa, if you think your navigation is responsible for leveling down ads to your site&#8217;s <em>lowest common denominator</em> contentwise, and the myriads of worthless ads for free blog and photo sharing sites, decrease your sidebar&#8217;s importance by
<ul>
<li>having the just inserted ad_section_end  at the top of sidebar.php followed by <code>&lt;!-- google_ad_section_start(weight=ignore) --&gt;</code></li>
<li>closing that section again with <code>&lt;!-- google_ad_section_end --&gt;</code>  at the bottom of sidebar.php</li>
</ul>
<p>Or you might demote the comments by closing the ad_section and reopen a &#8220;weight=ignore&#8221; one  before in comments.php etc&#8230; </p>
<p>Still this leaves us to wonder: wasn&#8217;t Google the company with those intelligent algorithms who could determine that, let&#8217;s say an identical bunch of links that appears on (almost) every page <em>probably</em> isn&#8217;t really fundamentally important for the content of one particular page?  And that text in small font further down the html source <em>probably</em> matters less than the chunck of text that reiterates the title?  Hmm&#8230; they&#8217;re not trying to fool us into playing the <a href="http://pascal.vanhecke.info/2005/05/30/spamblogs/">bad guy</a>, are they :-) &#8230; </p>
<p>(via <a href="http://www.jensense.com/archives/2005/08/section_targeti.html">Jensense</a>, the always very well informed expert on contextual advertising.)</p>
<div class="tantan-getcomments"><a href="http://pascal.vanhecke.info/2005/08/26/google-adsense-easy-section-targeting-in-wordpress/#comments"><img src="http://pascal.vanhecke.info/wp-content/plugins/tantan/get-comments.php?p=93" width="100" height="15" style="border:0;" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://pascal.vanhecke.info/2005/08/26/google-adsense-easy-section-targeting-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>How I got my Header pic</title>
		<link>http://pascal.vanhecke.info/2005/07/15/how-i-got-my-header-pic/</link>
		<comments>http://pascal.vanhecke.info/2005/07/15/how-i-got-my-header-pic/#comments</comments>
		<pubDate>Thu, 14 Jul 2005 22:15:50 +0000</pubDate>
		<dc:creator>Pascal Van Hecke</dc:creator>
				<category><![CDATA[Conversation]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://pascal.vanhecke.info/2005/07/15/how-i-got-my-header-pic/</guid>
		<description><![CDATA[Via Kubrickr, the Flickr-based webservice for graphically impaired people (like me). This is how you do it: submit a word that is somewhat remotely connected to your blog (&#8220;Ghent&#8220;) click next till you find a pic you think is abstract enough to fit anywhere but still suggests some deeper meaning select a horizontal strip, hit [...]<div class="tantan-getcomments"><a href="http://pascal.vanhecke.info/2005/07/15/how-i-got-my-header-pic/#comments"><img src="http://pascal.vanhecke.info/wp-content/plugins/tantan/get-comments.php?p=66" width="100" height="15" style="border:0;" /></a></div>]]></description>
			<content:encoded><![CDATA[<p>Via <a href="http://www.redalt.com/Tools/kubrickr.php">Kubrick<span style="color: rgb(255, 0, 132);">r</span></a>, the <a href="http://www.flickr.com/">Flick<span style="color: rgb(255, 0, 132);">r</span></a>-based webservice for graphically impaired people (like me).<br />
This is how you do it:<span id="more-66"></span><br />
<img src='http://pascal.vanhecke.info/wp-content/upload_images/20050715_headerpic.jpg' alt='Header pic summer 2005' class = 'alignright' /></p>
<ul>
<li>submit a word that is somewhat remotely connected to your blog (&#8220;<a href="http://www.redalt.com/Tools/kubrickr.php?tag=ghent">Ghent</a>&#8220;)</li>
<li>click <a href="http://www.redalt.com/Tools/kubrickr.php?tag=ghent&#038;page=2">next</a> till you <a href="http://www.redalt.com/Tools/kubrickr.php?photo=18213558%3A836d8aaa74%3A13">find</a> a pic you think is abstract enough to fit anywhere but still suggests some deeper <a href="http://www.flickr.com/photos/35468134730@N01/18213558/">meaning</a></li>
<li>select a horizontal strip, hit the crop button, download the produced kubrickheader.jpg, overwrite your /wp-content/themes/Default/images/kubrickheader.jpg or /wp-content/themes/&lt;your_own_theme&gt;/images/kubrickheader.jpg</li>
<li><a href="http://creativecommons.org/licenses/by/2.0/">attribute</a> the <a href="http://www.flickr.com/photos/loufi/">author</a> in the footer</li>
<li>get <a href="http://pascal.vanhecke.info/2005/07/02/wordpress-plugins-wysiwyg-editor-rss-links-recent-comments/#comment-42">discovered</a>  and exposed as an impostor: &#8220;<em>Hey, I got at your site by coincidence* and I see my stoopid pic in the header. cool :-)</em>&#8220;</li>
</ul>
<p>* <em>actually, he was <a href="http://www.google.com/search?q=%22Hendrik+Dacquin%22">egosurfing</a></em></p>
<div class="tantan-getcomments"><a href="http://pascal.vanhecke.info/2005/07/15/how-i-got-my-header-pic/#comments"><img src="http://pascal.vanhecke.info/wp-content/plugins/tantan/get-comments.php?p=66" width="100" height="15" style="border:0;" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://pascal.vanhecke.info/2005/07/15/how-i-got-my-header-pic/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>WordPress plugins: WYSIWYG editor, rss links, recent comments</title>
		<link>http://pascal.vanhecke.info/2005/07/02/wordpress-plugins-wysiwyg-editor-rss-links-recent-comments/</link>
		<comments>http://pascal.vanhecke.info/2005/07/02/wordpress-plugins-wysiwyg-editor-rss-links-recent-comments/#comments</comments>
		<pubDate>Sat, 02 Jul 2005 15:31:27 +0000</pubDate>
		<dc:creator>Pascal Van Hecke</dc:creator>
				<category><![CDATA[del.icio.us]]></category>
		<category><![CDATA[TinyMce]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://pascal.vanhecke.info/2005/07/02/wordpress-plugins-wysiwyg-editor-rss-links-recent-comments/</guid>
		<description><![CDATA[WordPress is designed in such a way that people can easily download and install plugins (add-ons and modifications). Three plugins I found very useful: WYSIWYG HTML editor Most people are put off by the HTML markup in the default WordPress editor. So if you want non-technical people to use WordPress as a blog or light-weight [...]<div class="tantan-getcomments"><a href="http://pascal.vanhecke.info/2005/07/02/wordpress-plugins-wysiwyg-editor-rss-links-recent-comments/#comments"><img src="http://pascal.vanhecke.info/wp-content/plugins/tantan/get-comments.php?p=64" width="100" height="15" style="border:0;" /></a></div>]]></description>
			<content:encoded><![CDATA[<p>WordPress is designed in such a way that people can easily download and install <a href="http://codex.wordpress.org/Plugins">plugins</a> (add-ons and modifications).  Three plugins I found very useful:<span id="more-64"></span></p>
<h3 id="toc-wysiwyg-html-editor">WYSIWYG HTML editor</h3>
<p>Most people are put off by the HTML markup in the default WordPress editor.  So if you want non-technical people to use WordPress as a blog or light-weight Content Management System, <a href="http://mudbomb.com/archives/2005/02/02/wysiwyg-plugin-for-wordpress">this plugin</a> can help.  It replaces the WordPress &#8220;quicktags&#8221; with the  <a href="http://tinymce.moxiecode.com/">TinyMCE</a> editor.    TinyMCE has the advantage that it:</p>
<ul>
<li>works in both IE and Firefox (see <a href="http://tinymce.moxiecode.com/example.php">examples</a>)</li>
<li>is highly <a href="http://tinymce.moxiecode.com/tinymce/docs/reference_configuration.html">configurable</a> (by editing the wordpress.js javascript file)</li>
<li>can <a href="http://tinymce.moxiecode.com/tinymce/docs/option_auto_cleanup_word.html">clean up</a> copy-pasted MS Word Mark-up (although I noticed it&#8217;s not perfect)</li>
</ul>
<p><em>Download: <a href="http://mudbomb.com/archives/2005/02/02/wysiwyg-plugin-for-wordpress">mudbomb.com</a>.  Normal <a href="http://codex.wordpress.org/Managing_Plugins#Plugin_Installation">installation procedure</a>.<br />
For further reference:  an extensive list of <a href="http://www.geniisoft.com/showcase.nsf/WebEditors">webbased html editors</a></em></p>
<h4 id="toc-update-august-16">Update August 16</h4>
<p>TinyMCE will be <a href="http://photomatt.net/2005/08/05/wysi/">integrated into WordPress 1.6</a> by default</p>
<h3 id="toc-display-links-titles-and-description-for-any-rss-feed">Display links, titles and description for any RSS feed</h3>
<p>This <a href="http://chrismetcalf.net/wiki/index.php/DeliciousPlugin">del.icio.us plugin</a> will do so.  The plugin was written with a <a href="http://del.icio.us/">del.icio.us</a> <a href="http://del.icio.us/pascalvanhecke">linklist</a> in mind, but works for any RSS feed (at least the ones I tried ;-) ).  The installation instructions require you to download the <a href="http://magpierss.sourceforge.net">Magpie RSS library</a> &#8211; I&#8217;m not really sure whether that&#8217;s strictly necessary in WordPress 1.5, since Magpie is used within WordPress itself (/wp-incluces/rss-functions.php).  However, I assume WordPress uses a slimmed down version, since I could not find some of the options Magpie has.  In order to correctly display French accents for example, I had to instruct Magpie to produce its output in UTF-8 (the charset of <a href="http://www.european-democracy.org/">the blog it was implemented on</a>).  With the full library, this insert in the configuration section of  /plugins/del.icio.us.php helped:</p>
<p><code> define('MAGPIE_OUTPUT_ENCODING', 'UTF-8');</code></p>
<p><em>Docs and download: Chris Metcalf&#8217;s  <a href="http://chrismetcalf.net/wiki/index.php/DeliciousPlugin">Deli.icio.us plugin page</a>.  Comments at his <a href="http://chrismetcalf.net/blog/archives/2005/01/03/delicious-plugin-for-wordpress/">blog</a>.<br />
For further reference: this generic &#8220;<a href="http://rawlinson.us/blog/index.php?p=212">RSS link list plugin</a>&#8221; builds further on the one I used, but uses another (and simpler: just a single-file) library &#8211; haven&#8217;t tried it though.</em></p>
<h3 id="toc-show-list-of-recent-comments-throughout-your-blog-postings">Show list of recent comments throughout your blog postings</h3>
<p>Another very popular application, so there are quite some implementations: I tested a couple <a href="http://www.semiologic.com/projects/recent-comments/">of</a> <a href="http://dev.wp-plugins.org/browser/comment-plugger/">them</a>, but when I saw the screenshots of this  <a href="http://dev.wp-plugins.org/wiki/GetRecentComments">Get Recent Comments</a> by <a href="http://blog.jodies.de/">Krischan Jodies</a> I knew I didn&#8217;t have to search any further.<br />
Not only does it provide you with full formatting power and the very useful option to wrap long words at a number of characters (so they do not distort the typical narrow sidebar), it also lets you do this within the normal WordPress admin interface, storing your preferences in the database (instead of you having to edit config options in php code).</p>
<p><em>See <a href="http://dev.wp-plugins.org/wiki/GetRecentComments">docs</a> and <a href="http://blog.jodies.de/blog/20041113/">download</a>.  If you want to <a href="http://codex.wordpress.org/Writing_a_Plugin">write a plugin</a> yourself, its <a href="http://dev.wp-plugins.org/file/comment-plugger/trunk/comment-plugger.php">source code</a> is probably a good starting point.</em></p>
<h3 id="toc-more-plugins">More plugins</h3>
<p>can be found here:</p>
<ul>
<li><a href="http://www.wp-plugins.net/">WordPress Plugin DB</a></li>
<li><a href="http://dev.wp-plugins.org/wiki/PluginDirectory">Directory on Plugin developers site</a></li>
<li><a href="http://codex.wordpress.org/Plugins">Plugin overview on WordPress Codex</a></li>
<li><a href="http://wiki.wordpress.org/?pagename=Plugin">Plugin page on old WordPress Wiki</a></li>
</ul>
<div class="tantan-getcomments"><a href="http://pascal.vanhecke.info/2005/07/02/wordpress-plugins-wysiwyg-editor-rss-links-recent-comments/#comments"><img src="http://pascal.vanhecke.info/wp-content/plugins/tantan/get-comments.php?p=64" width="100" height="15" style="border:0;" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://pascal.vanhecke.info/2005/07/02/wordpress-plugins-wysiwyg-editor-rss-links-recent-comments/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Create your own WordPress Information Widgets</title>
		<link>http://pascal.vanhecke.info/2005/06/14/create-your-own-wordpress-widgets/</link>
		<comments>http://pascal.vanhecke.info/2005/06/14/create-your-own-wordpress-widgets/#comments</comments>
		<pubDate>Tue, 14 Jun 2005 21:56:40 +0000</pubDate>
		<dc:creator>Pascal Van Hecke</dc:creator>
				<category><![CDATA[IA]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://pascal.vanhecke.info/2005/06/14/create-your-own-wordpress-widgets/</guid>
		<description><![CDATA[Adding structure within blog postings can go further than using H1, H2, H3 headings and blockquote tags&#8230; You can create and use your own &#8220;information widgets&#8221;. Here&#8217;s an example: the &#8220;info box&#8221;&#8230; WordPress Themes The WordPress theme system is a really powerful way to change and customize layout and navigation for your blog. You can [...]<div class="tantan-getcomments"><a href="http://pascal.vanhecke.info/2005/06/14/create-your-own-wordpress-widgets/#comments"><img src="http://pascal.vanhecke.info/wp-content/plugins/tantan/get-comments.php?p=52" width="100" height="15" style="border:0;" /></a></div>]]></description>
			<content:encoded><![CDATA[<p>Adding structure within blog postings can go further than using H1, H2, H3 headings and blockquote tags&#8230;  You can create and use your own &#8220;information widgets&#8221;.  Here&#8217;s an example: the &#8220;info box&#8221;&#8230;<span id="more-52"></span></p>
<div class="infobox">
<div class="infoboxheader">WordPress Themes</div>
<div class="infoboxbody">The <a href="http://codex.wordpress.org/Using_Themes">WordPress theme</a> system is a really powerful way to change and customize layout and navigation for your blog.  You can <a href="http://www.alexking.org/index.php?content=software/wordpress/themes.php">download themes</a>, or <a href="http://codex.wordpress.org/Theme_Development">develop your own</a>.  </p>
<p>The first and most easy step in developing your own theme is  customizing the <a href="http://codex.wordpress.org/CSS">WordPress stylesheet</a>, but you can go and change the structure of your blog by rearranging <a href="http://codex.wordpress.org/Template_Tags">Template Tags</a> in the <a href="http://codex.wordpress.org/The_Loop">WordPress Loop</a>.</div>
</div>
<p>An info box (<em>my definition, <a href="http://en.wikipedia.org/wiki/Information_architecture">Information Architects</a> probably have a better word for it&#8230; <a href="http://www.poorbuthappy.com/ease/">Peter</a>?</em>) contains some background info you want to add it as a side note, separate from the normal text flow.  You can achieve the effect in 2 steps:</p>
<h3 id="toc-define-containing-css-classes">Define containing css classes</h3>
<p>First we want to have a css class wrapping the box, sizing and positioning it on the right side in the blog text.<br />
Simply add this to the style.css file of your theme:</p>
<blockquote><p>
.entrytext .infobox<br />
{<br />
width: 200px;<br />
position: relative;<br />
float: right;<br />
padding: 0px;<br />
margin: 0px 0px 10px 10px;<br />
border: 1px solid #06c;<br />
}
</p></blockquote>
<p>Then define infobox header and body text:</p>
<blockquote><p>
.entrytext .infoboxbody<br />
{<br />
font-size: 0.75em;<br />
padding: 10px;<br />
line-height: 1.2em;<br />
}<br />
.entrytext .infoboxheader<br />
{<br />
color: #FFFFFF;<br />
font-weight: bold;<br />
text-align: center;<br />
line-height: 3em;<br />
background-color : #06c;<br />
}</p></blockquote>
<h3 id="toc-create-your-custom-quicktag">Create your custom &#8220;quicktag&#8221;</h3>
<p>Of course you do not want to write </p>
<blockquote><p>&lt;div class=&quot;infobox&quot;&gt;<br />
&lt;div class=&quot;infoboxheader&quot;&gt;Infobox Title&lt;/div&gt;<br />
&lt;div class=&quot;infoboxbody&quot;&gt;Infobox Body text&lt;/div&gt;<br />
&lt;/div&gt; </p></blockquote>
<p>every time manually.  In /wp-admin/quicktags.js you can copy-paste:</p>
<blockquote><p>
edButtons[edButtons.length] = new edButton(&#8216;infobox&#8217;<br />
,&#8217;IBox&#8217;<br />
,&#8217;&lt;div class=&quot;infobox&quot;&gt;&lt;div class=&quot;infoboxheader&quot;&gt;Infobox:<br />
Title&lt;/div&gt;&lt;div class=&quot;infoboxbody&quot;&gt;&lt;/div&gt;Infobox Body text&lt;/div&gt;&#8217;<br />
,&#8221;<br />
,&#8217;x&#8217;<br />
);
</p></blockquote>
<p>to get your own IBox button<br />
<img src='http://pascal.vanhecke.info/wp-content/upload_images/20050615_quicktags.png' alt='Customized quicktags in WordPress admin interface' /><br />
in between the similarly looking other definitions.  The 5th argument makes the &#8216;SHIFT+ALT+x&#8217; a shortcut key for inserting a dummy info box.  By the way: the extra &#8220;H3&#8243; button is the result of almost identical code: </p>
<blockquote><p>edButtons[edButtons.length] = new edButton(&#8216;heading_3&#8242;<br />
,&#8217;H3&#8242;<br />
,&#8217;&lt;H3&gt;&#8217;<br />
,&#8217;&lt;/H3&gt;&#8217;<br />
,&#8221;<br />
);</p></blockquote>
<p>the only difference being that with &lt;H3&gt; and &lt;/H3&gt; split over 2 arguments, the same button will open and afterwards close the tag, or wrap selected text within them immediately.</p>
<h3 id="toc-some-caution">Some caution</h3>
<p>Note that /wp-admin/quicktags.js is not included in your WordPress theme, and so can be overwritten when upgrading WordPress.  So don&#8217;t forget to document this somewhere you can refer back to when upgrading.  Hey&#8230; why not simply  <a href="http://pascal.vanhecke.info/2005/06/14/create-your-own-wordpress-widgets/">blog it</a>?</p>
<h3 id="toc-update-june-15-feeds">Update June 15: feeds&#8230;</h3>
<p>Doesn&#8217;t seem to be a good idea if you include your entire posts in rss feeds: <a href="http://www.bloglines.com/preview?siteid=1506090">Bloglines preview</a>&#8230;  Including css in rss feeds (or rather, in the html of each and every individual post) is probably not really what rss is made for, and using tables or inline css makes the widget far less attractive&#8230;  Any ideas?</p>
<div class="tantan-getcomments"><a href="http://pascal.vanhecke.info/2005/06/14/create-your-own-wordpress-widgets/#comments"><img src="http://pascal.vanhecke.info/wp-content/plugins/tantan/get-comments.php?p=52" width="100" height="15" style="border:0;" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://pascal.vanhecke.info/2005/06/14/create-your-own-wordpress-widgets/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>WordPress 1.2 to 1.5 migration</title>
		<link>http://pascal.vanhecke.info/2005/03/28/wordpress-12-to-15-migration/</link>
		<comments>http://pascal.vanhecke.info/2005/03/28/wordpress-12-to-15-migration/#comments</comments>
		<pubDate>Mon, 28 Mar 2005 17:16:11 +0000</pubDate>
		<dc:creator>Pascal Van Hecke</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.vanhecke.info/blog/?p=7</guid>
		<description><![CDATA[Upgrading WP works like a charm following the WordPress wiki&#8217;s instructions&#8230; For testing, I duplicated an existing installation, to see what it was like&#8230;: copied the database uploaded the unpacked install files changed the db settings in /wp-config.php to the copied database ran / wp-admin/upgrade.php in the database, manually adjusted in the wp_options table: siteurl [...]<div class="tantan-getcomments"><a href="http://pascal.vanhecke.info/2005/03/28/wordpress-12-to-15-migration/#comments"><img src="http://pascal.vanhecke.info/wp-content/plugins/tantan/get-comments.php?p=7" width="100" height="15" style="border:0;" /></a></div>]]></description>
			<content:encoded><![CDATA[<p>Upgrading WP works like a charm following <a href="http://codex.wordpress.org/Upgrade_1.2_to_1.5">the WordPress wiki&#8217;s instructions</a>&#8230;  For testing, I duplicated <a href="http://www.european-democracy.org/" title="Weblog on European Politics">an existing installation,</a> to see what it was like&#8230;: <span id="more-7"></span></p>
<ul>
<li><a href="http://www.european-democracy.org/" title="Weblog on European Politics"><img src='http://pascal.vanhecke.info/wp-content/upload_images/europeandemocracy_before.jpg' alt='Old look and feel'  align ='right' /></a> copied the database</li>
<li>uploaded the unpacked install files</li>
<li>changed the db settings in /wp-config.php to the copied database</li>
<li>ran / wp-admin/upgrade.php </li>
<li>in the database, manually adjusted in the wp_options table:
<ul>
<li>siteurl to the new testurl</li>
<li>home to that same new testurl</li>
</ul>
</li>
</ul>
<p>&#8230; and I got a copy of the blog up and running.</p>
<p>Two nice results that struck me:</p>
<ul>
<li>the 13 tables were being reduced to only 9</li>
<li>in /wp-content/themes/ there was  a subdir with the newley created theme &#8220;european-democracy&#8221;, next to the &#8220;default&#8221; (Kubrick) and &#8220;classic&#8221; theme</li>
</ul>
<p>This means I could now safely  test and edit  the files in the &#8220;european-democracy&#8221; theme  (a copy of the default theme) via  the &#8220;Presentations -> &#8220;Theme Editor&#8221;  menu, or by downloading the files in <a href="http://www.macromedia.com/software/dreamweaver/">Dreamweaver </a>.   The former installation of WordPress was a heavy hack, I wanted to do it &#8220;the clean way&#8221; now adapting the theme to the original look and feel step by step (filenames refer to files in the theme subdir: /wp-content/themes/european-democracy/).  After going through the modifications described here, I was so pleased I applied most of them to this blog as well ;-) . </p>
<h3 id="toc-css-and-images">CSS and images</h3>
<ul>
<li>most of the css information is in style.css , but the image css is contained in header.php (the reason for that being that the background picture depends on the presence of a sidebar or not -> hence some code is involved to check this)</li>
<li>for my purpose, I could simply remove the css lines from header.php, because I wanted a permanent sidebar, and I didn&#8217;t need a background picture for page and footer</li>
<li>the only image I needed were the header and page background, so I added to style.css :<br />
<code><br />
#header 	{ background: url("images/european-democracy_header.jpg"); }<br />
#page 	{ background: url("images/european-democray_page_background.gif"); }<br />
</code><br />
(note the relative url relative to the css file)</li>
<li>the blog&#8217;s logo and description are inclosed in the headerimg tag, but since the picture already mentions the title, I commented out title and description:<br />
<code><br />
#headerimg<br />
{<br />
	display: none;<br />
}<br />
</code>
</li>
<li>Unfortunately, this makes there&#8217;s no link any more to the homepage in the header&#8230;  My remedy: inserting a transparent image<br />
in  header.php , I added this div:<br />
<code><br />
&lt;!-- modif pvh --&gt;<br />
&lt;div id=&quot;header_click_home&quot;&gt;&lt;a href=&quot;&lt;?php echo get_settings('home');<br />
?&gt;&quot; title = &quot;&lt;?php bloginfo('name'); ?&gt;&quot;&gt;&lt;img src=&quot;&lt;?php<br />
bloginfo('stylesheet_directory'); ?&gt;/images/1px_transparent.gif&quot; alt =&quot;&lt;?php<br />
bloginfo('description'); ?&gt;&quot; border=&quot;0&quot; width =&quot;780&quot;<br />
height=&quot;145&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;!-- end modif pvh --&gt;<br />
</code><br />
into the header div, but before the headerimg div</li>
</ul>
<h3 id="toc-css-and-width">CSS and width</h3>
<ul>
<li>to change page width: replaced the nr of pixels for the #page element in style.css, I made it identical to the width of the header background img</li>
<li>I omitted the width for the footer element, it didn&#8217;t seem necessary</li>
<li>the left column is on the home page determined by the class &#8220;narrowcolumn&#8221; and the text on the right is in the div sidebar, so I played a bit with widths:<br />
<code><br />
.narrowcolumn {<br />
	float: left;<br />
	padding: 0 0 20px 15px;<br />
	margin: 0px 0 0;<br />
	width: 580px;<br />
	}<br />
#sidebar {<br />
	padding: 10px 0px 10px 0px;<br />
	margin-left: 625px;<br />
	width: 150px;<br />
	}<br />
</code><br />
I still don&#8217;t understand how IE deals with this&#8230; I you simply change the padding for #sidebar to &#8220;padding: 10px 0px 10px 5px;&#8221; the sidebar moves to the bottom, where as I thought padding shouldn&#8217;t influence the position of an element?!</li>
</ul>
<h3 id="toc-css-and-colors">CSS and colors</h3>
<ul>
<li>changed background color to #fff (white in a few places)</li>
<li>adjusted stylesheet link colors and indicated changes with /* modif pvh */</li>
</ul>
<h3 id="toc-adding-the-sidebar-to-single-archive-page">Adding the sidebar to single archive page</h3>
<ul>
<li>in the stylesheet, I made .widecolumn identical to .narrowcolumn:<br />
<code><br />
.widecolumn {<br />
float: left;<br />
padding: 0 0 20px 15px;<br />
margin: 0px 0 0;<br />
width: 580px;<br />
}<br />
</code></li>
<li>in single.php, replaced &#8220;&lt;?php get_sidebar(); ?&gt;&#8221; with:<br />
<code>&lt;!--modif pvh --&gt;<br />
&lt;?php get_sidebar(); ?&gt;<br />
&lt;!-- end modif pvh --&gt;<br />
&lt;?php get_footer(); ?&gt;</code></li>
</ul>
<h3 id="toc-metadata-font-size">Metadata font size</h3>
<ul>
<li>in order to make the metadata smaller:<br />
<code><br />
.narrowcolumn .postmetadata {<br />
padding-top: 0px;<br />
font-size: .75em;<br />
}<br />
 </code><br />
Note that I added the fontsize to this combined identifier, not to .postmetadata in order not to change the font size of the metadata under a single post!</li>
</ul>
<h3 id="toc-truncated-archives-and-search-results">Truncated archives and search results</h3>
<ul>
<li>I don&#8217;t like the way the default theme truncates the entries in the archives (with an auto-excerpt to a max of characters), I would rather retain the division between summary and full text the author already put in by using the &lt;!&#8211;more&#8211;&gt;  tag</li>
<li>Easy enough&#8230; in archive.php and search.php, change:<br />
<code>&lt;div class=&quot;entry&quot;&gt;<br />
&lt;?php <br />
//the_excerpt() //modif pvh<br />
the_content()<br />
?&gt;<br />
&lt;/div&gt;</code></li>
</ul>
<h3 id="toc-moving-post-date">Moving post date</h3>
<ul>
<li>in order to have the posting date <em>under</em> the posting, I changed a line in archive.php, search.php, index.php:<br />
<code><br />
&lt;p class=&quot;postmetadata&quot;&gt;&lt;?php the_time('l, F jS, Y') ?&gt;.<br />
Posted in &lt;?php the_category(', ') ?&gt; &lt;strong&gt;|&lt;/strong&gt; &lt;?php<br />
edit_post_link('Edit','','&lt;strong&gt;|&lt;/strong&gt;'); ?&gt; &lt;?php comments_popup_link('No<br />
Comments &amp;#187;', '1 Comment &amp;#187;', '% Comments &amp;#187;'); ?&gt;&lt;/p&gt;</code></li>
<li>no need to change code to remove the date indication under the title, this could be done by selectively making the &lt;small&gt; tag invisible when preceded by the H2 and H3 title tag:<br />
<code><br />
/* start modif pvh */<br />
h2 + small, h3 + small<br />
{<br />
display: none;<br />
}<br />
/* end modif pvh */</code><br />
<em>Update: hmm, as <a href="http://www.handleidinghtml.nl/css/selectors/selectors02.html">this Dutch manual</a> indicates, IE doesn&#8217;t support &#8220;Adjacent sibling element-selector&#8221;!</em></li>
</ul>
<h3 id="toc-sidebar">Sidebar</h3>
<ul>
<li>removed the metalinks in the sidebar by removing these lines from sidebar.php:<br />
<code>&lt;li&gt;&lt;h2&gt;&lt;?php _e('Meta'); ?&gt;&lt;/h2&gt;<br />
&lt;ul&gt;<br />
&lt;?php wp_register(); ?&gt;<br />
&lt;li&gt;&lt;?php wp_loginout(); ?&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&quot;http://validator.w3.org/check/referer&quot; title=&quot;&lt;?php<br />
_e('This page validates as XHTML 1.0 Transitional'); ?&gt;&quot;&gt;&lt;?php _e('Valid<br />
&lt;abbr title=&quot;eXtensible HyperText Markup Language&quot;&gt;XHTML&lt;/abbr&gt;');<br />
?&gt;&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&quot;http://gmpg.org/xfn/&quot;&gt;&lt;abbr title=&quot;XHTML<br />
Friends Network&quot;&gt;XFN&lt;/abbr&gt;&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&quot;http://wordpress.org/&quot; title=&quot;&lt;?php _e('Powered<br />
by WordPress, state-of-the-art semantic personal publishing platform.'); ?&gt;&quot;&gt;WordPress&lt;/a&gt;&lt;/li&gt;<br />
&lt;?php wp_meta(); ?&gt;<br />
&lt;/ul&gt;</code></li>
<li>made sure the links were displayed on the archives pages by changing<br />
<code>&lt;?php /* If this is the frontpage */ if ( is_home() || is_page() /*start modif<br />
pvh */ || true /*end modif pvh */) { ?&gt; </code><br />
in sidebar.php</li>
</ul>
<h3 id="toc-javascript-to-make-external-links-open-in-new-window">Javascript to make external links open in new window</h3>
<ul>
<li>really a great idea from <a href="http://www.maratz.com/blog/archives/2004/11/29/setting-target_blank-to-external-links/" title="javascript hack that selectively rewrites external links to target = _blank ">Marko Dugonjic</a>, so I adapted the header.php</li>
</ul>
<h3 id="toc-strange-effects">Strange effects</h3>
<ul>
<li>I had a some point replaced the #footer entries by:<br />
<code><br />
#footer {<br />
	display: none;<br />
	clear: both;<br />
	}<br />
</code><br />
but the funny result was that in firefox, the border around the page, only came as far down as the right menu text&#8230; another weird effect of floating div&#8217;s&#8230;
</li>
</ul>
<div class="tantan-getcomments"><a href="http://pascal.vanhecke.info/2005/03/28/wordpress-12-to-15-migration/#comments"><img src="http://pascal.vanhecke.info/wp-content/plugins/tantan/get-comments.php?p=7" width="100" height="15" style="border:0;" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://pascal.vanhecke.info/2005/03/28/wordpress-12-to-15-migration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

