<?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>Interconnect IT - WordPress Consultants, Web Development and Web Design &#187; plugins</title>
	<atom:link href="http://interconnectit.com/tag/plugins/feed/" rel="self" type="application/rss+xml" />
	<link>http://interconnectit.com</link>
	<description></description>
	<lastBuildDate>Mon, 21 May 2012 15:32:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Spots for WordPress Developer Notes</title>
		<link>http://interconnectit.com/2906/spots-for-wordpress-developer-notes/</link>
		<comments>http://interconnectit.com/2906/spots-for-wordpress-developer-notes/#comments</comments>
		<pubDate>Fri, 07 Oct 2011 09:26:10 +0000</pubDate>
		<dc:creator>Tom J Nowell</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[Documentation]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[Spots]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://interconnectit.com/?p=2906</guid>
		<description><![CDATA[Our Spots for WordPress plugin is designed to make your content management life with WP even easier. Although there are developer notes on the WordPress.org repository, we&#8217;ve decided to maintain a page here where we can possibly show a broader range of information in the future, depending on the take-up of the plugin. Template tags Spots provides 2 template tags&#8230; <a class="more" href="http://interconnectit.com/2906/spots-for-wordpress-developer-notes/">continue reading <span class="unicode">&#8674;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Our <a title="Spots for WordPress" href="http://wordpress.org/extend/plugins/spots/other_notes/">Spots for WordPress plugin</a> is designed to make your content management life with WP even easier.</p>
<p>Although there are developer notes on the WordPress.org repository, we&#8217;ve decided to maintain a page here where we can possibly show a broader range of information in the future, depending on the take-up of the plugin.</p>
<h2>Template tags</h2>
<p>Spots provides 2 template tags for developers named <code>icit_spot</code> and <code>icit_get_spot</code>.</p>
<h3>icit_spot</h3>
<p>This template tag echos out a spot:</p>
<pre><code>icit_spot( $id_or_name, $template );</code></pre>
<p>It takes the following parameters:</p>
<ul>
<li><code>$id_or_name</code>: Required. A numeric ID or the name of a spot as a string.</li>
<li><code>$template</code>: Optional. A string used in a call to <code><a href="http://codex.wordpress.org/Function_Reference/get_template_part" target="_blank">get_template_part</a>()</code></li>
</ul>
<h3>icit_get_spot</h3>
<p>This template tag performs the same function, but it allows the developer to specify wether to echo the result, or return it as a variable:</p>
<pre><code>icit_get_spot( $id_or_name, $template, $echo );</code></pre>
<p>It takes the following extra parameter:</p>
<ul>
<li><code>$echo</code>: Optional. Defaults to false. A boolean to indicate whether to echo the spot content or just return it.</li>
</ul>
<h2>Basic Usage</h2>
<p>You can use spots to replace boilerplate text in your themes. If you have areas in your themes where typically you would hard code the text you could use the following code:</p>
<pre><code>if ( <a href="http://php.net/manual/en/function.function-exists.php" target="_blank">function_exists</a>( 'icit_spot' ) )
    icit_spot( 'Copyright' );</code></pre>
<p>The above code would output the contents of a spot titled &#8216;Copyright&#8217;. If the spot does not exist it will be created as a draft. Spots in draft mode are only visible to logged in users with editing capabilities.</p>
<h2>Templates</h2>
<p>The plugin will initially look for a file in your theme using the <code><a href="http://codex.wordpress.org/Function_Reference/get_template_part" target="_blank">get_template_part</a>()</code> function. If you have a file called <code>spot.php</code> in your theme that will be the default template for all spots. The <code>icit_spot()</code> function can take a second parameter for the template part to use for example:</p>
<pre><code>if ( <a href="http://php.net/manual/en/function.function-exists.php" target="_blank">function_exists</a>( 'icit_spot' ) )
    icit_spot( 'Copyright', 'copyright' );</code></pre>
<p>The above code will make the plugin look in your theme folder for a file called <code>spot-copyright.php</code> to use for the output. If not available it will fall back to <code>spot.php</code> and if that is not available it will simply output the spot contents.</p>
<p>Use templates when you want to display a featured image from a spot or if you require some additional/alternative markup for the spot. Spots are just like posts, so in the templates you retrieve the contents of the spot using <code><a href="http://codex.wordpress.org/Function_Reference/the_content" target="_blank">the_content</a>()</code> just as would in the loop.</p>
<h3>Basic spot template example:</h3>
<pre><code>&lt;div class="spot"&gt;
    &lt;?php <a href="http://codex.wordpress.org/Function_Reference/the_content" target="_blank">the_content</a>(); ?&gt;
&lt;/div&gt; </code></pre>
<h3>Spot template with featured image:</h3>
<pre><code>&lt;div class="spot-with-image"&gt;
    &lt;?php
    if ( <a href="http://codex.wordpress.org/Function_Reference/has_post_thumbnail" target="_blank">has_post_thumbnail</a>() )
        <a href="http://codex.wordpress.org/Function_Reference/the_post_thumbnail" target="_blank">the_post_thumbnail</a>( 'medium' );
    <a href="http://codex.wordpress.org/Function_Reference/the_content" target="_blank">the_content</a>(); ?&gt;
&lt;/div&gt; </code></pre>
<h2>Additional</h2>
<p>There are many filters and hooks available to get even more out of spots, so drop by the plugin homepage or use the forums if there is something you need to do with spots but aren&#8217;t sure how.</p>
]]></content:encoded>
			<wfw:commentRss>http://interconnectit.com/2906/spots-for-wordpress-developer-notes/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Announcing Spots</title>
		<link>http://interconnectit.com/2364/announcing-spots/</link>
		<comments>http://interconnectit.com/2364/announcing-spots/#comments</comments>
		<pubDate>Thu, 25 Aug 2011 15:02:04 +0000</pubDate>
		<dc:creator>David Coveney</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[plugins]]></category>

		<guid isPermaLink="false">http://interconnectit.com/?p=2364</guid>
		<description><![CDATA[Imagine that you&#8217;re building a theme, and in various places in that theme you have small elements that you&#8217;d just love to content manage.  It could be items in a footer, in the header, or for use as widgets.  Things like a copyright notice, a credit line, some free form spaces and so on. In the past, coding for this&#8230; <a class="more" href="http://interconnectit.com/2364/announcing-spots/">continue reading <span class="unicode">&#8674;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Imagine that you&#8217;re building a theme, and in various places in that theme you have small elements that you&#8217;d just love to content manage.  It could be items in a footer, in the header, or for use as widgets.  Things like a copyright notice, a credit line, some free form spaces and so on.</p>
<p>In the past, coding for this was a pain &#8211; you either needed to add an options page on your theme leaving your users with an HTML content area or deal with the weight of adding WYSIWYG support, or you&#8217;d just hard code these elements.</p>
<p>interconnect/<strong>it</strong> Spots solves this.  By adding a new content type to WordPress and using the familiar WP interface, you can now quickly and easily make these Spots into content managed elements.</p>
<p>A simple template call is all you need to instantiate a Spot:</p>
<pre>if ( function_exists('icit_spot') ) {
 icit_spot('Copyright');
 }</pre>
<p>This will then create a Spot which the user can edit using the familiar WP WYSIWYG tools.  If another theme comes along that requires the same Spot, then the content is already there and ready.</p>
<p>This is all built as part of the interconnect/<strong>it</strong> principle of <a href="http://www.slideshare.net/interconnectit/how-to-content-manage-everything">&#8220;Content Manage Everything.&#8221;</a> We hate hardcoding, and we&#8217;re sure most of you do.  But sometimes it happens because there&#8217;s only so much time available in a project.  With interconnect/<strong>it</strong> Spots you&#8217;ll be able to handle these items quickly and elegantly.</p>
<h3>It&#8217;s Not a Developer Tool Only!</h3>
<p>Spots also comes with its own widget, allowing you to assign your spots to any widget space available.  The widget even has its own WYSIWYG editor, allowing you to quickly tweak your Spots widgets without leaving the widget admin page.</p>
<div id="attachment_2366" class="wp-caption alignright" style="width:320px;"><a href="http://www.interconnectit.com/wp-content/uploads/2011/08/widget-spot.jpg"><img class="size-medium wp-image-2366" title="widget-spot" src="http://www.interconnectit.com/wp-content/uploads/2011/08/widget-spot-320x239.jpg" alt="" width="320" height="239" /></a><p class="wp-caption-text">Let&#39;s do this!</p></div>
<h3>OK, Sounds Great, Now Give Me Some Examples!</h3>
<p>So, let&#8217;s say you&#8217;re using the 2011 theme and you want to add a Copyright notice to your sidebar.  Easy-peasy.  Simple install Spots, activate it, then go to Appearances | Widgets.</p>
<p>From there you will drag the Spot widget into your sidebar space.</p>
<p>Now, if you&#8217;ve already created your Spot you can simply select the spot you want and away you&#8217;re done. But if you <em>haven&#8217;t</em> already created your Spot the widget will offer to let you go and create a new Spot.</p>
<div id="attachment_2367" class="wp-caption alignright" style="width:320px;"><a href="http://www.interconnectit.com/wp-content/uploads/2011/08/the-spot-widget.jpg"><img class="size-medium wp-image-2367" title="the-spot-widget" src="http://www.interconnectit.com/wp-content/uploads/2011/08/the-spot-widget-320x188.jpg" alt="" width="320" height="188" /></a><p class="wp-caption-text">The Spots Widget</p></div>
<p>Here you&#8217;ll find yourself at a familiar WP editor.  Simply give it a sensible title and then put in what you like.  You want an image there?  Go for it.  You want special symbols?  The editor will help you.  Here we&#8217;ll call the spot Copyright, and we&#8217;ll input the content saying &#8220;This site is copyright 2011.&#8221;  Then hit Publish, just as you would for a post.</p>
<p>Once you&#8217;ve saved your spot, return to the widget administration page, go to the widget and from the dropdown select the spot you&#8217;ve just created.</p>
<div id="attachment_2370" class="wp-caption alignright" style="width:320px;"><a href="http://www.interconnectit.com/wp-content/uploads/2011/08/the-spot-widget2.jpg"><img class="size-medium wp-image-2370" title="the-spot-widget2" src="http://www.interconnectit.com/wp-content/uploads/2011/08/the-spot-widget2-320x351.jpg" alt="" width="320" height="351" /></a><p class="wp-caption-text">The full Spot widget showing the editor.</p></div>
<p>Hit Save.  And once you do, you&#8217;ll notice something else.  The widget now features a WYSIWYG editor.  This means that you can quickly and easily edit your spot right there, without breaking your widget admin workflow.</p>
<p>If you now visit your site, you&#8217;ll see that the Copyright notice is where you&#8217;ve placed it.</p>
<h3>Why Not Just Use the Text Widget?</h3>
<p>A good question!  The text widget is great.  Simple, quick, and easy to use.  But it&#8217;s HTML only.  And that means that a user who has access to administer widgets can, by virtue of a bit of bad HTML code render the site completely broken.  They can do this using the editor, of course, but it&#8217;s *much* harder to do so.</p>
<p>The editor also means you can easily insert media.</p>
<div id="attachment_2372" class="wp-caption alignright" style="width:320px;"><a href="http://www.interconnectit.com/wp-content/uploads/2011/08/widget-with-image.jpg"><img class="size-medium wp-image-2372" title="widget-with-image" src="http://www.interconnectit.com/wp-content/uploads/2011/08/widget-with-image-320x235.jpg" alt="" width="320" height="235" /></a><p class="wp-caption-text">A Spot widget, with an image in it.</p></div>
<p>Let&#8217;s take an example using the above.  Imagine we&#8217;re using the default WP 2011 theme, and the user decides to put a big image in his post.  What happens?  Well, it&#8217;s not a problem &#8211; most well-written themes (and we accept that many aren&#8217;t) will sort this out.  But what&#8217;s nice is that if you&#8217;re using a suitable shadowbox plugin the full size image, if it&#8217;s linked to, will pop up.  Try it for yourselves.</p>
<h3>I&#8217;m Happy In Code &#8211; What Can I Do?</h3>
<p>Ah, well, it gets better for you.</p>
<p>Let&#8217;s take the 2011 theme again.  Say you wish to place an Awesomeness element in the footer instead of the line saying &#8220;Proudly Powered by WordPress.&#8221;  This is so easy, it&#8217;s daft.</p>
<p>First, you need to get the footer.php file for the theme.</p>
<p>Then, find the div: &lt;div id=&#8221;site-generator&#8221;&gt; and remove everything that goes in-between that and the closing &lt;/div&gt;</p>
<p>Replace the code with the following:</p>
<pre>&lt;?php if ( function_exists('icit_spot') ) {
 icit_spot('Awesomeness');
 } ?&gt;</pre>
<p>What&#8217;s nice is that if you visit a page on the site and the Spot called &#8216;Awesomeness&#8217; hasn&#8217;t been created, the plugin will create a blank Draft version of the Spot ready for completion.</p>
<p>All the user then needs to do is to go in and edit that Spot and hey presto, the footer now looks like this:</p>
<div id="attachment_2373" class="wp-caption aligncenter" style="width:680px;"><a href="http://www.interconnectit.com/wp-content/uploads/2011/08/very-proudly-powered-by-WP.jpg"><img class="size-large wp-image-2373 " title="very-proudly-powered-by-WP" src="http://www.interconnectit.com/wp-content/uploads/2011/08/very-proudly-powered-by-WP-680x153.jpg" alt="" width="680" height="153" /></a><p class="wp-caption-text">See that? VERY.</p></div>
<h3>So Can I Try It?</h3>
<p>Sure!  We released the production version of Spots at the beginning of October 2011 and it is now available directly from the WordPress back-end or for download from the WordPress Extend repository.</p>
<p><a class="call-to-action" href="http://wordpress.org/extend/plugins/spots/">Get WordPress Spots from the WordPress.org Repository</a></p>
]]></content:encoded>
			<wfw:commentRss>http://interconnectit.com/2364/announcing-spots/feed/</wfw:commentRss>
		<slash:comments>46</slash:comments>
		</item>
		<item>
		<title>WordPress (and others) Search and Replace Tool</title>
		<link>http://interconnectit.com/124/search-and-replace-for-wordpress-databases/</link>
		<comments>http://interconnectit.com/124/search-and-replace-for-wordpress-databases/#comments</comments>
		<pubDate>Wed, 18 May 2011 10:51:26 +0000</pubDate>
		<dc:creator>David Coveney</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[migrations]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[serialized php]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://spectacu.la/?p=124</guid>
		<description><![CDATA[WordPress has a habit of storing serialized PHP data in the database. This is fine if you're working in PHP, but when you migrate a website from one domain to another it's very easy to affect strings and corrupt this data.  This search &#038; replace tool can help you to make changes without inadvertently affecting settings such as widgets which could leave you with a very broken and time consuming migration.]]></description>
			<content:encoded><![CDATA[<div id="attachment_2387" class="wp-caption alignright" style="width:320px;"><strong><a href="http://www.interconnectit.com/wp-content/uploads/2011/05/searchreplacev2.jpg"><img class="size-medium wp-image-2387" title="searchreplacev2" src="http://www.interconnectit.com/wp-content/uploads/2011/05/searchreplacev2-320x449.jpg" alt="" width="320" height="449" /></a></strong><p class="wp-caption-text">Version two brought a smarter UI and better workflow</p></div>
<p>When you&#8217;re migrating <a title="WordPress" href="http://wordpress.org">WordPress</a> (or any other platform using serialized PHP strings in the database) between domains, you must use a safe search and replace method that preserves the integrity of the serialized string lengths. A simple of a dump file for http://localhost to, for example, http://thenewdomain.com is problematic because the length of the string changes but the indexes for the serialized strings does not. Consequently settings are lost and widgets disappear. Not good.</p>
<p>This script can now also handle multiply nested serializations, which can happen in transient values in WP at times, and it can also handle multi-byte Unicode changes safely. This is important now that <a title="Internationalised domain name" href="http://en.wikipedia.org/wiki/Internationalized_domain_name">internationalised domain names</a> are allowed.</p>
<h3>It&#8217;s Not Only for WordPress</h3>
<p>It&#8217;s worth mentioning that the code will work for any platform that stores PHP serialized arrays in a MySQL database. You can easily use this script on Drupal, Joomla and many other systems where you need to change items across a database without messing up your stored arrays.</p>
<p><a class="call-to-action" href="http://www.interconnectit.com/wp-content/uploads/2011/05/searchreplacedb21.zip">Download Search Replace DB v 2.1.0</a></p>
<h3>Installation &amp; Use</h3>
<p>To use the script, you should install it in the root folder of your WordPress  install (if you wish it to automatically pick up your wp-config) or anywhere else you fancy, but you won&#8217;t get the automatic config.  You should also, to protect yourself from automated scanners looking for this script, rename it first.  eg, you could name it as rrrrreplace.php &#8211; you&#8217;d then visit a url like http://example.com/rrrrreplace.php and follow the on-screen instructions from there.</p>
<p>What you absolutely, 100% certainly MUST do is to delete the script once you&#8217;ve finished.  If somebody chances on it they can do anything to your database &#8211; and that wouldn&#8217;t be nice, would it?</p>
<p>If you&#8217;re using the script with systems such as Drupal or Joomla, everything should work, but we haven&#8217;t added any code to pick up on your config.  You may also have issues with Drupal blobs, in which case you should head on over to GIT (see link below) to grab the development copy which has handling for this included &#8211; feedback would be helpful, thank you.</p>
<h3>Contribute!</h3>
<p>A lot of developers now use this plugin. If you feel you can add something, there is now an official Github repository for this script at <a title="PHP Safe DB Search-Replace" href="https://github.com/interconnectit/Search-Replace-DB">https://github.com/interconnectit/Search-Replace-DB</a></p>
<h3>Version 2.1.0 (released Dec 2011) Improvements</h3>
<p>The latest version 2.1.0 introduced a number of key improvements:</p>
<ol>
<li>Added charset support, helping in all sorts of places (thanks Sergey Biryukov!)</li>
<li>Added option to skip guid column for migrating already live sites</li>
<li>Removed use of deprecated functions.</li>
<li>Other bug &amp; comment fixes</li>
</ol>
<h3>Changes being prepared for Version 2.2.0</h3>
<ol>
<li>Support for BLOBS/Objects to give Drupal compatibility</li>
<li>Minor tweaks and corrections</li>
</ol>
<p><a class="call-to-action" href="https://github.com/interconnectit/Search-Replace-DB">github Repo &#8211; DRUPAL devs please test master branch!</a></p>
<p>To see how you can use this tool to aid migrations, check out our <a href="http://www.interconnectit.com/719/migrating-a-wordpresswpmubuddypress-website/">article on WordPress migrations</a> or visit the <a href="http://wp.tutsplus.com/tutorials/hosting/migrating-wordpress-across-hosts-servers-and-urls/">WP Tuts+ article that mentions this script</a>.</p>
<p class="taxonomy">If you are in any doubt whatsoever about how to use this standalone script, then please consider getting an expert in.  It&#8217;s a really powerful bit of code that if used badly can damage a WP install beyond repair.  If you want help, get in somebody like us, for example, or any of the other great guys listed over at <a href="http://codepoet.com/">CodePoet.</a></p>
<p><strong>IMPORTANT</strong>: This code is supplied with no warranty or support implied. You use it entirely at your own risk. Currently it is supplied under the WTFPL but this will change to the GPL eventually. And when you&#8217;ve finished using the script, PLEASE delete it as it can pose a serious security risk to your site.</p>
<p><a class="call-to-action" href="http://www.interconnectit.com/wp-content/uploads/2011/05/searchreplacedb21.zip">Download Search Replace DB v 2.1.0</a></p>
<h3>Changelog:</h3>
<p>// Version 2.1.0:<br />
// &#8211; Changed to version 2.1.0<br />
// * Following change by Sergey Biryukov &#8211; merged in and tested by Dave Coveney<br />
// &#8211; Added Charset Support (tested with UTF-8, not tested on other charsets)<br />
// * Following changes implemented by James Whitehead with thanks to all the commenters and feedback given!<br />
// &#8211; Removed PHP warnings if you go to step 3+ without DB details.<br />
// &#8211; Added options to skip changing the guid column. If there are other<br />
// columns that need excluding you can add them to the $exclude_cols global<br />
// array. May choose to add another option to the table select page to let<br />
// you add to this array from the front end.<br />
// &#8211; Minor tweak to label styling.<br />
// &#8211; Added comments to each of the functions.<br />
// &#8211; Removed a dead param from icit_srdb_replacer</p>
<p>// Version 2.0.0 &#8211; returned to using unserialize function to check if string is serialized or not<br />
// &#8211; marked is_serialized_string function as deprecated<br />
// &#8211; changed form order to improve usability and make use on multisites a bit less scary<br />
// &#8211; changed to version 2, as really should have done when the UI was introduced<br />
// &#8211; added a recursive array walker to deal with serialized strings being stored in serialized strings. Yes, really.<br />
// &#8211; changes by James R Whitehead (kudos for recursive walker) and David Coveney 2011-08-26</p>
<p>// Version 1.0.2 &#8211; typos corrected, button text tweak &#8211; <a href="http://interconnectit.com/author/david-coveney">David Coveney</a> / <a href="http://interconnectit.com/author/rob">Robert O&#8217;Rourke</a><br />
// Version 1.0.1 &#8211; styling and form added by <a href="http://interconnectit.com/author/james-whitehead">James R Whitehead</a><br />
// Version 1.0.0 &#8211; original version by <a href="http://interconnectit.com/author/david-coveney">David Coveney</a></p>
<h3>To Be Done</h3>
<p><del>Ensure UTF8 encoding is enforced (see comments).</del> Added in v2.1.0<br />
Self deletion or security system to prevent accidental security risks.<br />
Release CLI version for use on non-WP sites, or for other purposes (already supports use on any MySQL DB.)<br />
Change to GPL V3.<br />
<del>Eliminate warnings and remove deprecated function calls.</del> Added in v2.1.0<br />
Add facility to subscribe to interconnect/it Newsletter.</p>
<p><a class="call-to-action" href="http://www.interconnectit.com/wp-content/uploads/2011/05/searchreplacedb21.zip">Download Search Replace DB v 2.1.0</a></p>
<h3>Donations</h3>
<p>We&#8217;ve been asked a lot in the comments box below about accepting donations. But you can&#8217;t believe what a headache that is from an accounting and tax perspective.</p>
<p>Consequently all we can say is that if you wish to you can buy a personal gift for the key developers from one of the wishlists below &#8211; especially given that it&#8217;s a spare time project. If others who have contributed wish to provide us their wishlist links then we&#8217;d be more than happy to add them.</p>
<p><a title="David Coveney's Amazon Wishlist" href="http://www.amazon.co.uk/registry/wishlist/1I2TQ9F0U0MG0">David Coveney is the project lead.</a><br />
<a title="James Whitehead's Wishlist" href="http://www.amazon.co.uk/registry/wishlist/1CWUCTVKCZSFP">James Whitehead added the nice UI.</a><br />
<a title="Robert O'Rourke's Wishlist" href="http://www.amazon.co.uk/registry/wishlist/1EWBGC8Z5LCYF">Robert O’Rourke gave us the branding and has made tweaks.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://interconnectit.com/124/search-and-replace-for-wordpress-databases/feed/</wfw:commentRss>
		<slash:comments>266</slash:comments>
		</item>
		<item>
		<title>WordPress and the iPhone</title>
		<link>http://interconnectit.com/45/wordpress-and-the-iphone/</link>
		<comments>http://interconnectit.com/45/wordpress-and-the-iphone/#comments</comments>
		<pubDate>Thu, 27 Dec 2007 17:00:40 +0000</pubDate>
		<dc:creator>David Coveney</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://liverpoolwebdesigner.com/2007/12/27/wordpress-and-the-iphone/</guid>
		<description><![CDATA[Two hot topics, in one post. WordPress is the hot blogging tool right now, and the iPhone is one of the hot mobile phones too. So it&#8217;s a shame that they don&#8217;t work that well together. In this article I go through the following: Posting to WordPress.com from the iPhone Posting to a self hosted version of WordPress using the&#8230; <a class="more" href="http://interconnectit.com/45/wordpress-and-the-iphone/">continue reading <span class="unicode">&#8674;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Two hot topics, in one post.  WordPress is the hot blogging tool right now, and the iPhone is one of the hot mobile phones too.</p>
<p>So it&#8217;s a shame that they don&#8217;t work that well together.  In this article I go through the following:</p>
<ul>
<li>Posting to WordPress.com from the iPhone</li>
<li>Posting to a self hosted version of WordPress using the Mobile Admin plugin</li>
<li>Posting to WordPress from the iPhone <strong>and</strong> including images with the post</li>
</ul>
<p>The latter is a particularly vexing problem, and one to which I can&#8217;t solve for WordPress.com.  However, it&#8217;s relatively easy for self-hosting, or profesionally managed WordPress site owners to get images into their website, from their iPhone.  Or for that matter, many other platforms.  But this post in particular is all about getting on with WordPress when using an iPhone.  Mainly because my shockingly generous girlfriend got me one for Xmas, I&#8217;m poorly, and I don&#8217;t feel like doing any &#8216;proper&#8217; work today.</p>
<p>So let&#8217;s begin&#8230;<span id="more-45"></span></p>
<h2>WordPress.com and the iPhone</h2>
<p>WordPress and WordPress.com both use, by default, the TinyMCE editor.  And it&#8217;s not a bad little editor either.  A little buggy at times, but it&#8217;s feature rich and simple to use.  What it won&#8217;t do, at least as supplied by WordPress, is work with the iPhone.  You&#8217;ll have to tap on the Code tab above the editor and just enter plain text.  You can then publish just fine.</p>
<p>If you&#8217;re only blogging from your phone you can turn off the visual rich editor in the WordPress Users | Your Profile tab in order to make this a simple one touch job.  It may also save you the occassional Safari crashes that I experienced with the MCE editor running, even though I didn&#8217;t use it.</p>
<p>But&#8230; you probably aren&#8217;t limiting yourself to phone only blogging, and you probably like the editor.  It lets you do nice things.  But there&#8217;s also another problem&#8230; go down to the Upload part and you&#8217;ll notice that you can tap as much as you like on a &#8220;Choose File&#8221; button, but nothing will happen.  So you can&#8217;t add images from your iPhone to your WordPress blog.</p>
<h2>WordPress, the iPhone, and the Mobile Admin Plugin</h2>
<p>If you&#8217;re a regular mobile blogger and you have your own, self-hosted or managed WordPress installation, then you have the option of plugins.  And one of the handiest for WordPress is the <a title="WordPress Mobile Admin Plugin" href="http://wordpress.org/extend/plugins/mobileadmin/">Mobile Admin Plugin</a>.  You&#8217;ll need to follow the usual plugin steps &#8211; checking for compatibility, installation, and activation.  But once you&#8217;ve followed the instructions it really does make using the iPhone (and for that matter, many other phones) on WordPress sites a cinch.</p>
<p>What&#8217;s great is that if you access the site admin using a normal PC, you still get the normal control panel.</p>
<p>Below are a couple of screenshots showing it in action:</p>
<p><img src="http://s.wordpress.org/extend/plugins/mobileadmin/screenshot-1.jpg" alt="WordPress Mobile Admin Screenshot 1" width="320" height="480" /></p>
<p><img src="http://s.wordpress.org/extend/plugins/mobileadmin/screenshot-5.jpg" alt="WordPress Mobile Admin Screenshot 2" width="480" height="320" /></p>
<p>Lovely isn&#8217;t it?  And if you&#8217;re wondering why I&#8217;m not posting any of my own screenshots, it&#8217;s because I&#8217;ve not hacked my own iPhone in order to get the SSH access I&#8217;d need to take screenshots.</p>
<p>There&#8217;s only one downside, and I feel it&#8217;s a big one, to the whole Mobile Admin experience.  It&#8217;s important to me as I&#8217;m a visual type and I like illustrations wherever possible &#8211; especially if I&#8217;m travelling and feel like showing some shots of where I&#8217;ve been.  I&#8217;m also particularly keen to make it work as I had photoblogging to my WordPress site (<a title="Dave Coveney" href="http://www.davesgonemental.com">Dave&#8217;s Geeky Play Area Blog</a>)  working just fine from a Nokia N95.  Ok, that took some hacking too, but I&#8217;ve had photos&#8230; I want to continue with photos!</p>
<h2>Posting Images to a WordPress Blog With Your iPhone</h2>
<p>If you host your WordPress site yourself, you can do a lot&#8230; and get images from your iPhone directly to your site!</p>
<p>Now, the iPhone won&#8217;t tolerate MCE yet, and it won&#8217;t use the upload wizard in standard WordPress.  So what&#8217;s to do?  ftp tools don&#8217;t exist yet, so you can simply ftp your shots onto your site&#8230; which suggests that you&#8217;re stuck.</p>
<p>Well fear not.  I&#8217;ve been casting around all afternoon and found the following works best.  Basically, with WordPress you can set it up so that you can post to it by e-mail.  This does require setting up either a cron job (something many hosting providers won&#8217;t do or allow) or it means hacking around so that the job fires off every now and then.  Thing is, the standard WordPress wp-mail.php program doesn&#8217;t actually work all that well with images.  In fact, it doesn&#8217;t work at all with anything other than text.  So you&#8217;ll need something a little more&#8230;heavyweight.</p>
<p>But with WordPress there&#8217;s always a way.  The plugin you need is called <a title="Plugin to allow sophisticated e-mail posting to WordPress" href="http://www.economysizegeek.com/?page_id=395">Postie</a>, and this is what you have to do:</p>
<ol>
<li><a title="Postie WordPress Plugin" href="http://www.economysizegeek.com/?page_id=395">Install the Postie plugin</a></li>
<li>Read the instructions!  Maybe do that before installing it?</li>
<li>Go to the Postie config page as instructed (it&#8217;ll show the readme first &#8211; just refresh), and set your image resize to something appropriate to your theme</li>
<li>Set up an e-mail account on your host that&#8217;s especially set up for receiving posts to your blog.  Keep it a secret and make the password tricky too.  Configure this information in Postie, bearing in mind the default port for e-mail is 110 (not defaulted into the form by the Postie plugin).</li>
<li>And then the easiest way to get an image to your site is from the iPhone image gallery press the little swoosh icon in the bottom left of the image viewer.</li>
<li>Tap Email Photo.</li>
<li>In the New Message box you should enter the To: e-mail address that you set up in step 4.  You can also enter some text in the box.  Press Send.</li>
<li>Now, the content won&#8217;t appear yet in your blog, but it&#8217;ll be waiting&#8230; all you need is to send a browser to http://www.yourdomain.com/wp-content/plugins/postie/get_mail.php  or, if your WordPress is installed in its own directory: http://www.yourdomain.com/WordPressDirectory/wp-content/plugins/postie/get_mail.php</li>
<li>You can set up a cron job if you&#8217;re allowed, but it&#8217;s not my favourite way anyhow.  I like to just have a favourite in my browser for mail posting which I click on whenever I need to update the site.</li>
</ol>
<p>And that&#8217;s it!  Ok, it took a bit to get there, and it&#8217;s not integral to WordPress so you can&#8217;t guarantee support on version changes, but&#8230; it&#8217;s one way forward, I&#8217;ve tested it, and it works well on WP 2.3.1.  If you spot any mistakes, please comment!</p>
<p>If this post is popular I may well try and add some screenshots, photos and sample posts.  I also plan to do a similar post soon on the Nokia N95 and WordPress.</p>
]]></content:encoded>
			<wfw:commentRss>http://interconnectit.com/45/wordpress-and-the-iphone/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

