<?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 1.5 plug-in: view future posts</title>
	<atom:link href="http://www.figby.com/archives/2005/04/12/wordpress-15-plug-in-view-future-posts/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.figby.com/archives/2005/04/12/wordpress-15-plug-in-view-future-posts/</link>
	<description>A weblog by Michael Moncur</description>
	<lastBuildDate>Wed, 10 Mar 2010 07:02:49 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Mike B</title>
		<link>http://www.figby.com/archives/2005/04/12/wordpress-15-plug-in-view-future-posts/#comment-78112</link>
		<dc:creator>Mike B</dc:creator>
		<pubDate>Thu, 20 Sep 2007 13:29:11 +0000</pubDate>
		<guid isPermaLink="false">/?p=3455#comment-78112</guid>
		<description>&lt;p&gt;UPDATE:&lt;/p&gt;

&lt;p&gt;My previous comment didn&#039;t work for users who weren&#039;t logged in, because of the post_status = &#039;private&#039; parts. So, here&#039;s the new replacement line that works for everyone.&lt;/p&gt;

&lt;p&gt;$content = preg-replace(&quot;/post-status = &#039;publish&#039;/&quot;, &quot;post-status = &#039;publish&#039; OR post-status=&#039;future&#039;&quot;, $content);&lt;/p&gt;

&lt;p&gt;(remember these comments are filtered, so replace the -&#039;s with underscores).&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>UPDATE:</p>
<p>My previous comment didn&#8217;t work for users who weren&#8217;t logged in, because of the post_status = &#8216;private&#8217; parts. So, here&#8217;s the new replacement line that works for everyone.</p>
<p>$content = preg-replace(&#8221;/post-status = &#8216;publish&#8217;/&#8221;, &#8220;post-status = &#8216;publish&#8217; OR post-status=&#8217;future&#8217;&#8221;, $content);</p>
<p>(remember these comments are filtered, so replace the -&#8217;s with underscores).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike B</title>
		<link>http://www.figby.com/archives/2005/04/12/wordpress-15-plug-in-view-future-posts/#comment-77819</link>
		<dc:creator>Mike B</dc:creator>
		<pubDate>Wed, 19 Sep 2007 22:46:39 +0000</pubDate>
		<guid isPermaLink="false">/?p=3455#comment-77819</guid>
		<description>&lt;p&gt;For those of you using WP 2.1.2 (maybe 2.1+) this solution fixed the plugin for the site I&#039;m working on.&lt;/p&gt;

&lt;p&gt;REPLACE this line:
$content = preg_replace(...); &lt;/p&gt;

&lt;p&gt;with this line:
$content = preg&lt;em&gt;replace(&quot;/post&lt;/em&gt;status = &#039;publish&#039; OR post&lt;em&gt;status = &#039;private&#039;/&quot;, &quot;post&lt;/em&gt;status = &#039;publish&#039; OR post&lt;em&gt;status = &#039;private&#039; OR post&lt;/em&gt;status=&#039;future&#039;&quot;, $content);&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>For those of you using WP 2.1.2 (maybe 2.1+) this solution fixed the plugin for the site I&#8217;m working on.</p>
<p>REPLACE this line:<br />
$content = preg_replace(&#8230;); </p>
<p>with this line:<br />
$content = preg<em>replace(&#8221;/post</em>status = &#8216;publish&#8217; OR post<em>status = &#8216;private&#8217;/&#8221;, &#8220;post</em>status = &#8216;publish&#8217; OR post<em>status = &#8216;private&#8217; OR post</em>status=&#8217;future&#8217;&#8221;, $content);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zylstra</title>
		<link>http://www.figby.com/archives/2005/04/12/wordpress-15-plug-in-view-future-posts/#comment-11589</link>
		<dc:creator>zylstra</dc:creator>
		<pubDate>Wed, 18 Apr 2007 07:06:04 +0000</pubDate>
		<guid isPermaLink="false">/?p=3455#comment-11589</guid>
		<description>&lt;p&gt;I am using WP 2.1.2 and event calendar 3.1.0.  Has anyone updated this plugin?  I would love to use it.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I am using WP 2.1.2 and event calendar 3.1.0.  Has anyone updated this plugin?  I would love to use it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lotech</title>
		<link>http://www.figby.com/archives/2005/04/12/wordpress-15-plug-in-view-future-posts/#comment-2079</link>
		<dc:creator>lotech</dc:creator>
		<pubDate>Mon, 12 Feb 2007 02:31:09 +0000</pubDate>
		<guid isPermaLink="false">/?p=3455#comment-2079</guid>
		<description>&lt;p&gt;There seems to be some compatibility issues with Wordpress 2.1 (Ella) - from what I can tell the command to list posts from today backwards has changed and no long gets modified by the plugin to include ALL dates (future and past).&lt;/p&gt;

&lt;p&gt;Any one have a workaround, solution or update to the plugin? I&#039;m stumped.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>There seems to be some compatibility issues with Wordpress 2.1 (Ella) &#8211; from what I can tell the command to list posts from today backwards has changed and no long gets modified by the plugin to include ALL dates (future and past).</p>
<p>Any one have a workaround, solution or update to the plugin? I&#8217;m stumped.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roy</title>
		<link>http://www.figby.com/archives/2005/04/12/wordpress-15-plug-in-view-future-posts/#comment-2043</link>
		<dc:creator>Roy</dc:creator>
		<pubDate>Thu, 18 Jan 2007 20:33:34 +0000</pubDate>
		<guid isPermaLink="false">/?p=3455#comment-2043</guid>
		<description>&lt;p&gt;I just can&#039;t get this to work. I&#039;ve tried all the different code changes offered here, but I get an error at line 29 every time. I&#039;d like to make the values 0 and false, so that all future-dated posts show up on my home page and are viewable by everyone. But I just keep getting an error.&lt;/p&gt;

&lt;p&gt;Would anyone be willing to look at my site and tell me what I need to do? I&#039;d really love to use this plug-in, as it&#039;s the only one I&#039;ve found that does exactly what I want!  Thanks&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I just can&#8217;t get this to work. I&#8217;ve tried all the different code changes offered here, but I get an error at line 29 every time. I&#8217;d like to make the values 0 and false, so that all future-dated posts show up on my home page and are viewable by everyone. But I just keep getting an error.</p>
<p>Would anyone be willing to look at my site and tell me what I need to do? I&#8217;d really love to use this plug-in, as it&#8217;s the only one I&#8217;ve found that does exactly what I want!  Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yoel Natan</title>
		<link>http://www.figby.com/archives/2005/04/12/wordpress-15-plug-in-view-future-posts/#comment-2036</link>
		<dc:creator>Yoel Natan</dc:creator>
		<pubDate>Fri, 12 Jan 2007 22:20:43 +0000</pubDate>
		<guid isPermaLink="false">/?p=3455#comment-2036</guid>
		<description>&lt;p&gt;Thanks for this plug-in!&lt;/p&gt;

&lt;p&gt;To those who have been getting the SQL error, the fix is to change the line&lt;/p&gt;

&lt;p&gt;&lt;i&gt; $content = preg&lt;em&gt;replace(&quot;/AND post&lt;/em&gt;date_gmt &lt;= &#039;.+&#039;/&quot;, &quot;AND 1&quot;, $content);
&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;to&lt;/p&gt;

&lt;p&gt;&lt;i&gt; $content = preg&lt;em&gt;replace(&quot;/AND post&lt;/em&gt;date_gmt &lt;= &lt;b&gt;&#039;.+?&#039;&lt;/b&gt;/&quot;, &quot;AND 1&quot;, $content);&lt;/p&gt;

&lt;p&gt;Adding that question mark to the regular search expression prevents this plug-in from unintentionally removing large chunks of the SQL query conditionals generated by some versions of WordPress and/or other plug-ins.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks for this plug-in!</p>
<p>To those who have been getting the SQL error, the fix is to change the line</p>
<p><i> $content = preg<em>replace(&#8221;/AND post</em>date_gmt &lt;= &#8216;.+&#8217;/&#8221;, &#8220;AND 1&#8243;, $content);<br />
</i></p>
<p>to</p>
<p><i> $content = preg<em>replace(&#8221;/AND post</em>date_gmt &lt;= <b>&#8216;.+?&#8217;</b>/&#8221;, &#8220;AND 1&#8243;, $content);</i></p>
<p>Adding that question mark to the regular search expression prevents this plug-in from unintentionally removing large chunks of the SQL query conditionals generated by some versions of WordPress and/or other plug-ins.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://www.figby.com/archives/2005/04/12/wordpress-15-plug-in-view-future-posts/#comment-1993</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Thu, 30 Nov 2006 18:58:52 +0000</pubDate>
		<guid isPermaLink="false">/?p=3455#comment-1993</guid>
		<description>&lt;p&gt;sorry, the correct code should be&lt;/p&gt;

&lt;p&gt;$content = preg&lt;em&gt;replace(&quot;/AND post&lt;/em&gt;date_gmt &lt;= &#039;.+&#039;)/&quot;, &quot;&quot;, $content);&lt;/p&gt;

&lt;p&gt;note the escape &quot;&quot; before the newly added &quot;)&quot; in that expression&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>sorry, the correct code should be</p>
<p>$content = preg<em>replace(&#8221;/AND post</em>date_gmt &lt;= &#8216;.+&#8217;)/&#8221;, &#8220;&#8221;, $content);</p>
<p>note the escape &#8220;&#8221; before the newly added &#8220;)&#8221; in that expression</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://www.figby.com/archives/2005/04/12/wordpress-15-plug-in-view-future-posts/#comment-1992</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Thu, 30 Nov 2006 18:56:20 +0000</pubDate>
		<guid isPermaLink="false">/?p=3455#comment-1992</guid>
		<description>&lt;p&gt;for wordpress 2.0.x a simple change to the regex worked for me. Using the regex as it is in the plugin was leaving and extra misplaced &quot;)&quot; in the sql query which breaks everything. &lt;/p&gt;

&lt;p&gt;Change (line 29 in my copy)
[code]
$content = preg&lt;em&gt;replace(&quot;/AND post&lt;/em&gt;date_gmt &lt;= &#039;.+&#039;/&quot;, &quot;AND 1&quot;, $content);
[/code]&lt;/p&gt;

&lt;p&gt;to
[code]
$content = preg&lt;em&gt;replace(&quot;/AND post&lt;/em&gt;date_gmt &lt;= &#039;.+&#039;)/&quot;, &quot;AND 1&quot;, $content);
[/code]&lt;/p&gt;

&lt;p&gt;The replacement of the date string with &quot;AND 1&quot; (an always matched condition) seems a bit pointless to me as well. Why replace the date condition with and always matched condition when you can just remove the date condition? So, like so
[code]
$content = preg&lt;em&gt;replace(&quot;/AND post&lt;/em&gt;date_gmt &lt;= &#039;.+&#039;)/&quot;, &quot;&quot;, $content);
[/code]&lt;/p&gt;

&lt;p&gt;That also works for WP2.0.x, unless someone knows a good reason to have the &quot;AND 1&quot; in the SQL query?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>for wordpress 2.0.x a simple change to the regex worked for me. Using the regex as it is in the plugin was leaving and extra misplaced &#8220;)&#8221; in the sql query which breaks everything. </p>
<p>Change (line 29 in my copy)<br />
[code]<br />
$content = preg<em>replace("/AND post</em>date_gmt &lt;= '.+'/", "AND 1", $content);<br />
[/code]</p>
<p>to<br />
[code]<br />
$content = preg<em>replace("/AND post</em>date_gmt &lt;= '.+')/", "AND 1", $content);<br />
[/code]</p>
<p>The replacement of the date string with &#8220;AND 1&#8243; (an always matched condition) seems a bit pointless to me as well. Why replace the date condition with and always matched condition when you can just remove the date condition? So, like so<br />
[code]<br />
$content = preg<em>replace("/AND post</em>date_gmt &lt;= '.+')/", "", $content);<br />
[/code]</p>
<p>That also works for WP2.0.x, unless someone knows a good reason to have the &#8220;AND 1&#8243; in the SQL query?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Gunsaullus</title>
		<link>http://www.figby.com/archives/2005/04/12/wordpress-15-plug-in-view-future-posts/#comment-1934</link>
		<dc:creator>Scott Gunsaullus</dc:creator>
		<pubDate>Tue, 19 Sep 2006 20:16:24 +0000</pubDate>
		<guid isPermaLink="false">/?p=3455#comment-1934</guid>
		<description>&lt;p&gt;I have roughly the same parameters as Marcel, wp 2.0.4 and ec 3.0.4, $futureminlevel=0;&lt;/p&gt;

&lt;p&gt;My goal is to allow future events to be viewed by anyone, with emphasis on anonymous viewers and viewers who are not logged in.&lt;/p&gt;

&lt;p&gt;Something is missing.  The permalinks for future posts ARE NOT visible, even to registered users whose access level is &gt; X.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I have roughly the same parameters as Marcel, wp 2.0.4 and ec 3.0.4, $futureminlevel=0;</p>
<p>My goal is to allow future events to be viewed by anyone, with emphasis on anonymous viewers and viewers who are not logged in.</p>
<p>Something is missing.  The permalinks for future posts ARE NOT visible, even to registered users whose access level is &gt; X.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Calabrese</title>
		<link>http://www.figby.com/archives/2005/04/12/wordpress-15-plug-in-view-future-posts/#comment-1758</link>
		<dc:creator>Michael Calabrese</dc:creator>
		<pubDate>Thu, 06 Apr 2006 16:18:31 +0000</pubDate>
		<guid isPermaLink="false">/?p=3455#comment-1758</guid>
		<description>&lt;p&gt;It is now posted.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>It is now posted.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
