<?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"
	>
<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>
	<pubDate>Fri, 29 Aug 2008 03:59:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.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'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('md'))
    {
        case '0101':
            return '_newyear'; break;
        case '0323':
            return '_birthday'; break;
        case '1031':
            return '_halloween'; break;
        case '1225':
            return '_christmas'; 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="39761"]You could change /path/to/theme to &lt;code&gt;&#60;?php bloginfo('stylesheet_directory'); ?&#62;&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're right, but you have to be careful about using it too much. It can't be used where I've written &lt;code&gt;/path/to/my/side/pictures/directory/&lt;/code&gt;, 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.

[quote comment="39767"]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've implemented a random header using the &lt;a href="http://www.coffee2code.com/wp-plugins/#randomfile "&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;&#60;?php echo c2c_random_file('/folder'); ?&#62;&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;&#60;?php bloginfo('stylesheet_directory'); ?&#62;&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>

<!-- Dynamic Page Served (once) in 0.265 seconds -->
<!-- Cached page served by WP-Cache -->
<!-- Compression = gzip -->