{php} global $phpsns; $this->assign('show_new_posts', $phpsns['show_new_posts']); if ($phpsns['show_new_posts']) { $FORUM = new LWForum(); $SelectForum = new LWForumSelectForum(); $this->assign('forum_jump', $SelectForum->forum_jump()); switch ($phpsns['new_posts_type']) { case "1": // new posts $this->assign('new_posts', $FORUM->new_posts("", "ORDER BY `update` DESC", "LIMIT {$phpsns['new_posts_rows']}")); break; case "2": // New topics $this->assign('new_posts', $FORUM->new_posts("", "ORDER BY `time` DESC", "LIMIT {$phpsns['new_posts_rows']}")); break; case "3": // new replies $this->assign('new_posts', $FORUM->new_posts("WHERE `total_replies` > 0", "ORDER BY `update` DESC", "LIMIT {$phpsns['new_posts_rows']}")); break; } } {/php} {if ($show_new_posts)}
NEW FORUM POSTS

{$forum_jump|html_entity_decode}
{$new_posts|html_entity_decode}
[ View More ]
{/if}