Fjern nogle ting fra forum-layoutet default tip
authorJesper Kristensen
Sun, 30 Nov 2014 19:10:19 +0100
changeset 305 18d81f723d83
parent 304 1d454f368a6c
push id150
push usermail@jesperkristensen.dk
push dateSun, 30 Nov 2014 18:13:20 +0000
Fjern nogle ting fra forum-layoutet
phpbb/theme/mcs/template/forumlist_body.html
phpbb/theme/mcs/template/overall_header.html
phpbb/theme/mcs/template/posting_layout.html
phpbb/theme/mcs/template/viewforum_body.html
phpbb/theme/mcs/template/viewtopic_body.html
phpbb/theme/mcs/theme/phpbb.css
--- a/phpbb/theme/mcs/template/forumlist_body.html
+++ b/phpbb/theme/mcs/template/forumlist_body.html
@@ -5,47 +5,47 @@
 	<!-- ENDIF -->
 
 	<!-- IF forumrow.S_IS_CAT or forumrow.S_FIRST_ROW  or forumrow.S_NO_CAT  -->
 			<table class="normal-table forumlist">
 				<thead>
 					<tr>
 						<th class="forumname"><!-- IF forumrow.S_IS_CAT --><a href="{forumrow.U_VIEWFORUM}">{forumrow.FORUM_NAME}</a><!-- ELSE -->{L_FORUM}<!-- ENDIF --></th>
 						<td class="forum-state"></td>
-						<td class="topics">{L_TOPICS}</td>
+						<!--<td class="topics">{L_TOPICS}</td>-->
 						<td class="posts">{L_POSTS}</td>
-						<td class="lastpost">{L_LAST_POST}</td>
+						<!--<td class="lastpost">{L_LAST_POST}</td>-->
 					</tr>
 				</thead>
 				<tbody>
 	<!-- ENDIF -->
 
 	<!-- IF not forumrow.S_IS_CAT -->
 				<tr>
 					<th class="forumname" title="{forumrow.FORUM_FOLDER_IMG_ALT}">
 						<!-- IF forumrow.FORUM_IMAGE --><img class="row-image" src="{forumrow.FORUM_IMAGE_SRC}" alt="" /><!-- ENDIF -->
 						<div class="row-text">
 							<a href="{forumrow.U_VIEWFORUM}" class="forumtitle">{forumrow.FORUM_NAME}</a>
 							<div class="desc">{forumrow.FORUM_DESC}</div>
 							<!-- IF forumrow.SUBFORUMS and forumrow.S_LIST_SUBFORUMS --><div class="desc">{forumrow.L_SUBFORUM_STR} {forumrow.SUBFORUMS}</div><!-- ENDIF -->
 						</div>
 					</th>
 					<!-- IF forumrow.CLICKS -->
-						<td class="redirect" colspan="4">{L_REDIRECTS}: {forumrow.CLICKS}</td>
+						<td class="redirect" colspan="2">{L_REDIRECTS}: {forumrow.CLICKS}</td>
 					<!-- ELSEIF not forumrow.S_IS_LINK -->
 						<td class="forum-state">
 							<!-- IF forumrow.U_UNAPPROVED_TOPICS --><div><a href="{forumrow.U_UNAPPROVED_TOPICS}">{UNAPPROVED_IMG}</a></div><!-- ENDIF -->
 							<!-- IF forumrow.S_LOCKED_FORUM -->{L_FORUM_LOCKED}<!-- ELSEIF forumrow.S_UNREAD_FORUM -->{L_NEW_POSTS}<!-- ENDIF -->
 						</td>
-						<td class="topics">{forumrow.TOPICS}</td>
+						<!--<td class="topics">{forumrow.TOPICS}</td>-->
 						<td class="posts">{forumrow.POSTS}</td>
-						<td class="lastpost">
+						<!--<td class="lastpost">
 							<!-- IF forumrow.LAST_POST_TIME --><!-- IF not S_IS_BOT --><a href="{forumrow.U_LAST_POST}">{LAST_POST_IMG}</a> <!-- ENDIF -->{L_POST_BY_AUTHOR} {forumrow.LAST_POSTER_FULL}<div>{forumrow.LAST_POST_TIME}</div><!-- ELSE -->{L_NO_POSTS}<!-- ENDIF -->
-						</td>
-					<!-- ELSE --><td class="redirect" colspan="4"></td><!-- ENDIF -->
+						</td>-->
+					<!-- ELSE --><td class="redirect" colspan="2"></td><!-- ENDIF -->
 				</tr>
 	<!-- ENDIF -->
 
 	<!-- IF forumrow.S_LAST_ROW -->
 			</tbody></table>
 	<!-- ENDIF -->
 
 <!-- BEGINELSE -->
--- a/phpbb/theme/mcs/template/overall_header.html
+++ b/phpbb/theme/mcs/template/overall_header.html
@@ -107,19 +107,21 @@
       </a>
       <span id="sub-title">{SITE_DESCRIPTION}</span>
       <ul class="nav"><li><a href="#">Front page</a></li><li class="current"><a href="#">Forum</a></li><li><a href="#">Blog</a></li><li><a href="#">Wiki</a></li></ul>
     </div>
   </div>
   <div id="middle" class="doc">
     <div class="row">
 			<div id="content" class="section">
+				<!--
 				<div class="breadcrumbs">
 						<a href="{U_INDEX}" accesskey="h">{L_INDEX}</a> <!-- BEGIN navlinks --> <strong>&#8249;</strong> <a href="{navlinks.U_VIEW_FORUM}">{navlinks.FORUM_NAME}</a><!-- END navlinks -->
 				</div>
+				-->
 				<!-- IF S_BOARD_DISABLED and S_USER_LOGGED_IN and (U_MCP or U_ACP) --> 
 				<div id="information" class="rules">
 						<strong>{L_INFORMATION}:</strong> {L_BOARD_DISABLED}
 				</div>
 				<!-- ENDIF -->
 	<!-- IF S_USER_PM_POPUP and S_NEW_PM -->
 	<div id="pm-popup"><a href="{U_PRIVATEMSGS}">{L_YOU_NEW_PMS}</a></div>
 	<!-- ENDIF -->
--- a/phpbb/theme/mcs/template/posting_layout.html
+++ b/phpbb/theme/mcs/template/posting_layout.html
@@ -1,12 +1,12 @@
 <!-- INCLUDE overall_header.html -->
 
 <!-- IF TOPIC_TITLE -->
-	<h1>{L_POST_A}: <a href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a></h1>
+	<h1>{L_POST_A}: <a href="{U_VIEW_FORUM}">{FORUM_NAME}</a> &raquo; <a href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a></h1>
 <!-- ELSE -->
 	<h1>{L_POST_A}: <a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></h1>
  <!-- ENDIF -->
 
 <!-- IF S_FORUM_RULES -->
 	<div class="rules">
 		<!-- IF U_FORUM_RULES -->
 			<a href="{U_FORUM_RULES}">{L_FORUM_RULES}</a>
--- a/phpbb/theme/mcs/template/viewforum_body.html
+++ b/phpbb/theme/mcs/template/viewforum_body.html
@@ -86,17 +86,17 @@
 						{L_ANNOUNCEMENTS}
 					<!-- ELSE -->
 						{L_TOPICS}
 						<!-- IF TOTAL_TOPICS and not S_IS_BOT and U_MARK_TOPICS --><span class="desc"> - <a href="{U_MARK_TOPICS}">{L_MARK_TOPICS_READ}</a></span><!-- ENDIF -->
 					<!-- ENDIF -->
 				</th>
 				<td class="forum-state"></td>
 				<td class="posts">{L_REPLIES}</td>
-				<td class="views">{L_VIEWS}</td>
+				<!--<td class="views">{L_VIEWS}</td>-->
 				<td class="lastpost">{L_LAST_POST}</td>
 			</tr>
 	</thead>
 	<tbody>
 	<!-- ENDIF -->
 
 		<tr class="<!-- IF topicrow.S_TOPIC_REPORTED --> reported<!-- ENDIF --><!-- IF topicrow.S_TOPIC_MOVED --> moved<!-- ENDIF -->">
 			<th class="topictitle" title="{topicrow.TOPIC_FOLDER_IMG_ALT}">
@@ -115,17 +115,17 @@
 					<a href="{topicrow.U_NEWEST_POST}">
 						<img src="{T_IMAGESET_PATH}/icon_topic_newest.gif"
 							alt="{L_VIEW_NEWEST_POST}" title="{L_VIEW_NEWEST_POST}" />
 					</a>
 					{L_NEW_POSTS}
 				</div><!-- ENDIF -->
 			</td>
 			<td class="posts">{topicrow.REPLIES}</td>
-			<td class="views">{topicrow.VIEWS}</td>
+			<!--<td class="views">{topicrow.VIEWS}</td>-->
 			<td class="lastpost"><span <!-- IF topicrow.LAST_POST_TIME -->class="date"<!-- ENDIF -->><!-- IF not S_IS_BOT --><a href="{topicrow.U_LAST_POST}">{LAST_POST_IMG}</a> <!-- ENDIF --> {L_POST_BY_AUTHOR} {topicrow.LAST_POST_AUTHOR_FULL}<br />{topicrow.LAST_POST_TIME}</span></td>
 		</tr>
 
 	<!-- IF topicrow.S_LAST_ROW -->
 			</tbody></table>
 	<!-- ENDIF -->
 
 <!-- BEGINELSE -->
--- a/phpbb/theme/mcs/template/viewtopic_body.html
+++ b/phpbb/theme/mcs/template/viewtopic_body.html
@@ -1,24 +1,23 @@
 <!-- INCLUDE overall_header.html -->
 
-<h1><a href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a></h1>
-
 <!-- IF MODERATORS -->
 	<div class="foruminfo">
 		<strong><!-- IF S_SINGLE_MODERATOR -->{L_MODERATOR}<!-- ELSE -->{L_MODERATORS}<!-- ENDIF -->:</strong> {MODERATORS}
 	</div>
 <!-- ENDIF -->
 
 <!-- IF S_FORUM_RULES and not U_FORUM_RULES -->
 	<div class="rules">{FORUM_RULES}</div>
 <!-- ENDIF -->
 
-<div class="display-actions">
+<div class="display-actions viewtopic-top">
 
+<!--
 	<div class="buttons">
 		<!-- IF PREVIOUS_PAGE --><a href="{PREVIOUS_PAGE}" class="image-button">{L_PREVIOUS}</a><!-- ENDIF -->
 	<!-- IF not S_IS_BOT and S_DISPLAY_REPLY_INFO -->
 		<a href="{U_POST_REPLY_TOPIC}" title="<!-- IF S_IS_LOCKED -->{L_TOPIC_LOCKED}<!-- ELSE -->{L_POST_REPLY}<!-- ENDIF -->"<!-- IF not S_IS_LOCKED --> class="image-button"<!-- ENDIF -->><!-- IF S_IS_LOCKED -->{L_TOPIC_LOCKED_SHORT}<!-- ELSE -->{L_POST_REPLY}<!-- ENDIF --></a>
 	<!-- ENDIF -->
 	</div>
 
 	<!-- IF S_DISPLAY_SEARCHBOX -->
@@ -27,26 +26,29 @@
 			<fieldset>
 				<input  type="text" name="keywords" id="search_keywords" size="20" value="{L_SEARCH_TOPIC}" onclick="if(this.value=='{LA_SEARCH_TOPIC}')this.value='';" onblur="if(this.value=='')this.value='{LA_SEARCH_TOPIC}';" />
 				<input type="submit" value="{L_SEARCH}" />
 				{S_SEARCH_LOCAL_HIDDEN_FIELDS}
 			</fieldset>
 			</form>
 		</div>
 	<!-- ENDIF -->
+-->
 
 <!-- IF S_FORUM_RULES and U_FORUM_RULES -->
 	<div class="other"><a href="{U_FORUM_RULES}"><strong>{L_FORUM_RULES}</strong></a></div>
 <!-- ENDIF -->
 
 	<!-- DEFINE $TOTAL = '{TOTAL_POSTS}' -->
 	<!-- INCLUDE pagination.html -->
-    <div class="display-actions-end"></div>
+    <!--<div class="display-actions-end"></div>-->
 </div>
 
+<h1 class="viewtopic-header"><a href="{U_VIEW_FORUM}">{FORUM_NAME}</a> &raquo; <a href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a></h1>
+
 <!-- BEGIN postrow -->
 	<!-- IF postrow.S_FIRST_UNREAD --><a id="unread"></a><!-- ENDIF -->
 	<div id="p{postrow.POST_ID}" class="post<!-- IF postrow.S_UNREAD_POST --> unreadpost<!-- ENDIF --><!-- IF postrow.S_POST_REPORTED --> reported<!-- ENDIF -->">
 
 <!-- IF S_HAS_POLL and postrow.S_FIRST_ROW -->
 	<form method="post" action="{S_POLL_ACTION}" class="pollform">
 		<div class="panel viewpoll<!-- IF S_DISPLAY_RESULTS --> withresults<!-- ENDIF -->">
 			<p class="question">{POLL_QUESTION}</p>
--- a/phpbb/theme/mcs/theme/phpbb.css
+++ b/phpbb/theme/mcs/theme/phpbb.css
@@ -73,17 +73,18 @@
   text-align: center;
 }
 
 #content table.normal-table tbody tr th {
   padding-left: 15px;
 }
 
 #content table.normal-table tr td.topics { width: 100px; }
-#content table.normal-table tr td.posts { width: 100px; }
+#content table.normal-table.forumlist tr td.posts { width: 200px; }
+#content table.normal-table tr td.posts { width: 120px; }
 #content table.normal-table tr td.lastpost { width: 200px; }
 #content table.normal-table tr td.views { width: 100px; }
 #content table.normal-table tr td.mark-col { width: 80px; }
 #content table.normal-table tr td.ucp-pmrule-action { width: 250px; }
 #content table.normal-table tr td.ucp-pmrule-button { width: 200px; }
 #content table.normal-table tr td.date { width: 200px; }
 #content table.normal-table tr td.group-default { width: 150px; }
 #content table.normal-table tr td.members-forums { width: 200px; }
@@ -134,17 +135,16 @@
 }
 
 #content table.normal-table tr td.lastpost {
   font-weight: normal;
   text-align: left;
 }
 
 #content table.normal-table tr td.lastpost a {
-  font-weight: bold;
   text-decoration: none;
 }
 
 #content table.normal-table thead tr td {
   color: #666;
 }
 
 #content {
@@ -220,16 +220,20 @@
 }
 
 #content .display-actions .pagination {
   float: right;
   vertical-align: middle;
   line-height: 40px;
 }
 
+#content .display-actions.viewtopic-top .pagination {
+  margin-left: 2em;
+}
+
 #content .display-actions .buttons {
   float: left;
   vertical-align: middle;
   line-height: 40px;
 }
 
 #content .display-actions .other {
   float: left;
@@ -742,11 +746,15 @@ a.image-button, input.image-button {
 #content .post.post-ignore.post-ignore-shown .postbody {
   display: block;
 }
 
 #content .post.post-ignore.post-ignore-shown .ignore-msg {
   display: none;
 }
 
+.viewtopic-header {
+  margin-bottom: 5px;
+}
+
 #content table.normal-table tr.moved * {
   color: #999 !important;
 }