1 頁 (共 1 頁)

[問題] 關於 index_body.tpl 主頁仍需要左右捲動! ( 已解決 )

發表於 : 2006-03-20 01:50
orga
使用版本:2.0.18
網站位置http://www.quake.idv.tw/
架站程式:Apache/1.3.33 (Win32) PHP/4.3.11 + Mysql 4.0.24-nt
已安裝外掛http://www.quake.idv.tw/phpbb2/viewtopic.php?t=2476
狀況描述:首頁版面大到都需要左右捲動,真不方便,且各分區內仍存在相同的問題。
困擾多久:一個禮拜。

已參考此連結,仍不能解決我的問題。我的index_body.tpl 下載,怎麼辦,try and error 仍不得其門而入!嗚嗚~ :cry:
而我安裝的BCP模組是從這此網站來的,而且安裝前有參考竹貓的BCP安裝教程網頁,只是why那網站可以對的這麼整齊,感覺好像是auto校正 ( 還是他是自己設定width ),希望各位大大能救我!

發表於 : 2006-03-24 05:25
jwxie
是否你裝過什麼外掛?
或者你把他的width%改動了?
請盡量把他縮小看看

發表於 : 2006-03-24 10:20
SCR
你的首頁 index 跟 文章頁 viewtopic 的左右捲軸大小不同。

文章頁 viewtopic 左右捲軸較小(比你的橫幅Banner大一些),似乎是 overall_header裡面的(首表格與第二表格的間距 6 + 橫幅圖片 1024 + 隱藏的icon圖片 13 + 『隱藏』兩個字)的尺寸。

至於首頁 index 左右捲軸較大(比橫幅Banner大很多),感覺上似乎是被某些因素所撐開的。發現問題好像是出在『最新公開圖片』底下那四張圖片沒顯示出來,而以文字代替解說,又這四張圖片你沒指定尺寸,當圖片無法顯示時,就會被 alt 標籤內的文字解說長度所代替,所以頁面尺寸完全被“無法正常顯示的四張圖片的文字解說長度”+ 表格左邊的“登入區塊” + 表格右邊的“最新討論文章區塊”所撐開。

嘗試修改重點:
1‧將你的橫幅 banner 圖片給縮小一些。
2‧把“最新公開圖片”底下那四張圖片給正確顯示出來(弄清楚圖片的所在路徑),或者在貼圖標籤內指定圖片尺寸。

這個方法試試看,若有錯誤,請見諒!

發表於 : 2006-03-26 23:02
orga
感謝各位大大撥空小弟我測試....小弟我好感動! :oops:
為方便各位大大能快速debug,小弟我已經將
最新公開圖片』程式碼和首頁橫幅logo暫時移除
看看這會是什麼問題呢?若是要修改width要找哪各部份修改呢?

我的 index_body.tpl

代碼: 選擇全部

<table width="100%" cellspacing="0" cellpadding="2" border="0" align="center">
  <tr> 
	<td align="left" valign="bottom">
		<span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span>
		<span class="gen">&nbsp;&nbsp;{SITE_DESCRIPTION}&nbsp;</span>
		<span class="mainmenu">&nbsp;&nbsp;{MEETING_LINK}&nbsp;</span>
		<br />
		<span class="gensmall">
			<!-- BEGIN switch_user_logged_in -->
		{LAST_VISIT_DATE}<br />
			<!-- END switch_user_logged_in -->
		{CURRENT_TIME}<br />
		</span>
        	<img src="images/announce.gif"><marquee scrollamount=3 scrolldelay=75 width="50%" onmouseover=this.stop(); onmouseout=this.start();>{ANNOUNCEMENT}</marquee>
	</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>



<table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0"> 
<tr> 
<td valign="top"> 
<table width="100%" border="0" cellpadding="4" cellspacing="1" width="100%" class="forumline"> 
<tr> 
<th align="center" class="thCornerL" width="20%">&nbsp;{L_FORUM}&nbsp;</th> 
<th align="center" class="thTop" width="40%">&nbsp;{L_TOPICS}&nbsp;</th> 
<th align="center" class="thTop" nowrap>&nbsp;&nbsp;{L_AUTHOR}&nbsp;&nbsp;</th> 
<th align="center" class="thTop" nowrap>&nbsp;{L_REPLIES}&nbsp;</th> 
<th align="center" class="thTop" nowrap>&nbsp;{L_VIEWS}&nbsp;</th> 
<th align="center" class="thCornerR" nowrap>&nbsp;{L_LASTPOST}&nbsp;</th> 
</tr> 
<!-- BEGIN toprow --> 
<tr> 
<td class="row1" ><span class="forumlink"><a href="{toprow.FORUM_URL}" target="_top" class="forumlink">{toprow.FORUM_NAME}</a></span></td> 
<td class="row2" ><span class="topictitle"><a href="{toprow.TOPIC_URL}" target="_top" class="topictitle">{toprow.TOPIC}</a></span></td> 
<td class="row1" align="center" nowrap><span class="name">{toprow.POSTER_URL}</span></td> 
<td class="row2" align="center" nowrap><span class="postdetails">{toprow.TOPIC_REPLIES}</span></td> 
<td class="row1" align="center" nowrap><span class="postdetails">{toprow.TOPIC_VIEWS}</span></td> 
<td class="row2" align="center" nowrap><span class="postdetails">{toprow.POST_TIME}<br />{toprow.REPLIER_URL}&nbsp;<a href="{toprow.LAST_POST_URL}" target="_top"><img src="{ICON_URL}" border="0" alt="{ICON_ALT}" /></a></span></td> 
</tr> 
<!-- END toprow --> 
</table> 
</td> 
</tr> 
</table> 

<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
  <tr> 
	<th colspan="3" class="thCornerL" height="25" nowrap="nowrap">&nbsp;{L_FORUM}&nbsp;</th>
	<th width="50" class="thTop" nowrap="nowrap">&nbsp;{L_TOPICS}&nbsp;</th>
	<th width="50" class="thTop" nowrap="nowrap">&nbsp;{L_POSTS}&nbsp;</th>
	<th class="thCornerR" nowrap="nowrap">&nbsp;{L_LASTPOST}&nbsp;</th>
  </tr>
  <!-- BEGIN catrow -->
  <tr> 
	<td class="catLeft" colspan="3" height="28"><span class="cattitle"><a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></span></td>
	<td class="rowpic" colspan="3" align="right">&nbsp;</td>
  </tr>
  <!-- BEGIN forumrow -->
  <tr> 
<!--	<td class="row1" align="center" valign="middle" height="50"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" width="46" height="25" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td> -->
<td class="row1" align="center" valign="middle" height="50"><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" align="center" valign="middle" height="50">{catrow.forumrow.FORUM_ICON_IMG}</td>
	<td class="row1" width="100%" height="50"><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="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
	<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
	<td class="row2" align="center" valign="middle" height="50" nowrap="nowrap"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
  </tr>
  <!-- END forumrow -->
  <!-- END catrow -->
</table>

<table width="100%" cellspacing="0" border="0" align="center" cellpadding="2">
  <tr> 
 	<td align="left">
 	<!-- BEGIN switch_user_logged_in -->
 		<span class="gensmall"><a href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a></span>
 	<!-- END switch_user_logged_in -->
 	</td>
	<td align="right"><span class="gensmall">{S_TIMEZONE}</span></td>
  </tr>
</table>

<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
  <tr> 
	<td class="catHead" colspan="2" height="28"><span class="cattitle"><a href="{U_VIEWONLINE}" class="cattitle">{L_WHO_IS_ONLINE}</a></span></td>
  </tr>
  <tr> 
	<td class="row1" align="center" valign="middle" rowspan="4"><img src="templates/subSilver/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}&nbsp;-&nbsp;{L_NEWEST_ID}&nbsp;<b>{NEWEST_UID}</b>&nbsp;-&nbsp;{L_NEWEST_LANG}&nbsp;<b>{NEWEST_LANG}</b>&nbsp;-&nbsp;{L_NEWEST_FROM}&nbsp;<img width="14" height="9" border="0" src="images/flags/small/{NEWEST_FLAG}.png" alt="{NEWEST_COUNTRY}" title="{NEWEST_COUNTRY}" /></span>
	</td>
  </tr>
  <tr> 
	<td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE} &nbsp; [ {L_WHOSONLINE_ADMIN} ] &nbsp; [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}</span></td>
  </tr>
  <!-- start today userlist -->
  <tr>
	<td class="row1" align="left"><span class="gensmall">{TOTAL_TODAY_ONLINE}<br />{TOTAL_LASTHOUR_ONLINE}<br /></span></td>
  </tr>
  <tr>
	<td class="row1" align="left"><span class="gensmall">{L_TODAY_IN_USER_LIST}<br />{TODAY_IN_USER_LIST}</span></td>
  </tr>
  <!-- fin today userlist -->

</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>


<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
  <tr> 
<embed src="http://www.quake.idv.tw/phpBB2/articles/2006.02/20060228_worldclock.swf" quality="high" width="963" height="23"></embed>
  </tr>
</table>

<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
  <tr> 
	<td class="catLeft" width="100%" height="22"><span class="cattitle"><a href="{U_LINKS}" class="cattitle">{L_LINKS}</a></span></td>
	<td class="catRight" nowrap="nowrap" align="center"><span class="cattitle">{SITENAME}</span></td>
  </tr>
  <tr> 
	<td class="row1" nowrap="nowrap"><iframe marginwidth="0" marginheight="0" src="{U_LINKS_JS}" frameborder="0" scrolling="no" width="100%" height="{SITE_LOGO_HEIGHT}"></iframe></td>
	<td class="row2" nowrap="nowrap"><img src="{U_SITE_LOGO}" alt="{SITENAME}" width="{SITE_LOGO_WIDTH}" height="{SITE_LOGO_HEIGHT}" border="0" /></td>
  </tr>
</table>

<!-- BEGIN switch_user_logged_out -->
<form method="post" action="{S_LOGIN_ACTION}">
  <table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
	<tr> 
	  <td class="catHead" 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" />
		&nbsp;&nbsp;&nbsp;{L_PASSWORD}: 
		<input class="post" type="password" name="password" size="10" maxlength="32" />
		<!-- BEGIN switch_allow_autologin -->
		&nbsp;&nbsp; &nbsp;&nbsp;{L_AUTO_LOGIN} 
		<input class="text" type="checkbox" name="autologin" />
		<!-- END switch_allow_autologin -->
		&nbsp;&nbsp;&nbsp; 
		<input type="submit" class="mainoption" name="login" value="{L_LOGIN}" />
		</span> </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/subSilver/images/folder_new_big.gif" alt="{L_NEW_POSTS}"/></td>
	<td><span class="gensmall">{L_NEW_POSTS}</span></td>
	<td>&nbsp;&nbsp;</td>
	<td width="20" align="center"><img src="templates/subSilver/images/folder_big.gif" alt="{L_NO_NEW_POSTS}" /></td>
	<td><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
	<td>&nbsp;&nbsp;</td>
	<td width="20" align="center"><img src="templates/subSilver/images/folder_locked_big.gif" alt="{L_FORUM_LOCKED}" /></td>
	<td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
  </tr>
</table>

發表於 : 2006-03-27 22:27
orga
問題找到了,出在底下語法的width,以及最新相片後台控制裡頭的關於列和欄位的數字,之前欄位設定為4太大了,要設成3。由於一次出現兩個錯誤,所以教難馬上找到問題癥結,但還是很感謝有心人士的幫忙! ;-)

代碼: 選擇全部

<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline"> 
  <tr> 
<embed src="http://www.quake.idv.tw/phpBB2/articles/2006.02/20060228_worldclock.swf" quality="high" width="963" height="23"></embed> 
  </tr> 
</table>