<?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>Clarity Computers &#187; BlogEngine / Wordpress</title>
	<atom:link href="http://www.devclarity.com/category/6-blog/blogengine/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.devclarity.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sun, 02 May 2010 19:18:48 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Google Maps Sidebar Widget for Wordpress (Per Post)</title>
		<link>http://www.devclarity.com/2010/05/google-maps-widget-for-wordpress/</link>
		<comments>http://www.devclarity.com/2010/05/google-maps-widget-for-wordpress/#comments</comments>
		<pubDate>Sat, 01 May 2010 21:42:12 +0000</pubDate>
		<dc:creator>Matthew</dc:creator>
				<category><![CDATA[BlogEngine / Wordpress]]></category>
		<category><![CDATA[Files]]></category>

		<guid isPermaLink="false">http://www.devclarity.com/?p=494</guid>
		<description><![CDATA[My friends at Moss Creek Media had an idea.  They wanted to put a Google map of where a picture was taken next to the image.
I looked at all the plug ins and could only find one that added a Google map to a sidebar.  This was great! Something existed so I didn't have to [...]]]></description>
			<content:encoded><![CDATA[<a href="http://www.devclarity.com/wp-content/uploads/2010/05/mosscreek.png"><img class="alignleft size-medium wp-image-496" title="mosscreek" src="http://www.devclarity.com/wp-content/uploads/2010/05/mosscreek-300x240.png" alt="" width="300" height="240" /></a><p>My friends at <a href="http://mosscreekmedia.com/" target="_blank">Moss Creek Media</a> had an idea.  They wanted to put a Google map of where a picture was taken next to the image.</p>
<p>I looked at all the plug ins and could only find one that added a Google map to a sidebar.  This was great! Something existed so I didn't have to build it but, it only supported one location (defined globally for every instance of the widget) and  what I needed to do was set the location according to the currently displayed image.</p>
<h2>Modification time</h2>
<p>The original plug-in <a href="http://wordpress.org/extend/plugins/google-map-v3-for-idn/" target="_blank">google-map-v3-for-idn</a> created by <a href="http://www.france-development.com/" target="_blank">Raphael Berrhoun</a> was very easy to modify.  I created a new <a href="http://codex.wordpress.org/Shortcode_API" target="_blank">shortcode</a> called <strong>gps</strong> that you insert into each post where the sidebar widget is displayed.</p>
<pre class="brush: xml;"> [gps latitude=&quot;43.62132&quot; longitude=&quot;-71.629517&quot; description=&quot;&lt;strong&gt;House of Goodness&lt;/strong&gt;&lt;br/&gt;31 Main St&lt;br/&gt;Oakland, CA 12334&quot;] </pre>
<p>Next all I had to do was modify some of the javascript to read the values passed in by the <a href="http://codex.wordpress.org/Shortcode_API" target="_blank">shortcode</a> (should they be available).  If the values were not present then it defaults to the normal values.</p>
<pre class="brush: jscript;">function makeMap() {
                        var lat = '&quot;.$lat.&quot;';
                        var lng = '&quot;.$lng.&quot;';
                        var info ='';
                        if ( (document.getElementById('gps-latitude')!='undefined') &amp;&amp; (document.getElementById('lng')!='undefined') ) {
                             lat = document.getElementById('gps-latitude').innerHTML;
                             lng = document.getElementById('gps-longitude').innerHTML;
                             info = document.getElementById('gps-description').innerHTML;
                        }</pre>

<h2>Usage</h2>
<p>You can download my modified the version of the plug-in.  All that you will need to do is add the <strong>GPS</strong> line to your post and make sure you have installed the widget into your sidebar and populated the <a href="http://code.google.com/apis/maps/signup.html">Google Maps API key</a>.  (Under settings in the control panel)</p>

Note: There is a file embedded within this post, please visit this post to download the file.]]></content:encoded>
			<wfw:commentRss>http://www.devclarity.com/2010/05/google-maps-widget-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Redirect Blogengine Links to Wordpress (running on a Rackspace Cloud)</title>
		<link>http://www.devclarity.com/2010/01/redirect-blogengine-links-to-wordpress-running-on-a-rackspace-cloud/</link>
		<comments>http://www.devclarity.com/2010/01/redirect-blogengine-links-to-wordpress-running-on-a-rackspace-cloud/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 05:20:51 +0000</pubDate>
		<dc:creator>Matthew</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[BlogEngine / Wordpress]]></category>

		<guid isPermaLink="false">http://www.devclarity.com/?p=409</guid>
		<description><![CDATA[Problem
I used to have a web server running IIS and BlogEngine.  When people come to my new site looking for an article they will get a nasty error.  For one the site is now PHP.  I wanted to remap all the files from the old URL&#8217;s to the new URL&#8217;s.

Old URL

http://www.devclarity.com/blog/post/topic.aspx

New URL

http://www.devclarity.com/index.php?s=topic

I figured I would [...]]]></description>
			<content:encoded><![CDATA[<h2>Problem</h2>
<p>I used to have a web server running IIS and BlogEngine.  When people come to my new site looking for an article they will get a nasty error.  For one the site is now PHP.  I wanted to remap all the files from the old URL&#8217;s to the new URL&#8217;s.</p>

<p><strong>Old URL</strong><br />

http://www.devclarity.com/blog/post/topic.aspx</p>

<p><strong>New URL</strong><br />

http://www.devclarity.com/index.php?s=topic</p>

<p>I figured I would just put a redirect in <strong>.htaccess</strong>, but little did I know that the web server sees the .aspx extension of the old URL and processes it on the IIS server.  Thanks a lot Rackspace Cloud <img src='http://www.devclarity.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>

<h2>Solution</h2>
I created a Web.Config file to send all errors to a page called Redirect.aspx.
<pre class="brush: xml;">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt;
&lt;configuration&gt;
    &lt;system.web&gt;
		&lt;customErrors defaultRedirect=&quot;redirect.aspx&quot; mode=&quot;On&quot;&gt;   
		    &lt;error statusCode=&quot;500&quot; redirect=&quot;redirect.aspx&quot; /&gt;
		    &lt;error statusCode=&quot;404&quot; redirect=&quot;redirect.aspx&quot; /&gt;
		    &lt;error statusCode=&quot;403&quot; redirect=&quot;redirect.aspx&quot; /&gt; 
		&lt;/customErrors&gt;
    &lt;/system.web&gt;
&lt;/configuration&gt;</pre>


Then, redirect.aspx takes the URL and modifies the aspx extension to a html one and redirects the new link back to the page.
<pre class="brush: vb;">&lt;%
	Dim ASPXPath as String
	
	ASPXPath = Request.QueryString(&quot;aspxerrorpath&quot;) 
	ASPXPath = ASPXPath.Replace(&quot;aspx&quot;, &quot;html&quot;).replace(&quot;-&quot;, &quot;+&quot;)
%&gt;
&lt;html&gt;
&lt;body&gt;
	&lt;h3&gt;Please wait, your content has moved&lt;/h3&gt;
	
	&lt;script&gt;
		window.location='&lt;%=ASPXPath%&gt;';
	&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>


<p><strong>Old URL:</strong><br />

http://www.devclarity.com/blog/post/topic.aspx</p>

<p><strong>New URL:</strong><br />

http://www.devclarity.com/blog/post/topic.html</p>

So now, the only thing was setting up the .htaccess file to handle the old url.  What this rule does, is it takes the topic out of the passed URL and reroutes it to the Wordpress search engine.
<pre class="brush: plain;">RewriteRule ^blog/post/([\w-\+]+)\.html$ /index.php?s=$1 [R=permanent,L]</pre>

<h2>Result</h2>
<p><a href="http://www.devclarity.com/blog/post/Backup-Mover.aspx">http://www.devclarity.com/blog/post/Backup-Mover.aspx</a> now takes you to the remapped Backup Mover page on the Wordpress site.</p>

(Of course, this post is new so if you use the old backup-mover link you will see this page first with the backup mover article under it <img src='http://www.devclarity.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> )]]></content:encoded>
			<wfw:commentRss>http://www.devclarity.com/2010/01/redirect-blogengine-links-to-wordpress-running-on-a-rackspace-cloud/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Gallery extension for BlogEngine</title>
		<link>http://www.devclarity.com/2009/06/gallery-extension-for-blogengine/</link>
		<comments>http://www.devclarity.com/2009/06/gallery-extension-for-blogengine/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 08:55:00 +0000</pubDate>
		<dc:creator>Matthew</dc:creator>
				<category><![CDATA[BlogEngine / Wordpress]]></category>
		<category><![CDATA[Files]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">/blog/post/Lightbox-2-extension-for-BlogEngine.aspx</guid>
		<description><![CDATA[Paul Tumelty wrote a very nice BlogEngine component that creates a page of Lightbox 2 links dynamically from a directory of images.
I have added to this extension, you can now pass in a &#8220;SetName&#8221; to define a set of images.  Defining a set of images in lightbox allows you to use the built in Previous [...]]]></description>
			<content:encoded><![CDATA[<p>Paul Tumelty wrote a very nice BlogEngine component that creates a page of Lightbox 2 links dynamically from a directory of images.</p>
<p>I have added to this extension, you can now pass in a &#8220;SetName&#8221; to define a set of images.  Defining a set of images in lightbox allows you to use the built in Previous and Next capabilities of Lightbox 2.</p>
<p>I also noticed an error with thumbnail generation, it was hard coded to a value of 75, that has been fixed as well.</p>
<p>Get the Lightbox JS <a title="Lightbox 2" href="http://www.huddletogether.com/projects/lightbox2/" target="_blank">here</a><br />
Get the Gallery extension <a title="Lightbox Extention" href="http://www.tumelty.com/blog/post/2008/02/BlogEngineNet-Gallery-User-Control---Version-10-Released.aspx" target="_blank">here</a></p>
<p>Download the update<br />
Note: There is a file embedded within this post, please visit this post to download the file.</p>
<p>I also had an issue with Prototype interfering with lightbox (making the application appear not to work).  If this happens to you simply update the blog.js file in your installation root directory of BlogEngine to correct this error.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devclarity.com/2009/06/gallery-extension-for-blogengine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
