<?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>BrianDart.net Blog</title>
	<atom:link href="http://www.briandart.net/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.briandart.net/blog</link>
	<description></description>
	<lastBuildDate>Wed, 21 Jul 2010 16:31:46 +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>Hello FeedBurner</title>
		<link>http://www.briandart.net/blog/wordpress/hello-feedburner/</link>
		<comments>http://www.briandart.net/blog/wordpress/hello-feedburner/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 21:35:52 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[RSS]]></category>

		<guid isPermaLink="false">http://www.briandart.net/blog/?p=100</guid>
		<description><![CDATA[So, Yahoo Pipes apparently had issues dealing with the wackness that is Delicious’ RSS feeds.  I switched over to FeedBurner and things seem to be functioning as expected.  We will see how long this lasts…
]]></description>
			<content:encoded><![CDATA[<p>So, Yahoo Pipes apparently had issues dealing with the wackness that is Delicious’ RSS feeds.  I switched over to <a href="http://feedburner.google.com" target="_blank">FeedBurner </a>and things seem to be functioning as expected.  We will see how long this lasts…</p>
]]></content:encoded>
			<wfw:commentRss>http://www.briandart.net/blog/wordpress/hello-feedburner/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Updated RSS code</title>
		<link>http://www.briandart.net/blog/wordpress/updated-rss-code/</link>
		<comments>http://www.briandart.net/blog/wordpress/updated-rss-code/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 22:23:24 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[RSS]]></category>

		<guid isPermaLink="false">http://www.briandart.net/blog/?p=94</guid>
		<description><![CDATA[For some reason, the Yahoo Pipes code that I started using yesterday worked for about a day and then… well, it stopped.  So, I decided to look and see if there was a better way of integrating RSS, and I found it.  Not sure why the older code stopped working, but this new code works, [...]]]></description>
			<content:encoded><![CDATA[<p>For some reason, the Yahoo Pipes code that I started using yesterday worked for about a day and then… well, it stopped.  So, I decided to look and see if there was a better way of integrating RSS, and I found it.  Not sure why the older code stopped working, but this new code works, and that is what matters.</p>
<pre class="brush: php;">
		&lt;?php while (have_posts()) : the_post(); ?&gt;
			&lt;?php $count++; ?&gt;
			&lt;?php if ($count == 2) { ?&gt;
				&lt;?php // Get RSS Feed(s)
					include_once(ABSPATH . WPINC . '/rss.php');
					$rss = fetch_rss('http://pipes.yahoo.com/pipes/pipe.run?_id=44e48ee3d0fdba8a428ae7eec11f42fe&amp;_render=rss');
					$maxitems = 5;
					$items = array_slice($rss -&gt;items, 0, $maxitems);
					?&gt;
					&lt;div id=&quot;bookmarks&quot;&gt;
						&lt;h2&gt;recent delicious bookmarks&lt;/h2&gt;
						&lt;ul&gt;
							&lt;?php if ($items == 0) echo '&lt;li&gt;No items.&lt;/li&gt;';
							else
							// Loop through each feed item and display each item as a hyperlink.
							foreach ( $items as $item ) : ?&gt;
								&lt;li&gt;
									&lt;a href='&lt;?php echo $item['link']; ?&gt;' title='&lt;?php echo $item['title']; ?&gt;'&gt;
										&lt;?php echo $item['title']; ?&gt;
									&lt;/a&gt;
								&lt;/li&gt;
							&lt;?php endforeach; ?&gt;
						&lt;/ul&gt;
					&lt;/div&gt;
			&lt;?php } ?&gt;

			&lt;div &lt;?php post_class() ?&gt; id=&quot;post-&lt;?php the_ID(); ?&gt;&quot;&gt;
			...
			&lt;?php endwhile; ?&gt;
</pre>
<p>This updated code came from the book <a href="http://www.amazon.com/Smashing-WordPress-Beyond-Blog-Magazine/dp/0470684151/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1279145875&amp;sr=8-1" target="_blank">Smashing WordPress: Beyond the Blog</a>, which I picked up at my local library today.  Looks to be a great read for those interested in Wordpress.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.briandart.net/blog/wordpress/updated-rss-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RSS mixer service update</title>
		<link>http://www.briandart.net/blog/general/rss-mixer-service-update/</link>
		<comments>http://www.briandart.net/blog/general/rss-mixer-service-update/#comments</comments>
		<pubDate>Mon, 12 Jul 2010 23:57:05 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[RSS]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://www.briandart.net/blog/?p=92</guid>
		<description><![CDATA[Most of the RSS aggregation services listed here are either no longer in service or are experiencing some level of growing pains.  RSS Mix, which is the service that I used to ‘remix’ my Delicious RSS feed  has been acting up the last couple of times I have checked, so I decided to upgrade to [...]]]></description>
			<content:encoded><![CDATA[<p>Most of the RSS aggregation services listed <a href="http://www.tothepc.com/archives/10-tools-to-combine-mix-blend-multiple-rss-feeds/">here</a> are either no longer in service or are experiencing some level of growing pains.  <a href="http://www.rssmix.com/">RSS Mix</a>, which is the service that I used to ‘remix’ my Delicious RSS feed  has been acting up the last couple of times I have checked, so I decided to upgrade to a more well known player. And yes, I had to use a third party service to aggregate/translate a single  feed because Delicious’ RSS is wacky (at least as far as <a href="http://simplepie.org/">SimplePie</a> is concerned).</p>
<p>Welcome <a href="http://pipes.yahoo.com/pipes/">Yahoo Pipes</a>.  My home page RSS works like a charm now, and I have little fear that this service will disappear overnight.</p>
<p>Makes me wonder what is next.  Letting Google host my <a href="http://encosia.com/2008/12/10/3-reasons-why-you-should-let-google-host-jquery-for-you/">jQuery</a> or site <a href="http://code.google.com/webfonts">fonts</a>?  That is just crazy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.briandart.net/blog/general/rss-mixer-service-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blog Freshness fix</title>
		<link>http://www.briandart.net/blog/wordpress/blog-freshness-fix/</link>
		<comments>http://www.briandart.net/blog/wordpress/blog-freshness-fix/#comments</comments>
		<pubDate>Fri, 11 Jun 2010 00:37:31 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[blog freshness]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://www.briandart.net/blog/?p=89</guid>
		<description><![CDATA[I implemented the latest version of Blog Freshness into my blog theme and while testing I came across a minor issue that has now been fixed.  The new version is available for download below.
Download Blog Freshness 1.2
]]></description>
			<content:encoded><![CDATA[<p>I implemented the latest version of Blog Freshness into my blog theme and while testing I came across a minor issue that has now been fixed.  The new version is available for download below.</p>
<p><a href="http://www.briandart.net/blog/wp-content/uploads/2010/06/blog-freshness-1-2.zip">Download Blog Freshness 1.2</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.briandart.net/blog/wordpress/blog-freshness-fix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blog Freshness 1.1 — now with widget support</title>
		<link>http://www.briandart.net/blog/wordpress/blog-freshness-1-1-now-with-widget-support/</link>
		<comments>http://www.briandart.net/blog/wordpress/blog-freshness-1-1-now-with-widget-support/#comments</comments>
		<pubDate>Wed, 02 Jun 2010 01:22:12 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[blog freshness]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://www.briandart.net/blog/?p=87</guid>
		<description><![CDATA[I updated the Blog Freshness plugin to support widgets.  So now you can place Blog Freshness anywhere you can place widgets, instead of having it locked in the upper-right corner.  There are also a couple of options that allow you to change the title and alignment (left, center, right) inside the widget area.
Download Blog Freshness [...]]]></description>
			<content:encoded><![CDATA[<p>I updated the Blog Freshness plugin to support widgets.  So now you can place Blog Freshness anywhere you can place widgets, instead of having it locked in the upper-right corner.  There are also a couple of options that allow you to change the title and alignment (left, center, right) inside the widget area.</p>
<p><a title="Blog Freshness 1.1" href="http://www.briandart.net/blog/wp-content/uploads/2010/06/blog-freshness-1_1.zip">Download Blog Freshness 1.1</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.briandart.net/blog/wordpress/blog-freshness-1-1-now-with-widget-support/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dreamweaver CS5 and CMS integration overview</title>
		<link>http://www.briandart.net/blog/drupal/dreamweaver-cs5-and-cms-integration-overview/</link>
		<comments>http://www.briandart.net/blog/drupal/dreamweaver-cs5-and-cms-integration-overview/#comments</comments>
		<pubDate>Wed, 05 May 2010 04:29:22 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[CMS]]></category>

		<guid isPermaLink="false">http://www.briandart.net/blog/?p=83</guid>
		<description><![CDATA[Lynda.com has a video overview on the new CMS integration features of Dreamweaver CS5.  Use the link below and then select the ‘Working with CMS frameworks’ video link.  Looks to be useful.
Dreamweaver  CS5 New Features
]]></description>
			<content:encoded><![CDATA[<p><a href="http://lynda.com" target="_blank">Lynda.com</a> has a video overview on the new CMS integration features of Dreamweaver CS5.  Use the link below and then select the ‘Working with CMS frameworks’ video link.  Looks to be useful.</p>
<p><a href="http://www.lynda.com/home/DisplayCourse.aspx?lpk2=59959" target="_blank">Dreamweaver  CS5 New Features</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.briandart.net/blog/drupal/dreamweaver-cs5-and-cms-integration-overview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal 7 theming preview</title>
		<link>http://www.briandart.net/blog/drupal/drupal-7-theming-preview/</link>
		<comments>http://www.briandart.net/blog/drupal/drupal-7-theming-preview/#comments</comments>
		<pubDate>Wed, 05 May 2010 04:17:36 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[CMS]]></category>

		<guid isPermaLink="false">http://www.briandart.net/blog/?p=80</guid>
		<description><![CDATA[Here is a nice write-up about the upcoming changes to theming in Drupal 7.
A peek at Drupal 7 theme  system changes
]]></description>
			<content:encoded><![CDATA[<p>Here is a nice write-up about the upcoming changes to theming in Drupal 7.</p>
<p id="page-title"><a href="http://pingv.com/blog/a-peek-at-drupal-7-theme-system-changes" target="_blank">A peek at Drupal 7 theme  system changes</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.briandart.net/blog/drupal/drupal-7-theming-preview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Passing data from Drupal to jQuery</title>
		<link>http://www.briandart.net/blog/drupal/passing-data-from-drupal-to-jquery/</link>
		<comments>http://www.briandart.net/blog/drupal/passing-data-from-drupal-to-jquery/#comments</comments>
		<pubDate>Thu, 22 Apr 2010 21:49:17 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://www.briandart.net/blog/?p=71</guid>
		<description><![CDATA[It is fairly simple to pass information from Drupal (PHP) to jQuery (JavaScript).  I have recently used this method to have jQuery animate elements using CCK fields for the control data (direction, distance, speed, etc.).
First, open up node.tpl.php in the root of your theme directory and paste the following code at the bottom:

&#60;?php
	drupal_add_js(array('title' =&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>It is fairly simple to pass information from Drupal (PHP) to jQuery (JavaScript).  I have recently used this method to have jQuery animate elements using CCK fields for the control data (direction, distance, speed, etc.).</p>
<p>First, open up node.tpl.php in the root of your theme directory and paste the following code at the bottom:</p>
<pre class="brush: php;">
&lt;?php
	drupal_add_js(array('title' =&gt; $title,
						'logged_in' =&gt; $logged_in,
						), 'setting');
	drupal_add_js(path_to_theme().'/js/drupal_js.js');
?&gt;
</pre>
<p>The first line of the PHP code creates the setting array that Drupal will use to pass information to jQuery.  The second line creates a reference to the external JavaScript file that we will create in the next step.</p>
<p>Create a new JavaScript file called drupal_js.js and place it in a /js folder in the root of your theme.  Paste the following code into drupal_js.js (replace ‘myThemeName’ with your actual theme name on the first line):</p>
<pre class="brush: jscript;">
Drupal.behaviors.myThemeName = function(context) {
	alert('Title: ' + Drupal.settings.title + '\nLogged in: ' + Drupal.settings.logged_in);
}
</pre>
<p>The first line of the JavaScript code is the Drupal replacement for the standard jQuery ‘$(document).ready(function() {‘.  You can use it with either a theme (Drupal.behaviors.myThemeName) or a module (Drupal.behaviors.myModuleName).</p>
<p>Next, we create an alert using the Drupal variables from the setting array.  In order to reference the variables, you need to tack ‘Drupal.setting.’ on the front of the variable name.</p>
<p>When you view a page that is using node.tpl.php you should see a JavaScript alert pop up that states the title of the node and the logged in status of the current user.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.briandart.net/blog/drupal/passing-data-from-drupal-to-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding RSS feed content in Wordpress 2.8+</title>
		<link>http://www.briandart.net/blog/uncategorized/adding-rss-feed-content-in-wordpress-2-8/</link>
		<comments>http://www.briandart.net/blog/uncategorized/adding-rss-feed-content-in-wordpress-2-8/#comments</comments>
		<pubDate>Thu, 25 Mar 2010 00:00:24 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.briandart.net/blog/?p=62</guid>
		<description><![CDATA[With Wordpress 2.8+, there is a new function, fetch_feed(), that is built off of SimplePie. The new function worked fine with most RSS feeds, like the one from my blog here, but it would error out each time I attempted to get it to read a feed from Delicious.  After making several attempts, and coming [...]]]></description>
			<content:encoded><![CDATA[<p>With Wordpress 2.8+, there is a new function, <a href="http://codex.wordpress.org/Function_Reference/fetch_feed" target="_blank">fetch_feed()</a>, that is built off of <a href="http://simplepie.org/" target="_blank">SimplePie</a>. The new function worked fine with most RSS feeds, like the one from my blog here, but it would error out each time I attempted to get it to read a feed from Delicious.  After making several attempts, and coming up empty on Google searches, I decided to switch gears.  Instead of getting the feed directly from Delicious, I found a feed aggregator site called <a href="http://www.rssmix.com/" target="_blank">RSSMix</a>, created a mix with just the feed I wanted from Delicious, and then used that feed URL to great success.  The code for my feed display is below:</p>
<pre class="brush: php;">
&lt;?php
// Get RSS Feed(s)
include_once(ABSPATH . WPINC . '/feed.php');

// Get a SimplePie feed object from the specified feed source.
$rss = fetch_feed('http://www.rssmix.com/u/800770/rss.xml');
if (!is_wp_error( $rss ) ) : // Checks that the object is created correctly
	// Figure out how many total items there are, but limit it to 5.
	$maxitems = $rss-&gt;get_item_quantity(5);
	// Build an array of all the items, starting with element 0 (first element).
	$rss_items = $rss-&gt;get_items(0, $maxitems);
endif;
echo $postcount;
?&gt;
&lt;div id=&quot;bookmarks&quot;&gt;
	&lt;h2&gt;recent delicious bookmarks&lt;/h2&gt;
	&lt;ul&gt;
		&lt;?php if ($maxitems == 0) echo '&lt;li&gt;No items.&lt;/li&gt;';
		else
		// Loop through each feed item and display each item as a hyperlink.
		foreach ( $rss_items as $item ) : ?&gt;
			&lt;li&gt;
				&lt;a href='&lt;?php echo $item-&gt;get_permalink(); ?&gt;'
				title='&lt;?php echo 'Posted '.$item-&gt;get_date('j F Y | g:i a'); ?&gt;'&gt;
				&lt;?php echo $item-&gt;get_title(); ?&gt;&lt;/a&gt;
			&lt;/li&gt;
		&lt;?php endforeach; ?&gt;
	&lt;/ul&gt;
&lt;/div&gt;
&lt;?php } ?&gt;
</pre>
<p>In order to get the feed to display after the first post, I used the following code:</p>
<pre class="brush: php;">
&lt;?php if (have_posts()) : ?&gt;
	&lt;?php $count = 0; ?&gt;
	&lt;?php while (have_posts()) : the_post(); ?&gt;
		&lt;?php $count++; ?&gt;
		&lt;?php if ($count == 2) { ?&gt;
        	&lt;!-- RSS CODE HERE --&gt;
		&lt;?php } ?&gt;
		&lt;!-- STANDARD WORDPRESS LOOP STUFF HERE --&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.briandart.net/blog/uncategorized/adding-rss-feed-content-in-wordpress-2-8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Opening Drupal node/page content in a lightbox</title>
		<link>http://www.briandart.net/blog/drupal/opening-drupal-nodepage-content-in-a-lightbox/</link>
		<comments>http://www.briandart.net/blog/drupal/opening-drupal-nodepage-content-in-a-lightbox/#comments</comments>
		<pubDate>Tue, 23 Mar 2010 22:04:15 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[lightbox]]></category>

		<guid isPermaLink="false">http://www.briandart.net/blog/?p=58</guid>
		<description><![CDATA[I have worked with different types of lightbox implementations before,  usually to view images or videos, but recently I needed to figure out how to open up Drupal content, either node or page content, in a lightbox instead of redirecting to a new page.
This page on the Drupal.org site is a good starting place if [...]]]></description>
			<content:encoded><![CDATA[<p>I have worked with different types of lightbox implementations before,  usually to view images or videos, but recently I needed to figure out how to open up Drupal content, either node or page content, in a lightbox instead of redirecting to a new page.</p>
<p>This page on the Drupal.org site is a good starting place if you are attempting to use a lightbox, namely Lightbox2, to display Drupal content.</p>
<p><a href="http://drupal.org/node/252260" target="_blank">Lightbox2 — How to add a lightbox to  webpage links</a></p>
<p>p.s. My blog content went moldy on me.  I guess there isn’t much shame involved when my site content gets old and nobody is around to see it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.briandart.net/blog/drupal/opening-drupal-nodepage-content-in-a-lightbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

