<?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>Stoat - Where? &#187; WordPress</title>
	<atom:link href="http://jamietalbot.com/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://jamietalbot.com</link>
	<description>Adventures in Engrish</description>
	<lastBuildDate>Sat, 29 Oct 2011 05:14:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Do You Still Want Gengo?</title>
		<link>http://jamietalbot.com/2010/06/30/do-you-still-want-gengo/</link>
		<comments>http://jamietalbot.com/2010/06/30/do-you-still-want-gengo/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 13:57:15 +0000</pubDate>
		<dc:creator>Jamie Talbot</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Gengo]]></category>
		<category><![CDATA[i18n]]></category>
		<category><![CDATA[Plugin]]></category>

		<guid isPermaLink="false">http://jamietalbot.com/?p=82</guid>
		<description><![CDATA[Gengo is a multi-lingual plugin for WordPress that has fallen by the wayside.  Is there enough interest out there for me to restart development on it?]]></description>
			<content:encoded><![CDATA[<p>Gengo was (and remains) a project that I am very fond of.  Originally developed for my own personal use to blog in Japanese as well as English, it turned into a fairly full-featured plugin that was used by quite a few people.  Unfortunately, time pressures meant that I had to drop support for it a few years ago.  Even so, every few weeks I get an email or comment (usually nothing to do with the post it was written against!) asking me to consider restarting development.  </p>
<p>It might just be the alcohol talking, or end-of-financial-year madness, but with WordPress 3.0 recently out and a couple of requests already this week, I&#8217;m seriously considering starting development again.  I do have a couple of projects I want to do though, so I only want to dedicate time to Gengo if it&#8217;s going to be used.  My Japanese has sadly diminished to the point where I&#8217;m practically mono-lingual again, so I&#8217;m not going to be blogging in multiple languages any time soon, and it would purely be for others to use.  So, if enough people email me or comment in the next week or so, I&#8217;ll give it a crack.  Second time around, I&#8217;ll hopefully be able to design it more cleanly and more quickly, and WordPress&#8217; plugin architecture hopefully hasn&#8217;t changed too much while I&#8217;ve been away.</p>
<p>So if you want to see a new version of Gengo, please let me know.  On the other hand, I hear very good things about WPML, so If Gengo&#8217;s time has passed, feel free to say that too!  I won&#8217;t have hurt feelings, promise <img src='http://jamietalbot.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://jamietalbot.com/2010/06/30/do-you-still-want-gengo/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
		<item>
		<title>Fixing Mystique for Backtype Connect</title>
		<link>http://jamietalbot.com/2010/02/06/fixing-mystique-for-backtype-connect/</link>
		<comments>http://jamietalbot.com/2010/02/06/fixing-mystique-for-backtype-connect/#comments</comments>
		<pubDate>Sat, 06 Feb 2010 02:59:25 +0000</pubDate>
		<dc:creator>Jamie Talbot</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Backtype Connect]]></category>
		<category><![CDATA[Mystique]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Theme]]></category>

		<guid isPermaLink="false">http://jamietalbot.com/?p=48</guid>
		<description><![CDATA[Using the Mystique WordPress theme with the Backtype Connect plugin causes posts to stop rendering halfway through.  Luckily, the fix is relatively straightforward.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been playing around with WordPress themes and plugins and one that caught my eye was <a href="http://www.backtype.com/connect">Backtype Connect</a>, which aggregates discussions from around the web and places them as comments onto the original post.  Unfortunately it wasn&#8217;t playing nicely with the <a href="http://digitalnature.ro/projects/mystique/">Mystique</a> theme I&#8217;m currently using, with no comments showing and the sidebar not appearing on posts where there was a backtype comment.</p>
<p>It turned out to be a minor error in the Mystique theme, which deals with how CSS classes are assigned to the sections that display the comments.  Mystique has the following lines of code at the bottom of its  <code>mystique_comment_class function</code>:</p>
<pre class="brush: php; title: ; notranslate">
$class = join(&quot; &quot;, $classes);
echo apply_filters(&quot;comment_class&quot;, $class);
</pre>
<p>Mystique is trying to do the right thing here, by allowing plugins to manipulate the classes with the &#8216;comment_class&#8217; hook, just like WordPress&#8217; own function.  However, the code is turning the $classes array into a $class string and passing that to the plugins.  Backtype Connect (and presumably other plugins) expect those classes to be passed as an array leading to the following error:</p>
<pre class="brush: php; title: ; notranslate">
Fatal error: [] operator not supported for strings
</pre>
<p>However, because this error occurs within an HTML tag it isn&#8217;t rendered correctly, which means it is hard to spot.  Nevertheless, it causes PHP to stop executing immediately, leading to half-rendered pages.</p>
<p>Luckily, the fix is simple.  Simply join the array after the filter has been called and everything works well.  Future revisions of the theme will probably fix this, but in the meantime, you can use the WordPress plugin editor to replace the two lines above in <code>mystique/lib/core.php</code> with the following:</p>
<pre class="brush: php; title: ; notranslate">
$classes = apply_filters(&quot;comment_class&quot;, $classes);
echo implode(&quot; &quot;, $classes);
</pre>
<p>And they should live together in harmony.</p>
]]></content:encoded>
			<wfw:commentRss>http://jamietalbot.com/2010/02/06/fixing-mystique-for-backtype-connect/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

