Moderator: Integra Moderator
$sql = 'SELECT c.cat_order, f.forum_order, f.forum_name, t.topic_views, t.topic_replies, t.topic_title, u.username, p. * , pt. * ' . ' FROM ' . CATEGORIES_TABLE . ' c, ' . FORUMS_TABLE . ' f, ' . TOPICS_TABLE . ' t, ' . USERS_TABLE . ' u, ' . POSTS_TABLE . ' p, ' . POSTS_TEXT_TABLE . ' pt' . ' WHERE c.cat_id = f.cat_id AND f.forum_id = t.forum_id AND t.topic_id = p.topic_id AND p.poster_id = u.user_id AND p.post_id = pt.post_id AND t.topic_status <> 2 ' . $filter_users . $post_time . $auth_forums . ' AND t.topic_time <= '.time() . ' ORDER BY c.cat_order, f.forum_order, p.post_time ASC';
"Dioncecht";p="13570" wrote:Does that particular time function also look at the date?
$sql = 'SELECT c.cat_order, f.forum_order, f.forum_name, t.topic_views, t.topic_replies, t.topic_title, u.username, p. * , pt. * ' . ' FROM ' . CATEGORIES_TABLE . ' c, ' . FORUMS_TABLE . ' f, ' . TOPICS_TABLE . ' t, ' . USERS_TABLE . ' u, ' . POSTS_TABLE . ' p, ' . POSTS_TEXT_TABLE . ' pt' . ' WHERE c.cat_id = f.cat_id AND f.forum_id = t.forum_id AND t.topic_id = p.topic_id AND p.poster_id = u.user_id AND p.post_id = pt.post_id AND t.topic_status <> 2 ' . $filter_users . $post_time . $auth_forums . ' AND t.topic_time <= '.time() . ' ORDER BY c.cat_order, f.forum_order, p.post_time ASC';
// Filter to hide future posts by delayed topics $topics_till_now = " AND t.topic_time <= " . $current_time; $sql = 'SELECT c.cat_order, f.forum_order, f.forum_name, t.topic_views, t.topic_replies, t.topic_title, u.username, p. * , pt. * ' . ' FROM ' . CATEGORIES_TABLE . ' c, ' . FORUMS_TABLE . ' f, ' . TOPICS_TABLE . ' t, ' . USERS_TABLE . ' u, ' . POSTS_TABLE . ' p, ' . POSTS_TEXT_TABLE . ' pt' . ' WHERE c.cat_id = f.cat_id AND f.forum_id = t.forum_id AND t.topic_id = p.topic_id AND p.poster_id = u.user_id AND p.post_id = pt.post_id AND t.topic_status <> 2 ' . $filter_users . $post_time . $auth_forums . $topics_till_now . ' ORDER BY c.cat_order, f.forum_order, p.post_time ASC';
Registered users: App360MonitorBot, Bing [Bot], Majestic-12 [Bot]