參考連結:http://phpbb-tw.net/phpbb/viewtopic.php ... essage+MOD
使用版本:phpBB 2.0.10
網站位置:http://mcj0919.why3s.org/phpbb/index.php
狀況描述:
其實這也不是外掛問題,我只是想知道如何把看板的版面變的比較好看點~~
請問要如何將這紅框裡的橫條
變成這一條呢?
還有就是要怎麼把版面拉寬~~
我知道要去改index_body.tpl跟overall_header.tpl,只是我還不太知道怎麼改= =?
下面是我改過的index_body.tpl跟overall_header.tpl,請各位大大可以幫我看一下嗎?(紅字是我加進去的~~)
這篇是index_body.tpl
代碼: 選擇全部
<table border="0" cellpadding="0" cellspacing="0" class="tbn">
<tr>
<td class="tbnl" rowspan="3"><img src="images/spacer.gif" alt="" width="76" height="39" /></td>
<td height="17" align="right" colspan="2"><span class="nav"><a href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a></td>
</tr>
<td class="tbnbot">
<span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span></td>
</td>
<td class="tbnr"><img src="images/spacer.gif" alt="" width="39" height="22" /></td>
</tr>
</table>
<br />
[color=red]<!-- BEGIN switch_enable_board_msg_index -->
<center>
<table border="0" class="forumline">
<tr>
<th colspan="3" class="thCornerL" height="25" nowrap="nowrap"> {L_BOARD_MSG} </th>
\n </tr>
<tr>
<td class="row1"><img src="{BOARD_MSG_IMG}" /></td>
<td class="row1"><span class="gen">{BOARD_MSG}</a></span></td>
<td class="row1"><img src="{BOARD_MSG_IMG}" /></td>
</tr>
</table>
<br />
</center>
<!-- END switch_enable_board_msg_index -->[/color]
<table width="100%" cellspacing="1" cellpadding="2" border="0" align="center">
<tr>
<td align="left" valign="bottom"><span class="gensmall">
<!-- BEGIN switch_user_logged_in -->
{LAST_VISIT_DATE}<br />
<!-- END switch_user_logged_in -->
{CURRENT_TIME}<br />{S_TIMEZONE}</span></td>
<td align="right" valign="bottom" class="gensmall">
<!-- BEGIN switch_user_logged_in -->
<a href="{U_SEARCH_NEW}" class="gensmall">{L_SEARCH_NEW}</a><br /><a href="{U_SEARCH_SELF}" class="gensmall">{L_SEARCH_SELF}</a><br />
<!-- END switch_user_logged_in -->
<a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a></td>
</tr>
</table>
<!-- BEGIN catrow -->
<table border="0" cellpadding="0" cellspacing="0" class="tbt"><tr><td class="tbtl"><img src="images/spacer.gif" alt="" width="22" height="22" /></td><td class="tbtbot"><b></b><span class="gen"><a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></span></td><td class="tbtr"><img src="images/spacer.gif" alt="" width="124" height="22" /></td></tr></table>
<table width="100%" cellpadding="0" cellspacing="1" border="0" class="forumline">
<tr>
<th colspan="2" height="22" nowrap="nowrap"> {L_FORUM} </th>
<th width="50" nowrap="nowrap"> {L_TOPICS} </th>
<th width="50" nowrap="nowrap"> {L_POSTS} </th>
<th nowrap="nowrap"> {L_LASTPOST} </th>
</tr>
<!-- BEGIN forumrow -->
<tr>
<td class="row1" align="center" valign="middle"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
<td class="row1" width="100%"><span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br />
</span> <span class="genmed">{catrow.forumrow.FORUM_DESC}<br />
</span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>
<td class="row1" align="center" valign="middle"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
<td class="row1" align="center" valign="middle"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
<td class="row1" width="160" align="center" valign="middle" nowrap="nowrap"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
</tr>
<!-- END forumrow -->
</table>
<table border="0" cellpadding="0" cellspacing="0" class="tbl"><tr><td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td><td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td><td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td></tr></table>
<br />
<!-- END catrow -->
<table border="0" cellpadding="0" cellspacing="0" class="tbt"><tr><td class="tbtl"><img src="images/spacer.gif" alt="" width="22" height="22" /></td><td class="tbtbot"><span class="gen"><a href="{U_VIEWONLINE}" class="cattitle">{L_WHO_IS_ONLINE}</a></span></td><td class="tbtr"><img src="images/spacer.gif" alt="" width="124" height="22" /></td></tr></table>
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td class="row1" align="center" valign="middle" rowspan="2"><img src="templates/iCGstation/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
<td class="row1" align="left" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />{TOTAL_USERS}<br />{NEWEST_USER}</span>
</td>
</tr>
<tr>
<td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE} [ {L_WHOSONLINE_ADMIN} ] [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}</span></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" class="tbl"><tr><td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td><td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td><td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td></tr></table>
<table width="100%" cellpadding="1" cellspacing="1" border="0">
<tr>
<td align="left" valign="top"><span class="gensmall">{L_ONLINE_EXPLAIN}</span></td>
</tr>
</table>
<!-- BEGIN switch_user_logged_out -->
<form method="post" action="{S_LOGIN_ACTION}">
<table border="0" cellpadding="0" cellspacing="0" class="tbt"><tr><td class="tbtl"><img src="images/spacer.gif" alt="" width="22" height="22" /></td><td class="tbtbot"><img src="images/spacer.gif" alt="" width="8" height="22" /></td><td class="tbtr"><img src="images/spacer.gif" alt="" width="124" height="22" /></td></tr></table>
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td class="cat" height="28"><a name="login"></a><span class="cattitle">{L_LOGIN_LOGOUT}</span></td>
</tr>
<tr>
<td class="row1" align="center" valign="middle" height="28"><span class="gensmall">{L_USERNAME}:
<input class="post" type="text" name="username" size="10" />
{L_PASSWORD}:
<input class="post" type="password" name="password" size="10" maxlength="32" />
{L_AUTO_LOGIN}
<input class="text" type="checkbox" name="autologin" />
<input type="submit" class="mainoption" name="login" value="{L_LOGIN}" />
</span> </td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" class="tbl"><tr><td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td><td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td><td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td></tr></table>
</form>
<!-- END switch_user_logged_out -->
<br clear="all" />
<table cellspacing="3" border="0" align="center" cellpadding="0">
<tr>
<td width="20" align="center"><img src="templates/iCGstation/images/folder_new_big.gif" alt="{L_NEW_POSTS}"/></td>
<td><span class="gensmall">{L_NEW_POSTS}</span></td>
<td> </td>
<td width="20" align="center"><img src="templates/iCGstation/images/folder_big.gif" alt="{L_NO_NEW_POSTS}" /></td>
<td><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
<td> </td>
<td width="20" align="center"><img src="templates/iCGstation/images/folder_locked_big.gif" alt="{L_FORUM_LOCKED}" /></td>
<td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
</tr>
</table>代碼: 選擇全部
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{S_CONTENT_DIRECTION}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}">
<meta http-equiv="Content-Style-Type" content="text/css">
{META}
{NAV_LINKS}
<title>{SITENAME} :: {PAGE_TITLE}</title>
<link rel="stylesheet" href="templates/iCGstation/{T_HEAD_STYLESHEET}" type="text/css" -->
<STYLE>
<!--
Rainbow Text- By Chris Rickard (chris.rickard@paccoast.com)
-->
.rainbow{ behavior:url(rainbow.htc) }
</STYLE>
<!-- BEGIN switch_enable_pm_popup -->
<script language="Javascript" type="text/javascript">
<!--
if ( {PRIVATE_MESSAGE_NEW_FLAG} )
{
window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
}
//-->
</script>
<!-- END switch_enable_pm_popup -->
</head>
<body>
<a name="top"></a>
<table width="760" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td width="10" nowrap="nowrap" class="lefttd"></td>
<td width="740">
<table width="100%" cellpadding="0" cellspacing="1" border="0" class="forumline">
<tr>
<!-- BEGIN switch_user_logged_out -->
<td class="row2" width="100%" align="center">
<form method="post" action="{S_LOGIN_ACTION}">
<img src="templates/iCGstation/images/login_logo.gif" border="0" alt="{L_LOGIN}" align="absmiddle" /><img src="templates/iCGstation/images/username.gif" border="0" alt="{L_USERNAME}" align="absmiddle" /><input type="text" name="username" size="10" /><img src="templates/iCGstation/images/password.gif" border="0" alt="{L_PASSWORD}" align="absmiddle" /><input type="password" name="password" size="10" maxlength="32" /><br />{L_AUTO_LOGIN} <input class="text" type="checkbox" name="autologin" /> <input type="hidden" name="submit" value="{L_LOGIN}"><input type="hidden" name="login" value="{L_LOGIN}"><input type="submit" name="login" value="{L_LOGIN}"/></td>
</form></td>
<td class="row2" width="150" nowrap="nowrap" align="center"><img src="templates/iCGstation/images/icon/icon_register.gif" border="0" alt="{L_REGISTER}" align="absmiddle" /><br /><a href="{U_REGISTER}" class="mainmenu">{L_REGISTER}</a></td>
<!-- END switch_user_logged_out -->
<!-- BEGIN switch_user_logged_in -->
<td class="row2" width="20%" align="center"><img src="templates/iCGstation/images/icon/icon_faq.gif" border="0" alt="{L_FAQ}" align="absmiddle" /><br /><a href="{U_FAQ}" class="mainmenu">{L_FAQ}</a></td>
<td class="row2" width="20%" align="center"><img src="templates/iCGstation/images/icon/icon_search.gif" border="0" alt="{L_SEARCH}" align="absmiddle" /><br /><a href="{U_SEARCH}" class="mainmenu">{L_SEARCH}</a></td>
<td class="row2" width="20%" align="center"><img src="templates/iCGstation/images/icon/icon_memberlist.gif" border="0" alt="{L_MEMBERLIST}" align="absmiddle" /><br /><a href="{U_MEMBERLIST}" class="mainmenu">{L_MEMBERLIST}</a></td>
<td class="row2" width="20%" align="center"><img src="templates/iCGstation/images/icon/icon_group.gif" border="0" alt="{L_USERGROUPS}" align="absmiddle" /><br /><a href="{U_GROUP_CP}" class="mainmenu">{L_USERGROUPS}</a></td>
<td class="row2" width="20%" align="center"><img src="templates/iCGstation/images/icon/icon_profile.gif" border="0" alt="{L_PROFILE}" align="absmiddle" /><br /><a href="{U_PROFILE}" class="mainmenu">{L_PROFILE}</a></td>
<td class="row2" width="150" nowrap="nowrap" align="center"><img src="templates/iCGstation/images/icon/icon_login.gif" border="0" alt="{L_LOGIN_LOGOUT}" align="absmiddle" /><br /><a href="{U_LOGIN_LOGOUT}" class="mainmenu">{L_LOGIN_LOGOUT}</a></td>
<!-- END switch_user_logged_in -->
<td class="row2" width="150" nowrap="nowrap" align="center"><img src="templates/iCGstation/images/icon/icon_pm.gif" border="0" alt="{PRIVATE_MESSAGE_INFO}" align="absmiddle" /><br /><a href="{U_PRIVATEMSGS}" class="mainmenu">{PRIVATE_MESSAGE_INFO}</a></td>
</tr>
</table>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td width="100%" valign="middle"><a href="{U_INDEX}"><img src="templates/iCGstation/images/banner.jpg" border="0" /></a></td>
</tr>
<tr>
<td width="100%" class="navpic"> <span class="maintitle">{SITENAME}</span><span class="maintitle"> - {SITE_DESCRIPTION}</span></td>
</tr>
</table>
<table width="100%" cellspacing="10" cellpadding="0" border="0">
<tr>
<td align="center" width="100%" valign="middle">
[color=red]<!-- BEGIN switch_enable_board_msg -->
<br />
<center>
<table border="0" class="forumline">
<tr>
<th colspan="3" class="thCornerL" height="25" nowrap="nowrap"> {L_BOARD_MSG} </th>
</tr>
<tr>
<td class="row1"><img src="{BOARD_MSG_IMG}" /></td>
<td class="row1"><span class="gen">{BOARD_MSG}</a></span></td>
<td class="row1"><img src="{BOARD_MSG_IMG}" /></td>
</tr>
</table>
</center>
<!-- END switch_enable_board_msg -->[/color]
