<?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: LazyWeb Request: Date-Based Theme Switcher for WordPress	</title>
	<atom:link href="https://mikeindustries.com/blog/archive/2008/11/lazyweb-request-date-based-theme-switcher-for-wordpress/feed" rel="self" type="application/rss+xml" />
	<link>https://mikeindustries.com/blog/archive/2008/11/lazyweb-request-date-based-theme-switcher-for-wordpress</link>
	<description>A running commentary of occasionally interesting things — from Mike Davidson.</description>
	<lastBuildDate>Thu, 26 May 2016 06:34:27 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
	<item>
		<title>
		By: Mike Davidson - Presto Chango		</title>
		<link>https://mikeindustries.com/blog/archive/2008/11/lazyweb-request-date-based-theme-switcher-for-wordpress#comment-40371</link>

		<dc:creator><![CDATA[Mike Davidson - Presto Chango]]></dc:creator>
		<pubDate>Thu, 05 Feb 2009 04:55:08 +0000</pubDate>
		<guid isPermaLink="false">https://mikeindustries.com/blog/?p=494#comment-40371</guid>

					<description><![CDATA[[...] I wanted to find a way to keep old blog posts in the old theme and style new blog posts with the new theme. I like this idea because it preserves the context in which posts were originally written and it [...]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] I wanted to find a way to keep old blog posts in the old theme and style new blog posts with the new theme. I like this idea because it preserves the context in which posts were originally written and it [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: kristarella		</title>
		<link>https://mikeindustries.com/blog/archive/2008/11/lazyweb-request-date-based-theme-switcher-for-wordpress#comment-39820</link>

		<dc:creator><![CDATA[kristarella]]></dc:creator>
		<pubDate>Sat, 22 Nov 2008 23:48:35 +0000</pubDate>
		<guid isPermaLink="false">https://mikeindustries.com/blog/?p=494#comment-39820</guid>

					<description><![CDATA[Thanks for your comment roj! I was looking at a fairly unrelated issues, but needed a conditional before/after date scenario. Your code helped heaps!

In terms of keeping design and content together. I&#039;m not so fussed when it comes to my blog (probably &#039;cause it&#039;s a personal blog that will change as I do), but if I were I would go with a conditional stylesheet. A few times when I&#039;ve changed infrastructure I&#039;ve actually done a search and replace in my database to make class names etc match up with the new ones, rather than continue to maintain deprecated CSS. It was pretty quick and I find it reassuring that my database is up to date as well.]]></description>
			<content:encoded><![CDATA[<p>Thanks for your comment roj! I was looking at a fairly unrelated issues, but needed a conditional before/after date scenario. Your code helped heaps!</p>
<p>In terms of keeping design and content together. I&#8217;m not so fussed when it comes to my blog (probably &#8217;cause it&#8217;s a personal blog that will change as I do), but if I were I would go with a conditional stylesheet. A few times when I&#8217;ve changed infrastructure I&#8217;ve actually done a search and replace in my database to make class names etc match up with the new ones, rather than continue to maintain deprecated CSS. It was pretty quick and I find it reassuring that my database is up to date as well.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Sean Madden		</title>
		<link>https://mikeindustries.com/blog/archive/2008/11/lazyweb-request-date-based-theme-switcher-for-wordpress#comment-39806</link>

		<dc:creator><![CDATA[Sean Madden]]></dc:creator>
		<pubDate>Thu, 20 Nov 2008 17:17:39 +0000</pubDate>
		<guid isPermaLink="false">https://mikeindustries.com/blog/?p=494#comment-39806</guid>

					<description><![CDATA[I&#039;m not even sure why you&#039;re bothering with this. Your new design will just be a single, drop-shadowed column with a new color palette. But maybe you&#039;ll reverse out some type and put the auxiliary column on the left to &quot;shake things up.&quot;

&lt;em&gt;(Editor&#039;s Note: Bitch.)&lt;/em&gt;]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m not even sure why you&#8217;re bothering with this. Your new design will just be a single, drop-shadowed column with a new color palette. But maybe you&#8217;ll reverse out some type and put the auxiliary column on the left to &#8220;shake things up.&#8221;</p>
<p><em>(Editor&#8217;s Note: Bitch.)</em></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: roj		</title>
		<link>https://mikeindustries.com/blog/archive/2008/11/lazyweb-request-date-based-theme-switcher-for-wordpress#comment-39796</link>

		<dc:creator><![CDATA[roj]]></dc:creator>
		<pubDate>Wed, 19 Nov 2008 02:40:44 +0000</pubDate>
		<guid isPermaLink="false">https://mikeindustries.com/blog/?p=494#comment-39796</guid>

					<description><![CDATA[For anyone who&#039;s interested: I&#039;ve quickly thrown my idea into a plugin which let&#039;s you set a single cut-off date and old template file. It also uses the plugin hooks so saves on the additional loop / db queries.

You can find it under &lt;a href=&quot;http://imightbewrong.co.uk/code/old_designs/&quot; rel=&quot;nofollow&quot;&gt;old wordpress designs&lt;/a&gt; on my site.]]></description>
			<content:encoded><![CDATA[<p>For anyone who&#8217;s interested: I&#8217;ve quickly thrown my idea into a plugin which let&#8217;s you set a single cut-off date and old template file. It also uses the plugin hooks so saves on the additional loop / db queries.</p>
<p>You can find it under <a href="http://imightbewrong.co.uk/code/old_designs/" rel="nofollow">old wordpress designs</a> on my site.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mark		</title>
		<link>https://mikeindustries.com/blog/archive/2008/11/lazyweb-request-date-based-theme-switcher-for-wordpress#comment-39790</link>

		<dc:creator><![CDATA[Mark]]></dc:creator>
		<pubDate>Tue, 18 Nov 2008 11:12:16 +0000</pubDate>
		<guid isPermaLink="false">https://mikeindustries.com/blog/?p=494#comment-39790</guid>

					<description><![CDATA[Tag Templates are for Tag &quot;Index Pages&quot; rather than a post with a tag associated to it:
http://codex.wordpress.org/Tag_Templates

I quite like the subdomain idea really. With that system you could replace all of the links to a certain age of content with a subdomain&#039;d link, offering a link to your most recent design as the same url without the subdomain attached.]]></description>
			<content:encoded><![CDATA[<p>Tag Templates are for Tag &#8220;Index Pages&#8221; rather than a post with a tag associated to it:<br />
<a href="http://codex.wordpress.org/Tag_Templates" rel="nofollow ugc">http://codex.wordpress.org/Tag_Templates</a></p>
<p>I quite like the subdomain idea really. With that system you could replace all of the links to a certain age of content with a subdomain&#8217;d link, offering a link to your most recent design as the same url without the subdomain attached.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: roj		</title>
		<link>https://mikeindustries.com/blog/archive/2008/11/lazyweb-request-date-based-theme-switcher-for-wordpress#comment-39785</link>

		<dc:creator><![CDATA[roj]]></dc:creator>
		<pubDate>Mon, 17 Nov 2008 18:13:03 +0000</pubDate>
		<guid isPermaLink="false">https://mikeindustries.com/blog/?p=494#comment-39785</guid>

					<description><![CDATA[So I forgot that you don&#039;t have the post date until you fetch it from the db so the basic single.php file might look like this:

// Define the cutoff date (Format: YYYYMMDD)
$cutoff_date = 20070517;

if ( have_posts() ) : 
	while ( have_posts() ) : the_post();
		$old = (get_the_time(&#039;Ymd&#039;) &#062; $cutoff_date) ? TRUE : FALSE;
	endwhile; 
endif;

if ($old === TRUE)
{
	include(TEMPLATEPATH . &#039;old_design.php&#039;);
	// Where old_design.php is the complete template for a single old design page
}
else
{
	// Put your new design for single pages here
}


This obviously adds new queries into the process which a plugin might avoid but it&#039;s quick and dirty and, on quick testing, appears to work. You could also refine the loop to be a single query.

Hope it helps.]]></description>
			<content:encoded><![CDATA[<p>So I forgot that you don&#8217;t have the post date until you fetch it from the db so the basic single.php file might look like this:</p>
<p>// Define the cutoff date (Format: YYYYMMDD)<br />
$cutoff_date = 20070517;</p>
<p>if ( have_posts() ) :<br />
	while ( have_posts() ) : the_post();<br />
		$old = (get_the_time(&#8216;Ymd&#8217;) &gt; $cutoff_date) ? TRUE : FALSE;<br />
	endwhile;<br />
endif;</p>
<p>if ($old === TRUE)<br />
{<br />
	include(TEMPLATEPATH . &#8216;old_design.php&#8217;);<br />
	// Where old_design.php is the complete template for a single old design page<br />
}<br />
else<br />
{<br />
	// Put your new design for single pages here<br />
}</p>
<p>This obviously adds new queries into the process which a plugin might avoid but it&#8217;s quick and dirty and, on quick testing, appears to work. You could also refine the loop to be a single query.</p>
<p>Hope it helps.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Martin		</title>
		<link>https://mikeindustries.com/blog/archive/2008/11/lazyweb-request-date-based-theme-switcher-for-wordpress#comment-39782</link>

		<dc:creator><![CDATA[Martin]]></dc:creator>
		<pubDate>Mon, 17 Nov 2008 16:56:28 +0000</pubDate>
		<guid isPermaLink="false">https://mikeindustries.com/blog/?p=494#comment-39782</guid>

					<description><![CDATA[Ok, it wasn&#039;t as simple as I would have hoped. I took a shot at modifying http://wordpress.org/extend/plugins/nkthemeswitch/ and ran into a problem. 
The theme is choosen before wordpress knows what post it&#039;s going to show.

Seems like the easiest approch is to use templates.. 
http://codex.wordpress.org/Tag_Templates
And tag all old post with &quot;old&quot; or something like that..]]></description>
			<content:encoded><![CDATA[<p>Ok, it wasn&#8217;t as simple as I would have hoped. I took a shot at modifying <a href="http://wordpress.org/extend/plugins/nkthemeswitch/" rel="nofollow ugc">http://wordpress.org/extend/plugins/nkthemeswitch/</a> and ran into a problem.<br />
The theme is choosen before wordpress knows what post it&#8217;s going to show.</p>
<p>Seems like the easiest approch is to use templates..<br />
<a href="http://codex.wordpress.org/Tag_Templates" rel="nofollow ugc">http://codex.wordpress.org/Tag_Templates</a><br />
And tag all old post with &#8220;old&#8221; or something like that..</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Chris		</title>
		<link>https://mikeindustries.com/blog/archive/2008/11/lazyweb-request-date-based-theme-switcher-for-wordpress#comment-39771</link>

		<dc:creator><![CDATA[Chris]]></dc:creator>
		<pubDate>Sun, 16 Nov 2008 14:26:14 +0000</pubDate>
		<guid isPermaLink="false">https://mikeindustries.com/blog/?p=494#comment-39771</guid>

					<description><![CDATA[Mike, I frequently update/refine the look of my blog but the content has changed over time. Earlier posts tended to be design related and often just silly/fun. More recently they have been about my landscape and wildlife photography. But I understand your dilemma.]]></description>
			<content:encoded><![CDATA[<p>Mike, I frequently update/refine the look of my blog but the content has changed over time. Earlier posts tended to be design related and often just silly/fun. More recently they have been about my landscape and wildlife photography. But I understand your dilemma.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: roj		</title>
		<link>https://mikeindustries.com/blog/archive/2008/11/lazyweb-request-date-based-theme-switcher-for-wordpress#comment-39769</link>

		<dc:creator><![CDATA[roj]]></dc:creator>
		<pubDate>Sun, 16 Nov 2008 13:02:26 +0000</pubDate>
		<guid isPermaLink="false">https://mikeindustries.com/blog/?p=494#comment-39769</guid>

					<description><![CDATA[On further thought there&#039;s probably a quicker way.

As I assume keeping the old design will be solely for individual pages you could set up a conditional in your single.php where before the cut-off date you load say old_design.php. In that file you then have the full page code (ie no separation of headers, footers and sidebars) and also have it calling the old_design.css.

It&#039;d be quicker to get up and running than all the hassle of creating a plugin given that you have template sitting ready to go &#038; just need to do a little copy &#038; pasting exercise + a single php conditional.]]></description>
			<content:encoded><![CDATA[<p>On further thought there&#8217;s probably a quicker way.</p>
<p>As I assume keeping the old design will be solely for individual pages you could set up a conditional in your single.php where before the cut-off date you load say old_design.php. In that file you then have the full page code (ie no separation of headers, footers and sidebars) and also have it calling the old_design.css.</p>
<p>It&#8217;d be quicker to get up and running than all the hassle of creating a plugin given that you have template sitting ready to go &amp; just need to do a little copy &amp; pasting exercise + a single php conditional.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: roj		</title>
		<link>https://mikeindustries.com/blog/archive/2008/11/lazyweb-request-date-based-theme-switcher-for-wordpress#comment-39767</link>

		<dc:creator><![CDATA[roj]]></dc:creator>
		<pubDate>Sun, 16 Nov 2008 12:17:41 +0000</pubDate>
		<guid isPermaLink="false">https://mikeindustries.com/blog/?p=494#comment-39767</guid>

					<description><![CDATA[Mike, at a quick glance it should be fairly straightforward to set up a plugin to assign themes to particular date ranges and both examples above could be used. 

Problems might be introduced through the central options set in the admin panel (settings &#038; widgets included). Not a huge problem depending on how different the design will be. Also, you could quickly get round these by hard coding most of them into the theme files anyway.]]></description>
			<content:encoded><![CDATA[<p>Mike, at a quick glance it should be fairly straightforward to set up a plugin to assign themes to particular date ranges and both examples above could be used. </p>
<p>Problems might be introduced through the central options set in the admin panel (settings &amp; widgets included). Not a huge problem depending on how different the design will be. Also, you could quickly get round these by hard coding most of them into the theme files anyway.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: milo		</title>
		<link>https://mikeindustries.com/blog/archive/2008/11/lazyweb-request-date-based-theme-switcher-for-wordpress#comment-39764</link>

		<dc:creator><![CDATA[milo]]></dc:creator>
		<pubDate>Sun, 16 Nov 2008 07:31:23 +0000</pubDate>
		<guid isPermaLink="false">https://mikeindustries.com/blog/?p=494#comment-39764</guid>

					<description><![CDATA[Another idea might be a php based style switcher, 
then based one the parameters modifying the &quot;if cause&quot; to change the CSS stylesheet according to years, months, weeks or whatever you like.]]></description>
			<content:encoded><![CDATA[<p>Another idea might be a php based style switcher,<br />
then based one the parameters modifying the &#8220;if cause&#8221; to change the CSS stylesheet according to years, months, weeks or whatever you like.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mike D.		</title>
		<link>https://mikeindustries.com/blog/archive/2008/11/lazyweb-request-date-based-theme-switcher-for-wordpress#comment-39763</link>

		<dc:creator><![CDATA[Mike D.]]></dc:creator>
		<pubDate>Sun, 16 Nov 2008 01:31:03 +0000</pubDate>
		<guid isPermaLink="false">https://mikeindustries.com/blog/?p=494#comment-39763</guid>

					<description><![CDATA[Daniel: This is a valid point, however, after about ten new entries in the new format, that consideration is greatly lessened (because the last ten entries will have the new design).

I think a lot of this decision comes down to &quot;how much do you like/hate your current design&quot;?  In a lot of redesigns, the designer has grown to hate the old design (or he&#039;s working with someone else&#039;s design so he already hates it). If this was the case for me, I might feel differently.  But I actually like my current design still.  Its shine has dulled a bit, but I can&#039;t say it bothers me at all.  The redesign would be more about adding functionality and better separating out different types of content.  It&#039;s driven a lot by the fact that these days I like to publish a lot of things that aren&#039;t really design or code related and I want a site that lets me publish all sorts of content without subjecting everybody to it who may only be interested in the design/code stuff.]]></description>
			<content:encoded><![CDATA[<p>Daniel: This is a valid point, however, after about ten new entries in the new format, that consideration is greatly lessened (because the last ten entries will have the new design).</p>
<p>I think a lot of this decision comes down to &#8220;how much do you like/hate your current design&#8221;?  In a lot of redesigns, the designer has grown to hate the old design (or he&#8217;s working with someone else&#8217;s design so he already hates it). If this was the case for me, I might feel differently.  But I actually like my current design still.  Its shine has dulled a bit, but I can&#8217;t say it bothers me at all.  The redesign would be more about adding functionality and better separating out different types of content.  It&#8217;s driven a lot by the fact that these days I like to publish a lot of things that aren&#8217;t really design or code related and I want a site that lets me publish all sorts of content without subjecting everybody to it who may only be interested in the design/code stuff.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Daniel Craig Jallits		</title>
		<link>https://mikeindustries.com/blog/archive/2008/11/lazyweb-request-date-based-theme-switcher-for-wordpress#comment-39762</link>

		<dc:creator><![CDATA[Daniel Craig Jallits]]></dc:creator>
		<pubDate>Sun, 16 Nov 2008 01:20:35 +0000</pubDate>
		<guid isPermaLink="false">https://mikeindustries.com/blog/?p=494#comment-39762</guid>

					<description><![CDATA[Although I see your point and agree with the visual context arguement , I think I have to disagree with this based on the following premise:

If a new reader landed on your homepage and saw version #3 of your site, they will sub-consciously indexed the branding to your site. Now let us say that they click a link in your Recent Entries section and the page that is served is styled as was in version #1 or version #2 of your site. This will be very misleading to a new reader, as there is inconsistency with your brand or your online identity.



. Site design is an all or nothing thing.  I would advocate looking at your current content and make design decisions early based on that. Of course this is a harder approach]]></description>
			<content:encoded><![CDATA[<p>Although I see your point and agree with the visual context arguement , I think I have to disagree with this based on the following premise:</p>
<p>If a new reader landed on your homepage and saw version #3 of your site, they will sub-consciously indexed the branding to your site. Now let us say that they click a link in your Recent Entries section and the page that is served is styled as was in version #1 or version #2 of your site. This will be very misleading to a new reader, as there is inconsistency with your brand or your online identity.</p>
<p>. Site design is an all or nothing thing.  I would advocate looking at your current content and make design decisions early based on that. Of course this is a harder approach</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mike D.		</title>
		<link>https://mikeindustries.com/blog/archive/2008/11/lazyweb-request-date-based-theme-switcher-for-wordpress#comment-39761</link>

		<dc:creator><![CDATA[Mike D.]]></dc:creator>
		<pubDate>Sun, 16 Nov 2008 00:53:08 +0000</pubDate>
		<guid isPermaLink="false">https://mikeindustries.com/blog/?p=494#comment-39761</guid>

					<description><![CDATA[Martin: Whoa, that might be the perfect tool for the job.  I even like its current functionality, because with it, you could develop a new theme that only you would see, and then when you&#039;re ready to flip it live, you could use the proposed added functionality to apply the theme only to new posts.

Very interesting.

I think I&#039;m going to either contact Nicolas and see if he wants to add that functionality in officially, or maybe I&#039;ll just hack it in myself and send it to him.  Thanks!]]></description>
			<content:encoded><![CDATA[<p>Martin: Whoa, that might be the perfect tool for the job.  I even like its current functionality, because with it, you could develop a new theme that only you would see, and then when you&#8217;re ready to flip it live, you could use the proposed added functionality to apply the theme only to new posts.</p>
<p>Very interesting.</p>
<p>I think I&#8217;m going to either contact Nicolas and see if he wants to add that functionality in officially, or maybe I&#8217;ll just hack it in myself and send it to him.  Thanks!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Martin		</title>
		<link>https://mikeindustries.com/blog/archive/2008/11/lazyweb-request-date-based-theme-switcher-for-wordpress#comment-39760</link>

		<dc:creator><![CDATA[Martin]]></dc:creator>
		<pubDate>Sun, 16 Nov 2008 00:44:47 +0000</pubDate>
		<guid isPermaLink="false">https://mikeindustries.com/blog/?p=494#comment-39760</guid>

					<description><![CDATA[A simple search and I found this: 
http://wordpress.org/extend/plugins/nkthemeswitch/

It should be VERY simple to change. 

Just replace
	if(current_user_can(get_option(&#039;nkthemeswitch_level&#039;))) {
With a check for postdate..]]></description>
			<content:encoded><![CDATA[<p>A simple search and I found this:<br />
<a href="http://wordpress.org/extend/plugins/nkthemeswitch/" rel="nofollow ugc">http://wordpress.org/extend/plugins/nkthemeswitch/</a></p>
<p>It should be VERY simple to change. </p>
<p>Just replace<br />
	if(current_user_can(get_option(&#8216;nkthemeswitch_level&#8217;))) {<br />
With a check for postdate..</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
