<?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: Block Comments after X days</title>
	<atom:link href="http://schinckel.net/2006/09/26/block-comments-after-x-days/feed/" rel="self" type="application/rss+xml" />
	<link>http://schinckel.net/2006/09/26/block-comments-after-x-days/</link>
	<description>Like a fortune cookie, only without the fortune, and not a cookie.</description>
	<pubDate>Sun, 07 Sep 2008 13:39:07 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Matthew Schinckel</title>
		<link>http://schinckel.net/2006/09/26/block-comments-after-x-days/#comment-1395</link>
		<dc:creator>Matthew Schinckel</dc:creator>
		<pubDate>Wed, 27 Sep 2006 07:27:36 +0000</pubDate>
		<guid isPermaLink="false">http://schinckel.blogsome.com/2006/09/26/block-comments-after-x-days/#comment-1395</guid>
		<description>My bad, I'll fix that up.  Thanks.</description>
		<content:encoded><![CDATA[<p>My bad, I&#8217;ll fix that up.  Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eugenia</title>
		<link>http://schinckel.net/2006/09/26/block-comments-after-x-days/#comment-1391</link>
		<dc:creator>Eugenia</dc:creator>
		<pubDate>Tue, 26 Sep 2006 20:30:10 +0000</pubDate>
		<guid isPermaLink="false">http://schinckel.blogsome.com/2006/09/26/block-comments-after-x-days/#comment-1391</guid>
		<description>Ok, I fixed it, it now works. I had to change the variable that you are reffering to as $diff, to $smarty.capture.diff

Thanks!</description>
		<content:encoded><![CDATA[<p>Ok, I fixed it, it now works. I had to change the variable that you are reffering to as $diff, to $smarty.capture.diff</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eugenia</title>
		<link>http://schinckel.net/2006/09/26/block-comments-after-x-days/#comment-1390</link>
		<dc:creator>Eugenia</dc:creator>
		<pubDate>Tue, 26 Sep 2006 20:07:32 +0000</pubDate>
		<guid isPermaLink="false">http://schinckel.blogsome.com/2006/09/26/block-comments-after-x-days/#comment-1390</guid>
		<description>The problem is that the $diff is simply not getting captured by the system! I tried the {$smarty.now-$smarty.capture.pdate} alone, and that works.  But when you try to capture that subtraction inside $diff, $diff stays empty! Any ideas?</description>
		<content:encoded><![CDATA[<p>The problem is that the $diff is simply not getting captured by the system! I tried the {$smarty.now-$smarty.capture.pdate} alone, and that works.  But when you try to capture that subtraction inside $diff, $diff stays empty! Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eugenia</title>
		<link>http://schinckel.net/2006/09/26/block-comments-after-x-days/#comment-1389</link>
		<dc:creator>Eugenia</dc:creator>
		<pubDate>Tue, 26 Sep 2006 19:52:18 +0000</pubDate>
		<guid isPermaLink="false">http://schinckel.blogsome.com/2006/09/26/block-comments-after-x-days/#comment-1389</guid>
		<description>Hi, I tried the code like this, and it doesn't work:

{capture name=pdate}{the_time d="U"}{/capture}
{capture name=diff}{$smarty.now-$smarty.capture.pdate}{/capture}
{if $diff/86400 &#62; 10}
    I'm sorry, Comments are now closed.
{elseif 'open' == $post-&#62;comment_status}
(the form code follows)

When I try {$diff/86400} the result is always 0. Did I miss something from your instructions? I don't think that the actual "X days = 60*60*24 seconds âˆ´ X days = 86400 seconds" is part of the smarty code, right?

Thanks.
</description>
		<content:encoded><![CDATA[<p>Hi, I tried the code like this, and it doesn&#8217;t work:</p>
<p>{capture name=pdate}{the_time d=&#8221;U&#8221;}{/capture}<br />
{capture name=diff}{$smarty.now-$smarty.capture.pdate}{/capture}<br />
{if $diff/86400 &gt; 10}<br />
    I&#8217;m sorry, Comments are now closed.<br />
{elseif &#8216;open&#8217; == $post-&gt;comment_status}<br />
(the form code follows)</p>
<p>When I try {$diff/86400} the result is always 0. Did I miss something from your instructions? I don&#8217;t think that the actual &#8220;X days = 60*60*24 seconds âˆ´ X days = 86400 seconds&#8221; is part of the smarty code, right?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
