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'); $html = make_form(make_link("forum/create")); if (!is_null($threadTitle)) { $threadTitle = html_escape($threadTitle); } if (!is_null($threadText)) { $threadText = html_escape($threadText); } $html .= "
| Title: | |
| Message: | |
| Max characters alowed: $max_characters. | |
| Message: | |
| Max characters alowed: $max_characters. | |
| User". " | Message". " | 
|---|---|
| ".$userLink." ".$rank." ".$gravatar." | ".autodate($post['date'])."  #".$post_number." ".$message." | 
| 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 .= " |