<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: WordPress Random Header Images</title>
	<atom:link href="http://nslog.com/2007/03/02/wordpress_random_header_images/feed" rel="self" type="application/rss+xml" />
	<link>http://nslog.com/2007/03/02/wordpress_random_header_images</link>
	<description>The Weblog of Erik J. Barzeski</description>
	<lastBuildDate>Tue, 07 Feb 2012 16:40:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Mike</title>
		<link>http://nslog.com/2007/03/02/wordpress_random_header_images#comment-42232</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Sat, 07 Jul 2007 04:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2007/03/02/wordpress_random_header_images#comment-42232</guid>
		<description>I&#039;ve got the header to work. Thanks for the help! I would like to incorporate the special image on specific days on the sidebar. How can I modify the following code to allow me to return an array? Is it possible?

&lt;pre&gt;switch(date(&#039;md&#039;))
    {
        case &#039;0101&#039;:
            return &#039;_newyear&#039;; break;
        case &#039;0323&#039;:
            return &#039;_birthday&#039;; break;
        case &#039;1031&#039;:
            return &#039;_halloween&#039;; break;
        case &#039;1225&#039;:
            return &#039;_christmas&#039;; break;
        default:
            break;
    };&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>I've got the header to work. Thanks for the help! I would like to incorporate the special image on specific days on the sidebar. How can I modify the following code to allow me to return an array? Is it possible?</p>
<pre>switch(date('md'))
    {
        case '0101':
            return '_newyear'; break;
        case '0323':
            return '_birthday'; break;
        case '1031':
            return '_halloween'; break;
        case '1225':
            return '_christmas'; break;
        default:
            break;
    };</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maria Rose &#187; Blog Archive &#187; Format changes</title>
		<link>http://nslog.com/2007/03/02/wordpress_random_header_images#comment-41266</link>
		<dc:creator>Maria Rose &#187; Blog Archive &#187; Format changes</dc:creator>
		<pubDate>Sun, 22 Apr 2007 21:43:48 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2007/03/02/wordpress_random_header_images#comment-41266</guid>
		<description>[...] you refresh the page.Ã‚Â  I did this with the Random File WordPress plugin and a little help from NSLog(); to keep the code XML compliant by adding height and width [...]</description>
		<content:encoded><![CDATA[<p>[...] you refresh the page.Ã‚Â  I did this with the Random File WordPress plugin and a little help from NSLog(); to keep the code XML compliant by adding height and width [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik J. Barzeski</title>
		<link>http://nslog.com/2007/03/02/wordpress_random_header_images#comment-39770</link>
		<dc:creator>Erik J. Barzeski</dc:creator>
		<pubDate>Sat, 03 Mar 2007 15:45:49 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2007/03/02/wordpress_random_header_images#comment-39770</guid>
		<description>[quote comment=&quot;39761&quot;]You could change /path/to/theme to &lt;code&gt;&lt;?php bloginfo(&#039;stylesheet_directory&#039;); ?&gt;&lt;/code&gt;. (Or &lt;code&gt;get_bloginfo()&lt;/code&gt; to return it.) This just makes things easier if you move or otherwise.[/quote]

You&#039;re right, but you have to be careful about using it too much. It can&#039;t be used where I&#039;ve written &lt;code&gt;/path/to/my/side/pictures/directory/&lt;/code&gt;, for example, because that&#039;s an absolute path on the server. I also don&#039;t think it&#039;ll work very well in the included files.

[quote comment=&quot;39767&quot;]I just pop a bunch of images in a folder&#8230; all I need to do to add more pictures is drop them into the folder.[/quote]

You can read above at least two or three reasons why that solution would be limiting to me.</description>
		<content:encoded><![CDATA[<p class="quote_header"><a  href="http://nslog.com/2007/03/02/wordpress_random_header_images#comment-39761">Robin said</a> on March 2, 2007:</p>
<blockquote cite="http://nslog.com/2007/03/02/wordpress_random_header_images#comment-39761"><p>
You could change /path/to/theme to <code>&lt;?php bloginfo('stylesheet_directory'); ?&gt;</code>. (Or <code>get_bloginfo()</code> to return it.) This just makes things easier if you move or otherwise.</p>
</blockquote>
<p>You're right, but you have to be careful about using it too much. It can't be used where I've written <code>/path/to/my/side/pictures/directory/</code>, for example, because that's an absolute path on the server. I also don't think it'll work very well in the included files.</p>
<p class="quote_header"><a  href="http://nslog.com/2007/03/02/wordpress_random_header_images#comment-39767">Owen said</a> on March 3, 2007:</p>
<blockquote cite="http://nslog.com/2007/03/02/wordpress_random_header_images#comment-39767"><p>
I just pop a bunch of images in a folder&hellip; all I need to do to add more pictures is drop them into the folder.</p>
</blockquote>
<p>You can read above at least two or three reasons why that solution would be limiting to me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Owen</title>
		<link>http://nslog.com/2007/03/02/wordpress_random_header_images#comment-39767</link>
		<dc:creator>Owen</dc:creator>
		<pubDate>Sat, 03 Mar 2007 11:15:18 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2007/03/02/wordpress_random_header_images#comment-39767</guid>
		<description>I&#039;ve implemented a random header using the &lt;a href=&quot;http://www.coffee2code.com/wp-plugins/#randomfile &quot;&gt;Random File plugin&lt;/a&gt; by Scott Reilly. I just pop a bunch of images in a folder and just set the DIV ID background to &lt;code&gt;&lt;?php echo c2c_random_file(&#039;/folder&#039;); ?&gt;&lt;/code&gt; Works a treat, and all I need to do to add more pictures is drop them into the folder</description>
		<content:encoded><![CDATA[<p>I've implemented a random header using the <a href="http://www.coffee2code.com/wp-plugins/#randomfile ">Random File plugin</a> by Scott Reilly. I just pop a bunch of images in a folder and just set the DIV ID background to <code>&lt;?php echo c2c_random_file('/folder'); ?&gt;</code> Works a treat, and all I need to do to add more pictures is drop them into the folder</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robin</title>
		<link>http://nslog.com/2007/03/02/wordpress_random_header_images#comment-39761</link>
		<dc:creator>Robin</dc:creator>
		<pubDate>Sat, 03 Mar 2007 01:49:47 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2007/03/02/wordpress_random_header_images#comment-39761</guid>
		<description>You could change /path/to/theme to &lt;code&gt;&lt;?php bloginfo(&#039;stylesheet_directory&#039;); ?&gt;&lt;/code&gt;. (Or &lt;code&gt;get_bloginfo()&lt;/code&gt; to return it.) This just makes things easier if you move or otherwise.</description>
		<content:encoded><![CDATA[<p>You could change /path/to/theme to <code>&lt;?php bloginfo('stylesheet_directory'); ?&gt;</code>. (Or <code>get_bloginfo()</code> to return it.) This just makes things easier if you move or otherwise.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

