<?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/"
	xmlns:georss="http://www.georss.org/georss" 
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
>

<channel>
	<title>bioneural.net &#187; twitter</title>
	<atom:link href="http://www.bioneural.net/tag/twitter/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bioneural.net</link>
	<description>bioneural.net is for stuff worth sharing: commentary by Bruce McKenzie. Major topics covered are gadgets, informatics, Internet, Mac, mobile, musings, New Zealand, photography, Project Koru, quicklinks, rant, rave, travel and Windows</description>
	<lastBuildDate>Sat, 13 Mar 2010 15:49:45 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<image>
		<title>bioneural.net</title>
		<url>http://www.bioneural.net/images/kiwi-yellow-64px.png</url>
		<link>http://www.bioneural.net</link>
		<width>64</width>
		<height>64</height>
		<description>bioneural.net</description>
	</image>
		<item>
		<title>Twitter release per-tweet geotagging API</title>
		<link>http://www.bioneural.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.bioneural.net%2F2009%2F11%2F22%2Ftwitter-release-per-tweet-geotagging-api%2F&amp;seed_title=Twitter+release+per-tweet+geotagging+API</link>
		<comments>http://www.bioneural.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.bioneural.net%2F2009%2F11%2F22%2Ftwitter-release-per-tweet-geotagging-api%2F&amp;seed_title=Twitter+release+per-tweet+geotagging+API#comments</comments>
		<pubDate>Sun, 22 Nov 2009 08:19:52 +0000</pubDate>
		<dc:creator>Bruce</dc:creator>
				<category><![CDATA[Quicklinks]]></category>
		<category><![CDATA[geotagging]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://www.bioneural.net/?p=1572</guid>
		<description><![CDATA[<p><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/" rel="license" title="This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 2.5 License. Please see bioneural.net for additional terms of use."><img src="http://www.bioneural.net/wp-content/themes/k2bn/styles/bioneural/cc.png" alt="[CC]" /></a> From <a href="http://www.bioneural.net/" title="Please visit for full content">http://www.bioneural.net</a> doi:tSglPpAB7a8nfM : </p> Twitter's geotagging API is official. There is now a checkbox to enable geotagging in your Twitter account settings; enabling this option allows third party applications to annotate individual tweets with location data. Developers could previously integrate only profile location with the Google Maps API as here.

 ]]></description>
		<wfw:commentRss>http://www.bioneural.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.bioneural.net%2F2009%2F11%2F22%2Ftwitter-release-per-tweet-geotagging-api%2F&amp;seed_title=Twitter+release+per-tweet+geotagging+API/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/2.5/</creativeCommons:license>
	</item>
		<item>
		<title>Share Twitter locations using Google Maps</title>
		<link>http://www.bioneural.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.bioneural.net%2F2009%2F03%2F15%2Fshare-twitter-locations-using-google-maps%2F&amp;seed_title=Share+Twitter+locations+using+Google+Maps</link>
		<comments>http://www.bioneural.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.bioneural.net%2F2009%2F03%2F15%2Fshare-twitter-locations-using-google-maps%2F&amp;seed_title=Share+Twitter+locations+using+Google+Maps#comments</comments>
		<pubDate>Sun, 15 Mar 2009 13:44:25 +0000</pubDate>
		<dc:creator>Bruce</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[geotagging]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[privacy]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[webdev]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.bioneural.net/?p=1469</guid>
		<description><![CDATA[<p><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/" rel="license" title="This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 2.5 License. Please see bioneural.net for additional terms of use."><img src="http://www.bioneural.net/wp-content/themes/k2bn/styles/bioneural/cc.png" alt="[CC]" /></a> From <a href="http://www.bioneural.net/" title="Please visit for full content">http://www.bioneural.net</a> doi:tSglPpAB7a8nfM : </p> With my tweets integrated into WordPress the next challenge was to integrate my Twitter location with my custom Google Map. This recipe uses a WordPress theme functions.php file and the excellent Geo Mashup plug-in for WordPress. One advantage of this method is that you don't need to add custom location tags to each tweet (as you do for example here using Pipes). This method simply reads the location as set in your Twitter profile until you change it (and tweet again).


The code given here tested on Geo Mashup 1.1.3 and WordPress 2.7.1.

Setting your location in Twitter

You can manually update the text of your Twitter profile location on the web via Settings &#62; Account &#62; Location, but an easier way to do this is via a location-aware client such as Tweetie or Twitterrific for iPhone, either of which can optionally update your profile location in conjunction with a tweet:



Alternatively if you want to update your location without tweeting use a client such as Sparrow for iPhone (which will simultaneously update Fire Eagle to the same location):



Note, however, that the following code extracts your location from the Twitter user timeline so you do need to tweet before this method will reflect your new location.

You should be aware of the potential privacy issues around real-time location sharing via services such as Twitter, Yahoo!'s Fire Eagle, and Google's Latitude. Best to keep your location approximate if you publish it at all.

A function to get your location from Twitter

Create the following function in the functions.php ...]]></description>
		<wfw:commentRss>http://www.bioneural.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.bioneural.net%2F2009%2F03%2F15%2Fshare-twitter-locations-using-google-maps%2F&amp;seed_title=Share+Twitter+locations+using+Google+Maps/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/2.5/</creativeCommons:license>
	</item>
		<item>
		<title>Latest tweets using SimplePie</title>
		<link>http://www.bioneural.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.bioneural.net%2F2009%2F03%2F09%2Flatest-tweets-using-simplepie%2F&amp;seed_title=Latest+tweets+using+SimplePie</link>
		<comments>http://www.bioneural.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.bioneural.net%2F2009%2F03%2F09%2Flatest-tweets-using-simplepie%2F&amp;seed_title=Latest+tweets+using+SimplePie#comments</comments>
		<pubDate>Mon, 09 Mar 2009 01:17:14 +0000</pubDate>
		<dc:creator>Bruce</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[simplepie]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.bioneural.net/?p=1457</guid>
		<description><![CDATA[<p><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/" rel="license" title="This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 2.5 License. Please see bioneural.net for additional terms of use."><img src="http://www.bioneural.net/wp-content/themes/k2bn/styles/bioneural/cc.png" alt="[CC]" /></a> From <a href="http://www.bioneural.net/" title="Please visit for full content">http://www.bioneural.net</a> doi:tSglPpAB7a8nfM : </p> It's taken me a while to warm to Twitter. I created the Quicklinks category on my blog for sharing things that didn't warrant a full post, but even that's too much effort sometimes&#8212;especially if it's just sharing a link. You might argue that's what bookmarking services like Digg and Delicious are for, but even then it's a multistep process. I've only recently become aware of just how well suited the Twitter API is to sharing links or updating your status message to multiple services with minimal effort. This post shares some PHP code to integrate your tweets within your WordPress blog, and code to simplify getting your WordPress posts into other people's tweets.


The interconnectedness of tweeting

A few examples:


	I use the Twitter updater plug-in to notify Twitter of new posts on my WordPress blog.
	Darkslide on my iPhone can post a Flickr image link via the iPhone Twitterrific app. 
	Most of my links are discovered in my preferred RSS reader NetNewsWire, which can send these to desktop Twitterrific (News menu).
	The Twitter app for Facebook will update your Facebook status using your tweets.
	Twitter offer an RSS feed which can be used in conjunction with the SimplePie PHP library to bring tweets to your WordPress blog.


This last example is the focus of this post. I will assume that you have already downloaded and correctly installed SimplePie for WordPress from here.

A SimplePie template for Twitter

Create a text file called tweets.tmpl containing the following:



	{IF_ERROR_BEGIN}{ERROR_MESSAGE}{IF_ERROR_END}
		{ITEM_LOOP_BEGIN}
		{ITEM_DATE_UTC}{ITEM_DESCRIPTION}#
		{ITEM_LOOP_END}



Upload this file to the following directory on your server:

/wp-content/plugins/simplepie-plugin-for-wordpress/templates/

Now for a little ...]]></description>
		<wfw:commentRss>http://www.bioneural.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.bioneural.net%2F2009%2F03%2F09%2Flatest-tweets-using-simplepie%2F&amp;seed_title=Latest+tweets+using+SimplePie/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/2.5/</creativeCommons:license>
	</item>
		<item>
		<title>Geo Mashup implementation guide</title>
		<link>http://www.bioneural.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.bioneural.net%2F2008%2F09%2F21%2Fgeo-mashup-implementation-guide%2F&amp;seed_title=Geo+Mashup+implementation+guide</link>
		<comments>http://www.bioneural.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.bioneural.net%2F2008%2F09%2F21%2Fgeo-mashup-implementation-guide%2F&amp;seed_title=Geo+Mashup+implementation+guide#comments</comments>
		<pubDate>Sun, 21 Sep 2008 23:06:46 +0000</pubDate>
		<dc:creator>Bruce</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[geotagging]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[routebuddy]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[webdev]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.bioneural.net/?p=1322</guid>
		<description><![CDATA[<p><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/" rel="license" title="This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 2.5 License. Please see bioneural.net for additional terms of use."><img src="http://www.bioneural.net/wp-content/themes/k2bn/styles/bioneural/cc.png" alt="[CC]" /></a> From <a href="http://www.bioneural.net/" title="Please visit for full content">http://www.bioneural.net</a> doi:tSglPpAB7a8nfM : </p> Geo Mashup is one of my favourite WordPress plug-ins (and no, that's not just because it adopted the Geotag Icon). It neatly integrates geographically-relevant blog posts with a custom Google Map displayed within your own site. The Maps API in turn allows those willing to dirty their hands with a little JavaScript the option to pull in geotagged content from external sources, including photos (e.g. from Flickr, Panoramio, Picasa Web Albums), content from other blogs (via GeoRSS feeds), and placemarks from Google Earth (uploaded KML/ KMZ files, even with network links). What follows is an implementation guide, sharing some usage tips and the code used on bioneural.net.


The code given here applies to Geo Mashup 1.1.1 and WordPress 2.6.2.

Geo Mashup 1.2 was released on 19.03.09. Some of the code here may require modification.

Installing the plugin

Download Geo Mashup here, expand the ZIP archive and upload the geo-mashup directory to /wp-content/plugins/ on your web server.

Log in to WordPress as Administrator and activate Geo Mashup from the Plugins tab. Once active there will be a new Geo Mashup tab under Settings, and you'll need to visit this to enter your Google Maps API key (if you don't yet have one, click the Get yours here link). Don't worry about the other options at this stage.



Creating a map page

The tag reference gives you the choice of two types of tag to use with Geo Mashup. Shortcode tags are added to posts or pages on a case-by-case basis. Template tags on the other hand involve adding ...]]></description>
		<wfw:commentRss>http://www.bioneural.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.bioneural.net%2F2008%2F09%2F21%2Fgeo-mashup-implementation-guide%2F&amp;seed_title=Geo+Mashup+implementation+guide/feed/</wfw:commentRss>
		<slash:comments>32</slash:comments>
		<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/2.5/</creativeCommons:license>
	</item>
	</channel>
</rss>
