boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Edit Time Stamp, hides future topics in Post/Edit section.

 
Post new topic   Reply to topic    boardom Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
Tommy2Net



Joined: 09 Aug 2004
Posts: 1
Location: Minneapolis, MN

PostPosted: Wed Aug 11, 2004 3:44 pm    Post subject: Edit Time Stamp, hides future topics in Post/Edit section. Reply with quote

I use B2 for News Content. So I post the news ahead of time and the 'edit time stamp' makes it appear at the correct time. In the past this worked great, as I could have multiple users login, edit and add to my posts.

I just changed providers and now when I check the box, whatever in the future doesn't appear in the Post/Edit page until it appears 'live' on the page. In other words, it's as if it was never put there. It literally mirrors what is seen on the site. Did I miss an option when transferring the site, or does anyone know how I can fix it. So when I do 'Edit Time Stamp' that I can view the future topics in the Post/Edit section.
Back to top
View user's profile Send private message Visit poster's website AIM Address
stevem



Joined: 15 Mar 2003
Posts: 357

PostPosted: Thu Aug 12, 2004 10:51 pm    Post subject: Reply with quote

Showing future posts in Edit but not in the blog is decided by the following code in blog.header.php
Code:
$now = date('Y-m-d H:i:s',(time() + ($time_difference * 3600)));

if ($pagenow != 'b2edit.php') {
   if ((empty($poststart)) || (empty($postend)) || !($postend > $poststart)) {
      $where .= ' AND post_date <= \''.$now.'\'';
   }
   $where .= ' AND post_category > 0';
   $distinct = 'DISTINCT';
   if ($use_gzipcompression) {
      // gzipping the output of the script
      gzip_compression();
   }
}

which basically says that if the current page is not b2edit.php then only show posts before $now. If the line
Code:
 if ($pagenow != 'b2edit.php')
(plus brackets) is missing or altered, or if the edit page is not called b2edit.php, then that could be the cause.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> Bugs All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2 © 2001, 2002 phpBB Group