<?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>Word Virus &#187; Flickr</title>
	<atom:link href="http://wordvirus.us/tag/flickr/feed/" rel="self" type="application/rss+xml" />
	<link>http://wordvirus.us</link>
	<description>The word is now a virus. - William S. Burroughs</description>
	<lastBuildDate>Mon, 06 Feb 2012 11:00:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Opening the Flickr Zoom Badge in a New Window</title>
		<link>http://wordvirus.us/2009/10/opening-flickr-zoom-badge-new-window/</link>
		<comments>http://wordvirus.us/2009/10/opening-flickr-zoom-badge-new-window/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 19:19:10 +0000</pubDate>
		<dc:creator>gabriel</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Flickr]]></category>

		<guid isPermaLink="false">http://wordvirus.us/?p=1097</guid>
		<description><![CDATA[The Flickr Javascript badge has been driving me crazy. It has all these great variable inputs, but no &#8220;target&#8221; variable. The last thing I want is a user to click an image, and it go off to Flickr, leaving my site completely.  I&#8217;ve been looking all over for a solution for this, and was on [...]]]></description>
			<content:encoded><![CDATA[<p>The Flickr Javascript badge has been driving me crazy. It has all these great variable inputs, but no &#8220;target&#8221; variable. The last thing I want is a user to click an image, and it go off to Flickr, leaving my site completely.  I&#8217;ve been looking all over for a solution for this, and was on the verge of writing one, when I stumbled across a great <a href="http://www.adamwlewis.com/articles/making-flickr-badges-open-new-window" target="_blank">blog post</a> about how to fix this.</p>
<p>I needed this to work in the <a href="http://wordpress.org/extend/plugins/flickr-zoom-badge/" target="_blank">Flickr Zoom Badge</a> plugin for WordPress, so here&#8217;s a quick how to:</p>
<p>Find the end of the &#8220;flickr_badge_wrapper&#8221; div in the flickr-zoom-badge.php file in &#8220;wp-content/plugins/flickr-zoom-badge&#8221;.  For my version, this was line 150. Then just paste in the following code:</p>
<p>&lt;script&gt;<br />
&lt;!&#8211;<br />
var oFlickrTable = document.getElementById(&#8220;flickr_badge_wrapper&#8221;);</p>
<p>oFlickrBadgePhotos = oFlickrTable.getElementsByTagName(&#8220;a&#8221;);</p>
<p>for (nBadgePhoto = 0; nBadgePhoto &lt; oFlickrBadgePhotos.length; nBadgePhoto++) {</p>
<p>oFlickrBadgePhotos[nBadgePhoto].target = &#8220;_blank&#8221;;</p>
<p>}<br />
//&#8211;&gt;<br />
&lt;/script&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://wordvirus.us/2009/10/opening-flickr-zoom-badge-new-window/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.488 seconds -->

