<?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>Tue, 07 Feb 2012 09:19:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
	<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[UPDATE:

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.

$content = preg-replace(&#8220;/post-status = &#8216;publish&#8217;/&#8221;, &#8220;post-status = &#8216;publish&#8217; OR post-status=&#8217;future&#8217;&#8221;, $content);

(remember these comments are filtered, so replace the -&#8217;s with underscores).]]></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[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.

REPLACE this line:
$content = preg_replace(&#8230;); 

with this line:
$content = preg<em>replace(&#8220;/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);]]></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[I am using WP 2.1.2 and event calendar 3.1.0.  Has anyone updated this plugin?  I would love to use it.]]></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[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).

Any one have a workaround, solution or update to the plugin? I&#8217;m stumped.]]></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[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.

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]]></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[Thanks for this plug-in!

To those who have been getting the SQL error, the fix is to change the line

<i> $content = preg<em>replace(&#8220;/AND post</em>date_gmt &lt;= &#8216;.+&#8217;/&#8221;, &#8220;AND 1&#8243;, $content);
</i>

to

<i> $content = preg<em>replace(&#8220;/AND post</em>date_gmt &lt;= <b>&#8216;.+?&#8217;</b>/&#8221;, &#8220;AND 1&#8243;, $content);

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.</i>]]></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[sorry, the correct code should be

$content = preg<em>replace(&#8220;/AND post</em>date_gmt &lt;= &#8216;.+&#8217;)/&#8221;, &#8220;&#8221;, $content);

note the escape &#8220;&#8221; before the newly added &#8220;)&#8221; in that expression]]></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[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. 

Change (line 29 in my copy)
[code]
$content = preg<em>replace("/AND post</em>date_gmt &lt;= '.+'/", "AND 1", $content);
[/code]

to
[code]
$content = preg<em>replace("/AND post</em>date_gmt &lt;= '.+')/", "AND 1", $content);
[/code]

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
[code]
$content = preg<em>replace("/AND post</em>date_gmt &lt;= '.+')/", "", $content);
[/code]

That also works for WP2.0.x, unless someone knows a good reason to have the &#8220;AND 1&#8243; in the SQL query?]]></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[I have roughly the same parameters as Marcel, wp 2.0.4 and ec 3.0.4, $futureminlevel=0;

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

Something is missing.  The permalinks for future posts ARE NOT visible, even to registered users whose access level is &gt; X.]]></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[It is now posted.]]></content:encoded>
	</item>
</channel>
</rss>

