<?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>Johannes &#34;jfk&#34; Kuhlmann&#039;s Blog &#187; php</title>
	<atom:link href="http://johanneskuhlmann.de/blog/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://johanneskuhlmann.de/blog</link>
	<description></description>
	<lastBuildDate>Fri, 11 Jun 2010 10:27:17 +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>Wordpress And Mobile Phones</title>
		<link>http://johanneskuhlmann.de/blog/2008/06/02/wordpress-and-mobile-phones/</link>
		<comments>http://johanneskuhlmann.de/blog/2008/06/02/wordpress-and-mobile-phones/#comments</comments>
		<pubDate>Mon, 02 Jun 2008 09:00:11 +0000</pubDate>
		<dc:creator>jfk</dc:creator>
				<category><![CDATA[dev]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[phone]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://johanneskuhlmann.de/wordpress/?p=16</guid>
		<description><![CDATA[Using Wordpress with a mobile phone isn&#8217;t the easiest thing to do. There are a few plugins available, but all I&#8217;ve tried have their drawbacks. I&#8217;ve now installed the WordPress Mobile Plugin which is the only plugin I&#8217;ve found that allows me to upload images from my phone (for an example, see my post earlier [...]]]></description>
			<content:encoded><![CDATA[<p>Using Wordpress with a mobile phone isn&#8217;t the easiest thing to do. There are a few plugins available, but all I&#8217;ve tried have their drawbacks. I&#8217;ve now installed the <a href="http://wordpressmobile.mobi/">WordPress Mobile Plugin</a> which is the only plugin I&#8217;ve found that allows me to upload images from my phone (for an example, see my post earlier today).</p>
<p>But this plugin is far from perfect. Some drawbacks I&#8217;ve experienced while creating the first post:</p>
<ul>
<li>Image uploading didn&#8217;t work at first because the plugin tries to store the images in the wrong folder. In the plugin&#8217;s only file (wordpress-mobile.php) there is:

<div class="wp_codebox"><table><tr id="p163"><td class="line_numbers"><pre>152
</pre></td><td class="code" id="p16code3"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$dir_file_path</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'DOCUMENT_ROOT'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.</span><span style="color: #0000ff;">'/'</span><span style="color: #339933;">.</span>attribute_escape<span style="color: #009900;">&#40;</span><span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span>ABSPATH<span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> get_settings<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'upload_path'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span><span style="color: #0000ff;">'/'</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>which yields a path that is missing everything between your document root and the folder for uploaded files specified in the Wordpress settings. This is easily fixed by replacing the above line with this:</p>

<div class="wp_codebox"><table><tr id="p164"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p16code4"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$dir_file_path</span> <span style="color: #339933;">=</span> ABSPATH <span style="color: #339933;">.</span>get_settings<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'upload_path'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span><span style="color: #0000ff;">'/'</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

</li>
<li>The plugin allows you to choose tags as categories in which to put posts you&#8217;ve made using the mobile interface. But if you select a tag instead of a category the post will be added to a category whose name equals the tag&#8217;s ID.</li>
<li>The plugins shows ads in the blog&#8217;s mobile version. Not a lot, but that is not nice.</li>
</ul>
<p>By the way, there is a short overview of Wordpress mobile plugins <a href="http://www.sebamueller.net/2008/05/wordpress-blogs-fuer-mobile-geraete-anpassen/">over here</a>.</p>
<p>Well, otherwise it&#8217;s working well.</p>
]]></content:encoded>
			<wfw:commentRss>http://johanneskuhlmann.de/blog/2008/06/02/wordpress-and-mobile-phones/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
