 |
boardom b2 message board
|
View previous topic :: View next topic |
Author |
Message |
Tommy2Net
Joined: 09 Aug 2004 Posts: 1 Location: Minneapolis, MN
|
Posted: Wed Aug 11, 2004 3:44 pm Post subject: Edit Time Stamp, hides future topics in Post/Edit section. |
|
|
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 |
|
 |
stevem
Joined: 15 Mar 2003 Posts: 357
|
Posted: Thu Aug 12, 2004 10:51 pm Post subject: |
|
|
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 |
|
 |
|
|
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
|