make_thread_list($threads, $showAdminOptions); $page->set_title(html_escape("Forum")); $page->set_heading(html_escape("Forum")); $page->add_block(new Block("Forum", $html, "main", 10)); $this->display_paginator($page, "forum/index", null, $pageNumber, $totalPages); } public function display_new_thread_composer(Page $page, $threadText = null, $threadTitle = null) { global $config, $user; $max_characters = $config->get_int('forumMaxCharsPerPost'); $postUrl = make_link("forum/create"); $html = '
"; $blockTitle = "Write a new thread"; $page->set_title(html_escape($blockTitle)); $page->set_heading(html_escape($blockTitle)); $page->add_block(new Block($blockTitle, $html, "main", 20)); } public function display_new_post_composer(Page $page, $threadID) { global $config; $max_characters = $config->get_int('forumMaxCharsPerPost'); $postUrl = make_link("forum/answer"); $html = ' "; $blockTitle = "Answer to this thread"; $page->add_block(new Block($blockTitle, $html, "main", 30)); } public function display_thread($posts, $showAdminOptions, $threadTitle, $threadID, $pageNumber, $totalPages) { global $config, $page/*, $user*/; $theme_name = $config->get_string('theme'); $data_href = $config->get_string('base_href'); $base_href = $config->get_string('base_href'); $html = ""; $n = 0; $html = "| User". " | Message". " | 
|---|---|
| ".$user." ".
                ""."".$rank." ".$gravatar." | |
| ".autodate($post["date"])." | 
| Title". " | Author". " | Updated". " | Responses"; if($showAdminOptions) { $html .= " | Actions"; } $html .= " | 
|---|---|---|---|---|
| '.$sticky.''.$title."". ' | '.$thread["user_name"]."". " | ".autodate($thread["uptodate"])."". " | ".$thread["response_count"].""; if ($showAdminOptions) $html .= ' | Delete'; $html .= " |