<?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>CGarvey&#039;s Blog &#187; WordPress</title>
	<atom:link href="http://cgarvey.ie/blog/archive/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://cgarvey.ie/blog</link>
	<description>The personal blog of Irish mobile and web application developer, Cathal Garvey</description>
	<lastBuildDate>Wed, 28 Jul 2010 11:49:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Running dotMobi WordPress Mobile Pack on PHP 4</title>
		<link>http://cgarvey.ie/blog/archive/2009/11/02/running-dotmobi-wordpress-mobile-pack-on-php-4/</link>
		<comments>http://cgarvey.ie/blog/archive/2009/11/02/running-dotmobi-wordpress-mobile-pack-on-php-4/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 22:47:58 +0000</pubDate>
		<dc:creator>cgarvey</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://cgarvey.ie/blog/?p=331</guid>
		<description><![CDATA[If you, like me, are installing the dotMobi WordPress Mobile Pack on a server with PHP4 installed, and you enable the &#8220;Shrink images&#8221; feature under &#8220;Mobile Theme&#8221;, you will likely see just the header of a blog post being out put for mobile devices (and not the full content). This feature reduces the image size [...]]]></description>
			<content:encoded><![CDATA[<p>If you, like me, are installing the <a href="http://wordpress.org/extend/plugins/wordpress-mobile-pack/" title="Link to the dotMobi WordPress Mobile Pack plugin page">dotMobi WordPress Mobile Pack</a> on a server with PHP4 installed, and you enable the &#8220;Shrink images&#8221; feature under &#8220;Mobile Theme&#8221;, you will likely see just the header of a blog post being out put for mobile devices (and not the full content).<br />
<span id="more-331"></span><br />
This feature reduces the image size (of any images in your WordPress post/page) to make it more bandwidth and screen friendly for mobile users. The problem is that it uses a PHP5-only call of <code>file_put_contents(..)</code>, which fails without error, or logging, on my WordPress install.</p>
<p>To remedy the problem, I substituted the call, in 2 places, with the PHP4 equivalent calls. <code>file_put_contents(..)</code> is a shortcut convenience method which is the same as calling <code>fopen(..)</code>, <code>fwrite(..)</code> and <code>fclose(..)</code>.</p>
<p>As of version 1.1.3 of the plugin the code is under <code>wp-content/plugins/wordpress-mobile-pack/plugins/wpmp_transcoder/</code> in your WordPress install directory. The 2 occurrences are in the file <code>wpmp_transcoder.php</code> on lines 431 and 448 respectively.</p>
<p>I changed<br />
<code><br />
@file_put_contents($full_location, $data);<br />
</code><br />
.. to ..<br />
<code><br />
$fhout = @fopen($full_location, "w" );<br />
@fwrite($fhout, $data);<br />
@fclose( $fhout );<br />
</code></p>
<p>.. and ..</p>
<p><code><br />
@file_put_contents("$full_location.meta", "< ?php $"."width='$width';$"."height='$height';$"."type='$type'; ?>");<br />
</code><br />
.. to ..<br />
<code><br />
$fhmeta = @fopen( "$full_location.meta", "w" );<br />
@fwrite( $fhmeta, "< ?php $"."width='$width';$"."height='$height';$"."type='$type'; ?>");<br />
@fclose( $fhmeta );<br />
</code><br />
.. and all was well again.</p>
<p>You could also just not use the &#8220;Shrink images&#8221; feature to avoid having to mess with any code!</p>
]]></content:encoded>
			<wfw:commentRss>http://cgarvey.ie/blog/archive/2009/11/02/running-dotmobi-wordpress-mobile-pack-on-php-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixing RSS retrieval/display issues in WordPress</title>
		<link>http://cgarvey.ie/blog/archive/2009/01/21/fixing-rss-retrievaldisplay-issues-in-wordpress/</link>
		<comments>http://cgarvey.ie/blog/archive/2009/01/21/fixing-rss-retrievaldisplay-issues-in-wordpress/#comments</comments>
		<pubDate>Wed, 21 Jan 2009 13:00:21 +0000</pubDate>
		<dc:creator>cgarvey</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[rss]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://cgarvey.ie/blog/?p=266</guid>
		<description><![CDATA[WordPress v2.7 uses an older version of Magpie RSS (v0.51) which has some bugs that may prevent your RSS feed displaying in your WordPress blog/theme. I happen to use KB Advanced RSS Widget, on the IrelandOffline site, but I believe most RSS widgets/plugins for WordPress use. The issue in my case, was a a simple [...]]]></description>
			<content:encoded><![CDATA[<p>WordPress v2.7 uses an older version of Magpie RSS (v0.51) which has some bugs that may prevent your RSS feed displaying in your WordPress blog/theme.</p>
<p>I happen to use <a href="http://wordpress.org/extend/plugins/kb-advanced-rss-widget/faq/" title="Link to KB Advanced RSS Widget plugin page">KB Advanced RSS Widget</a>, on the <a href="http://irelandoffline.org/" title="Link to the IrelandOffline website">IrelandOffline</a> site, but I believe most RSS widgets/plugins for WordPress use.<br />
<span id="more-266"></span><br />
The issue in my case, was a a simple apostrophe, on a vBulletin forum, being converted to a fancy apostrophe (character \x92).</p>
<p>The most recent Magpie RSS version (v0.72 at time of writing) handles this OK. So to update your WordPress installation to use this most recent release of Magpie RSS, do the following:</p>
<ul>
<li>Download <a href="http://magpierss.sourceforge.net/" title="Link to Magpie RSS site">Magpie RSS</a> from <a href="http://sourceforge.net/project/showfiles.php?group_id=55691&#038;package_id=50728&#038;release_id=368750" title="Link to Magpie RSS download page">here</a>.</li>
<li>Extract the contents, and rename/copy <code>rss_fetch.inc</code> to <code>rss.php</code>.</li>
<li>Copy that new <code>rss.php</code> file, all the <code>*.inc</code> files, the <code>extlib</code> directory, and <code>scripts</code> directory to the directory <code>wp-includes</code> within your WordPress base install directory.</li>
<li>Make sure file and directory permissions are OK (usually 644 and 755, respectively). Also make sure you pass on the license information, for Magpie RSS, if required to do so!</li>
</ul>
<p>Bear in mind that this might affect future WordPress updates, or exploit checking (because you&#8217;ve modified the base <code>rss.php</code> installed).</p>
]]></content:encoded>
			<wfw:commentRss>http://cgarvey.ie/blog/archive/2009/01/21/fixing-rss-retrievaldisplay-issues-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joomla2WordPress &#8211; A Joomla importer for WordPress</title>
		<link>http://cgarvey.ie/blog/archive/2008/07/26/joomla2wordpress-a-joomla-importer-for-wordpress/</link>
		<comments>http://cgarvey.ie/blog/archive/2008/07/26/joomla2wordpress-a-joomla-importer-for-wordpress/#comments</comments>
		<pubDate>Sat, 26 Jul 2008 23:05:08 +0000</pubDate>
		<dc:creator>cgarvey</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[convert]]></category>
		<category><![CDATA[converter]]></category>
		<category><![CDATA[import]]></category>
		<category><![CDATA[importer]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[Joomla2WordPress]]></category>
		<category><![CDATA[Mambo2WordPress]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://cgarvey.ie/blog/?p=143</guid>
		<description><![CDATA[After plenty of Googling, I could find no easy way of importing content (news articles and links) from a Joomla install in to a new WordPress install. The closest I came across was Mambo2WordPress (direct download), but the original author&#8217;s page has been removed, so I could no longer tell if it was being maintained. [...]]]></description>
			<content:encoded><![CDATA[<p>After plenty of Googling, I could find no easy way of importing content (news articles and links) from a Joomla install in to a new WordPress install. The closest I came across was<br />
<a title="Download Mambo2WordPress" href="http://www.blevins.nl/missiontech/wp_plugins/mambo2wp_export_wizard.zip">Mambo2WordPress</a> (direct download), but the <a href="http://www.blevins.nl/">original author&#8217;s</a> page has been removed, so I could no longer tell if it was being maintained.<br />
<span id="more-143"></span><br />
It was late, I needed it done, Google was failing me, so I took that chap&#8217;s script and modified it to work with recent Joomla &amp; WordPress installs and then added some!</p>
<p>No support is provided, and you&#8217;re free to do with this script as you wish (be nice and leave the notice/credits intact).</p>
<h2>Download</h2>
<p>Download: <a href="http://cgarvey.ie/blog/wp-content/uploads/2008/07/joomla2wordpress-v10.zip">Joomla2WordPress v1.0</a> zip file (~6KB).</p>
<h2>Installation</h2>
<p>From the enclosed readme.txt:</p>
<blockquote><p><code>Installation<br />
============<br />
+ Unzip the downloaded zip file in your WordPress install<br />
directory, and this will create a new joomla2wordpress directory.<br />
+ In that new directory, edit config.php and supply the details<br />
for the Joomla and WordPress databases.<br />
+ Visit that new folder in your browser, and follow the instructions.<br />
I.e. If your blog URL is http://www.myblog.com/wordpress/, then visit<br />
http://www.myblog.com/wordpress/joomla2wordpress/ and follow instructions.</code></p></blockquote>
<h2>Screenshots</h2>

<a href='http://cgarvey.ie/blog/archive/2008/07/26/joomla2wordpress-a-joomla-importer-for-wordpress/j2wp-intro/' title='Joomla2WordPress Screenshot - Introduction'><img width="150" height="150" src="http://cgarvey.ie/blog/wp-content/uploads/2008/07/j2wp-intro-150x150.png" class="attachment-thumbnail" alt="Introduction" title="Joomla2WordPress Screenshot - Introduction" /></a>
<a href='http://cgarvey.ie/blog/archive/2008/07/26/joomla2wordpress-a-joomla-importer-for-wordpress/j2wp-step-1/' title='Joomla2WordPress Screenshot - Step 1'><img width="150" height="150" src="http://cgarvey.ie/blog/wp-content/uploads/2008/07/j2wp-step-1-150x150.png" class="attachment-thumbnail" alt="Step 1" title="Joomla2WordPress Screenshot - Step 1" /></a>
<a href='http://cgarvey.ie/blog/archive/2008/07/26/joomla2wordpress-a-joomla-importer-for-wordpress/j2wp-step-2/' title='Joomla2WordPress Screenshot - Step 2'><img width="150" height="150" src="http://cgarvey.ie/blog/wp-content/uploads/2008/07/j2wp-step-2-150x150.png" class="attachment-thumbnail" alt="Step 2" title="Joomla2WordPress Screenshot - Step 2" /></a>

<p>Leave a comment below if you need help. Be warned, though, it&#8217;ll be slow coming and might not come at all!</p>
]]></content:encoded>
			<wfw:commentRss>http://cgarvey.ie/blog/archive/2008/07/26/joomla2wordpress-a-joomla-importer-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>
