<div>so funny...I am also looking at this issue yesterday.</div>
<div> </div>
<div>you are right that correct implementing `future_post` features is different from the current implementation, i.e. future_post_in_calendar</div>
<div> </div>
<div>at least, you need to protect the future post if user don't want to display.</div>
<div> </div>
<div>besides, you might also need to take care of the RSS, personally I believe RSS shouldn't allow future post anyway?</div>
<div> </div>
<div> </div>
<div> </div>
<div><span class="gmail_quote">On 9/4/07, <b class="gmail_sendername">Jon Daley</b> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:plogworld@jon.limedaley.com" target="_blank">plogworld@jon.limedaley.com
</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"> Hrm. I don't think it is working. I define working as when I set<br>future_posts to true, I expected to see it on the main page. Perhaps it
<br>should *only* show up in the calendar, and since I am not using a<br>calendar, future_posts doesn't do anything?<br><br> If I type in the URL to the future post directly, it is visible no<br>matter what the future_post setting is. I'd expect it to be inaccessible
<br>if future_posts is set to 0.<br><br> If I type in the URL to the whole month, I do see the future<br>article only when the future_posts is set.<br><br>The below queries are what happen (in getBlogArticles) when viewing the
<br>main page, since date == -1, the max timestamp is always set regardless of<br>the future_posts setting.<br><br>SELECT <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://a.id/" target="_blank">a.id</a>
as id, <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://a.id/" target="_blank">a.id</a>, a.date,<br>a.user_id,a.blog_id ,a.status,a.properties, a.num_reads, a.slug, 1 AS<br>relevance, a.num_comments
AS num_comments, a.num_nonspam_comments AS<br>num_nonspam_comments, a.num_trackbacks AS num_trackbacks,<br>a.num_nonspam_trackbacks AS num_nonspam_trackbacks, a.global_category_id<br>AS global_category_id, a.in_summary_page
AS in_summary_page,<br>a.modification_date AS modification_date<br><br>FROM plog_articles a, plog_articles_categories c, plog_article_categories_link l<br><br>WHERE a.blog_id = 1 AND<br> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://c.id/" target="_blank">
c.id</a> = l.category_id AND<br> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://a.id/" target="_blank">a.id</a> = l.article_id AND<br> c.in_main_page = 1 AND<br> a.status = '1' AND<br>
a.date <= '20070904063616' <br><br>GROUP BY <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://a.id/" target="_blank">a.id</a><br><br>ORDER BY a.date DESC LIMIT 0, 15<br><br><br><br>SELECT <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://a.id/" target="_blank">
a.id</a> as id, <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://a.id/" target="_blank">a.id</a>, a.date, a.user_id,a.blog_id,a.status,a.properties , a.num_reads, a.slug, 1 AS<br>relevance, a.num_comments
AS num_comments, a.num_nonspam_comments AS<br>num_nonspam_comments, a.num_trackbacks AS num_trackbacks,<br>a.num_nonspam_trackbacks AS num_nonspam_trackbacks, a.global_category_id <br>AS global_category_id, a.in_summary_page
AS in_summary_page,<br>a.modification_date AS modification_date<br><br>FROM plog_articles a, plog_articles_categories c, plog_article_categories_link l<br><br>WHERE a.blog_id = 1 AND <br> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://c.id/" target="_blank">
c.id</a> = l.category_id AND<br> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://a.id/" target="_blank">a.id</a> = l.article_id AND<br> c.in_main_page = 1 AND<br> a.status = '1' AND
<br> a.date <= '20070904063616' <br><br>GROUP BY <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://a.id/" target="_blank">a.id</a><br><br>ORDER BY a.date DESC LIMIT 10;<br><br><br>On Tue, 4 Sep 2007, Jon Daley wrote:
<br><br>> I am using it a bit more in an API way, so I wouldn't be too<br>> surprised if "regular" people aren't seeing it. I'll play around with it <br>> some more. (commenting out the this->_date part works for me for now)
<br>><br>> On Tue, 4 Sep 2007, Oscar Renalias wrote:<br>><br>>> I have to say that I don't remember, but I think that this has also <br>>> been working fine so far... (at least no one reported an issue with
<br>>> this)<br>>><br>>> On 9/4/07, Jon Daley <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:plogworld@jon.limedaley.com" target="_blank">plogworld@jon.limedaley.com</a> > wrote:
<br>>>> This code seems to be wrong, but I see that it hasn't been changed<br>>>> in forever.<br>>>><br>>>> scenario: show_future_posts_in_calendar is set to 1.<br>>>>
<br>>>> If no date is set in the request, then the maxDate is set, so then future<br>>>> articles won't be shown.<br>>>><br>>>> If the date is set in the request, then the maxDate is not set, and the
<br>>>> query succeeds.<br>>>><br>>>> Is this the desired behavior?<br>>>><br>>>> class/action/defaultaction.class.php::<br>>>> if(($blogSettings->getValue('show_future_posts_in_calendar')) &&
<br>>>> ($this->_date > -1)){<br>>>> // if posts in the future are to be shown, we shouldn't set a maximum date<br>>>> $todayTimestamp = 0;<br>>>> }<br>>>>
<br>>>><br>>>><br>>>> I would have expected the this->_date to not be taken into account when<br>>>> deciding whether to show future posts or not.<br>>>> _______________________________________________
<br>>>> pLog-svn mailing list<br>>>> <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:pLog-svn@devel.lifetype.net" target="_blank">pLog-svn@devel.lifetype.net</a><br>>>> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://limedaley.com/mailman/listinfo/plog-svn" target="_blank">
http://limedaley.com/mailman/listinfo/plog-svn </a><br>>>><br>>> _______________________________________________<br>>> pLog-svn mailing list<br>>> <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:pLog-svn@devel.lifetype.net" target="_blank">
pLog-svn@devel.lifetype.net</a><br>>> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://limedaley.com/mailman/listinfo/plog-svn" target="_blank">http://limedaley.com/mailman/listinfo/plog-svn</a>
<br>>><br>><br>> --<br>> Jon Daley<br>> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://jon.limedaley.com/" target="_blank">http://jon.limedaley.com/</a><br>><br>> Atheism is a non-prophet organization
<br>> _______________________________________________<br>> pLog-svn mailing list<br>> <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:pLog-svn@devel.lifetype.net" target="_blank">pLog-svn@devel.lifetype.net
</a><br>> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://limedaley.com/mailman/listinfo/plog-svn" target="_blank">http://limedaley.com/mailman/listinfo/plog-svn</a><br>><br><br>--<br>Jon Daley
<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://jon.limedaley.com/" target="_blank">http://jon.limedaley.com/</a><br><br>This is a test of the Emergency Broadcast System.<br>If this had been an actual emergency,
<br> do you really think we'd stick around to tell you?<br>_______________________________________________<br>pLog-svn mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:pLog-svn@devel.lifetype.net" target="_blank">
pLog-svn@devel.lifetype.net</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://limedaley.com/mailman/listinfo/plog-svn" target="_blank">http://limedaley.com/mailman/listinfo/plog-svn</a><br></blockquote>
</div><br><br clear="all"><br>-- <br>Best Regards,<br>tszming