<?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>Spare Pencil &#187; WordPress</title>
	<atom:link href="http://sparepencil.com/archives/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://sparepencil.com</link>
	<description></description>
	<lastBuildDate>Sun, 06 Jun 2010 03:17:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Advanced Excerpt + PHP 4 problem (solved)</title>
		<link>http://sparepencil.com/archives/2009/01/17/advanced-excerpt-php-4-problem-solved/</link>
		<comments>http://sparepencil.com/archives/2009/01/17/advanced-excerpt-php-4-problem-solved/#comments</comments>
		<pubDate>Sat, 17 Jan 2009 14:48:42 +0000</pubDate>
		<dc:creator>Bas</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[advanced-excerpt]]></category>
		<category><![CDATA[bugfix]]></category>
		<category><![CDATA[excerpt]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://sparepencil.com/?p=146</guid>
		<description><![CDATA[<p>Immediately after the release of version 0.2.1, I was made aware of a huge problem. The plugin fails to work on PHP 4, causing a fatal error.</p>
<p>A quick update has been released that fixes this. The new safe release&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>Immediately after the release of version 0.2.1, I was made aware of a huge problem. The plugin fails to work on PHP 4, causing a fatal error.</p>
<p>A quick update has been released that fixes this. The new safe release is now 0.2.2, which should be available from <a href="http://wordpress.org/extend/plugins/advanced-excerpt/">the WordPress plugin repository</a> shortly.</p>
<p>The cause for this problem is the fact that PHP 4 can have mbstring enabled, but not support all its functions.  Ironically.</p>
<p>By the way, this would be a good time to urge your host to update PHP. The version 4 releases are all historical now.</p>
]]></content:encoded>
			<wfw:commentRss>http://sparepencil.com/archives/2009/01/17/advanced-excerpt-php-4-problem-solved/feed/</wfw:commentRss>
		<slash:comments>69</slash:comments>
		</item>
		<item>
		<title>Advanced Excerpt 0.2.1 released</title>
		<link>http://sparepencil.com/archives/2009/01/16/advanced-excerpt-021-released/</link>
		<comments>http://sparepencil.com/archives/2009/01/16/advanced-excerpt-021-released/#comments</comments>
		<pubDate>Fri, 16 Jan 2009 20:32:25 +0000</pubDate>
		<dc:creator>Bas</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[advanced-excerpt]]></category>
		<category><![CDATA[excerpt]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://sparepencil.com/?p=143</guid>
		<description><![CDATA[<p>The previous version of the Advanced Excerpt plugin has lasted a long time, but its increasing popularity and several feature requests have finally resulted in a new version.</p>
<p>What new features are included?</p>
<p>Well, most importantly, multi-byte character support. The&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>The previous version of the Advanced Excerpt plugin has lasted a long time, but its increasing popularity and several feature requests have finally resulted in a new version.</p>
<p>What new features are included?</p>
<p>Well, most importantly, multi-byte character support. The plugin has received a lot of attention on the Asian side of the world (judging from the pingbacks), but unfortunately it fails with Chinese, Japanese and a whole host of other character sets. <a href="http://myfairland.net/">Betty</a> was the first to <a href="http://sparepencil.com/archives/2007/08/21/advanced-excerpt-plugin-for-wordpress/#comment-5618">report this problem</a> and kindly helped me solve it. The plugin now supports multi-byte character sets.</p>
<p>I should point out, though, that it will only work when the <em>mbstring</em> PHP extension is enabled on the host. Furthermore, using UTF-8 on your blog is the safest way to make everything work.</p>
<p>People who don&#8217;t have the <em>mbstring</em> extension need not worry, the plugin will continue to work but with multi-byte character support disabled.</p>
<p>Another effort to internationalise the plugin includes the support for translations. The plugin now comes with a language file that can be used for translation. The only languages that are currently available are English and Dutch, but additional translations can be made using the PO file. If you want to translate, but don&#8217;t know how: stay tuned, there will be a post on that shortly.</p>
<p>Many people have been complaining about the problematic implementation of the Advanced Excerpt plugin in templates (using <code>$advancedexcerpt-&gt;filter()</code>). Admittedly, this was a confusing method and besides, the plugin FAQ was slightly incorrect. Sorry to all users who have been trying to get this work for so long.</p>
<p>This problem should be solved with the new release, which introduces the_advanced_excerpt() function. Using advanced excerpts in your template is now as easy as using any of WordPress&#8217; default template tags. Usage details can be found in the <a title="How to use the new API" href="http://wordpress.org/extend/plugins/advanced-excerpt/faq/">plugin FAQ</a>.</p>
<p>One final new addition to the feature set is the ability to ignore custom excerpts (you know, the ones you can write manually for every post you publish). The default behaviour is to always use custom excerpts, but for some reason a blogger might change his mind. One setting changes the behaviour.</p>
<p>Other updates include consistency of the options page with the rest of the new WordPress 2.7 admin interface as well as a compatibility check (which was by far the least work).</p>
<p>So, go ahead and update the plugin and enjoy the new features! Also, feel free to inform me of problems or features you would like to see in a next version in the comments section.</p>
]]></content:encoded>
			<wfw:commentRss>http://sparepencil.com/archives/2009/01/16/advanced-excerpt-021-released/feed/</wfw:commentRss>
		<slash:comments>56</slash:comments>
		</item>
		<item>
		<title>Permission bug resolved in WP 2.5</title>
		<link>http://sparepencil.com/archives/2008/03/30/permission-bug-resolved-in-wp-25/</link>
		<comments>http://sparepencil.com/archives/2008/03/30/permission-bug-resolved-in-wp-25/#comments</comments>
		<pubDate>Sun, 30 Mar 2008 20:44:27 +0000</pubDate>
		<dc:creator>Bas</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://sparepencil.com/?p=119</guid>
		<description><![CDATA[<p>With the release of WordPress 2.5, the AJAX verification method seems to have been changed. This means that my <strong>AJAX Referer Fix</strong> plugin which addresses the related permission issue in previous versions is no longer adequate.</p>
<p>But don&#8217;t worry, the&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>With the release of WordPress 2.5, the AJAX verification method seems to have been changed. This means that my <strong>AJAX Referer Fix</strong> plugin which addresses the related permission issue in previous versions is no longer adequate.</p>
<p>But don&#8217;t worry, the good news is that the new verification method doesn&#8217;t <a href="http://sparepencil.com/archives/2007/06/03/wordpress-and-the-cookies/">conflict</a> with your webhost&#8217;s protection techniques!</p>
<p>To everybody who uses this plugin: it will not work in WP 2.5. If it worked for you in previous version, then you will likely not need it in WP 2.5.</p>
]]></content:encoded>
			<wfw:commentRss>http://sparepencil.com/archives/2008/03/30/permission-bug-resolved-in-wp-25/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>&#8220;You don&#8217;t have permission&#8221; bug revisited</title>
		<link>http://sparepencil.com/archives/2007/08/29/you-dont-have-permission-bug-revisited/</link>
		<comments>http://sparepencil.com/archives/2007/08/29/you-dont-have-permission-bug-revisited/#comments</comments>
		<pubDate>Wed, 29 Aug 2007 20:25:47 +0000</pubDate>
		<dc:creator>Bas</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://sparepencil.com/archives/2007/08/29/you-dont-have-permission-bug-revisited/</guid>
		<description><![CDATA[<p>A few months ago, I wrote <a href="http://sparepencil.com/archives/2007/06/03/wordpress-and-the-cookies/">an extensive article</a> about a problem that can occur in WordPress due to certain server configurations. This problem causes several issues in the Admininistration Panel, such as <strong>You don&#8217;t have permission to do</strong>&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>A few months ago, I wrote <a href="http://sparepencil.com/archives/2007/06/03/wordpress-and-the-cookies/">an extensive article</a> about a problem that can occur in WordPress due to certain server configurations. This problem causes several issues in the Admininistration Panel, such as <strong>You don&#8217;t have permission to do that</strong> and <strong>Are you sure you want to edit this page: &#8220;&#8221;?</strong>.</p>
<p>The solution I offered solves the problem in most cases, but it wasn&#8217;t really good. Main reason: I provided a patch for a <em>pluggable function</em>! Secondly, the solution was less secure than the original.</p>
<p>However, I have returned to this issue to come up with a better solution. Behold, <a href="http://sparepencil.com/code/ajax-referer-fix/">a plugin to fix the problem</a>! No need to modify any WordPress files, just upload the plugin and activate it.</p>
<p>I have also improved the fix: it is now just as secure as the original one. You should <a href="http://svn.wp-plugins.org/ajax-referer-fix/trunk/ajax-referer-fix.php">check out the code</a> if you want to know why.</p>
]]></content:encoded>
			<wfw:commentRss>http://sparepencil.com/archives/2007/08/29/you-dont-have-permission-bug-revisited/feed/</wfw:commentRss>
		<slash:comments>33</slash:comments>
		</item>
		<item>
		<title>Advanced Excerpt plugin for WordPress</title>
		<link>http://sparepencil.com/archives/2007/08/21/advanced-excerpt-plugin-for-wordpress/</link>
		<comments>http://sparepencil.com/archives/2007/08/21/advanced-excerpt-plugin-for-wordpress/#comments</comments>
		<pubDate>Mon, 20 Aug 2007 23:11:52 +0000</pubDate>
		<dc:creator>Bas</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://sparepencil.com/archives/2007/08/21/advanced-excerpt-plugin-for-wordpress/</guid>
		<description><![CDATA[<p>I promised to release some WordPress plugins I&#8217;ve been working on. Well, here is <a href="http://sparepencil.com/code/advanced-excerpt/">the first one</a>! <img src='http://sparepencil.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>It&#8217;s called &#8220;Advanced Excerpt&#8221; and basically it just improves the way excerpts are created. By default,&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>I promised to release some WordPress plugins I&#8217;ve been working on. Well, here is <a href="http://sparepencil.com/code/advanced-excerpt/">the first one</a>! <img src='http://sparepencil.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>It&#8217;s called &#8220;Advanced Excerpt&#8221; and basically it just improves the way excerpts are created. By default, if a post has no explicit excerpt, WordPress creates one by grabbing the post content, stripping all the tags, shortening it to a (hard-coded) length and adding an ellipsis (which is, by the way, also hard-coded). The result: a dull excerpt.</p>
<p>This plugin changes that. The most notable feature is that it keeps your HTML. Furthermore, it allows you to choose the length of the excerpt (using either words or characters) and which character(s) is/are used as an ellipsis. You can even choose which HTML tags are stripped and which are not! It is very useful if your WordPress theme uses excerpts at prominent places (like mine).</p>
<p>There is <a href="http://wordpress.org/extend/plugins/wp-smarter-excerpt/">another plugin</a> that attempts to improve excerpt creation, but I tried it and it just doesn&#8217;t work properly (in fact, it inspired me to write a better one). One major problem is that it breaks your HTML. My plugin solves this by counting only the words or characters that are not part of an HTML tag and by properly closing tags that are left open.</p>
<p>If you want to see it in action, just look at my <a href="http://sparepencil.com/">front page</a>, a category or try a search. Of course, you can also <a href="http://sparepencil.com/code/advanced-excerpt/">download it yourself</a>. <img src='http://sparepencil.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://sparepencil.com/archives/2007/08/21/advanced-excerpt-plugin-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>150</slash:comments>
		</item>
		<item>
		<title>Dummy content for Wordpress</title>
		<link>http://sparepencil.com/archives/2007/08/15/dummy-content-for-wordpress/</link>
		<comments>http://sparepencil.com/archives/2007/08/15/dummy-content-for-wordpress/#comments</comments>
		<pubDate>Wed, 15 Aug 2007 18:35:35 +0000</pubDate>
		<dc:creator>Bas</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://sparepencil.com/archives/2007/08/15/dummy-content-for-wordpress/</guid>
		<description><![CDATA[<p>Designing and coding a Wordpress theme is often a pretty straightforward task: You write one or multiple implementations of <a href="http://codex.wordpress.org/The_Loop">the Loop</a> in the corresponding <a href="http://codex.wordpress.org/Template_Hierarchy">template files</a>, add some CSS and images and you&#8217;re basically good to go. Obviously&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>Designing and coding a Wordpress theme is often a pretty straightforward task: You write one or multiple implementations of <a href="http://codex.wordpress.org/The_Loop">the Loop</a> in the corresponding <a href="http://codex.wordpress.org/Template_Hierarchy">template files</a>, add some CSS and images and you&#8217;re basically good to go. Obviously you&#8217;ll want to test before uploading the theme to your live blog. So you set up a local server and install Wordpress.</p>
<p>You&#8217;ll notice that there is a lot of tweaking to be done on the theme, but that&#8217;s why you are testing the theme in the first place. However, even after testing it on a local installation of Wordpress, you may discover a few flaws after launching the theme. Apparently, the testing wasn&#8217;t thorough enough.</p>
<p>Luckily, we can add dummy content to our (local) Wordpress installation with only a few clicks. You do need a useful data dump from another blog, though. I have found a dump of the dummy content used for the <a href="http://www.sndbx.org/">sndbx</a> theme contest, together with <a href="http://www.sndbx.org/forums/viewtopic.php?id=16">some instructions</a> on how to use it. The good thing about it is that it contains a wide variety of content. Not only a lot of common (and less common) HTML elements, but also different types of comments (pingbacks, trackbacks), content (pages, paged posts) and large images that can fubar your layout if you don&#8217;t deal with them.</p>
<p>I suppose that if your theme works with this on your local server, it will probably stand a good chance on the &#8216;Interweb.&#8217; Or can you name a better source for dummy content? <img src='http://sparepencil.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><em>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://sparepencil.com/archives/2007/08/15/dummy-content-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
