From 632ecb6d20a8830e10648ee061a0ca31c88f62eb Mon Sep 17 00:00:00 2001 From: slawkens Date: Tue, 8 Jun 2021 18:14:02 +0200 Subject: [PATCH] Fix forum table style (boards & thread view) --- system/pages/forum/show_board.php | 12 ++++++++++-- system/templates/forum.show_thread.html.twig | 4 ++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/system/pages/forum/show_board.php b/system/pages/forum/show_board.php index 2ead991d..2828f8f0 100644 --- a/system/pages/forum/show_board.php +++ b/system/pages/forum/show_board.php @@ -43,7 +43,15 @@ echo '

Page: '.$links_to_pages.'
'; $last_threads = $db->query("SELECT `players`.`id` as `player_id`, `players`.`name`, `" . FORUM_TABLE_PREFIX . "forum`.`post_text`, `" . FORUM_TABLE_PREFIX . "forum`.`post_topic`, `" . FORUM_TABLE_PREFIX . "forum`.`id`, `" . FORUM_TABLE_PREFIX . "forum`.`last_post`, `" . FORUM_TABLE_PREFIX . "forum`.`replies`, `" . FORUM_TABLE_PREFIX . "forum`.`views`, `" . FORUM_TABLE_PREFIX . "forum`.`post_date` FROM `players`, `" . FORUM_TABLE_PREFIX . "forum` WHERE `players`.`id` = `" . FORUM_TABLE_PREFIX . "forum`.`author_guid` AND `" . FORUM_TABLE_PREFIX . "forum`.`section` = ".(int) $section_id." AND `" . FORUM_TABLE_PREFIX . "forum`.`first_post` = `" . FORUM_TABLE_PREFIX . "forum`.`id` ORDER BY `" . FORUM_TABLE_PREFIX . "forum`.`last_post` DESC LIMIT ".$config['forum_threads_per_page']." OFFSET ".($_page * $config['forum_threads_per_page']))->fetchAll(); if(isset($last_threads[0])) { - echo ''; + echo '
ThreadThread StarterRepliesViewsLast Post
+ + + + + + +'; $player = new OTS_Player(); foreach($last_threads as $thread) @@ -83,4 +91,4 @@ if(isset($last_threads[0])) else echo '

No threads in this board.

'; -?> \ No newline at end of file +?> diff --git a/system/templates/forum.show_thread.html.twig b/system/templates/forum.show_thread.html.twig index ade8070a..f96d669f 100644 --- a/system/templates/forum.show_thread.html.twig +++ b/system/templates/forum.show_thread.html.twig @@ -12,8 +12,8 @@ Page: {{ links_to_pages|raw }}
-
+ThreadThread StarterRepliesViewsLast Post
- Author + + Author