1 頁 (共 1 頁)

[問題][外掛]關於統一整合式TOP5及Cobalt 2.0風格

發表於 : 2004-10-09 05:14
mmmagker
我是使用這篇整合或TOP5
http://phpbb-tw.net/phpbb/viewtopic.php?t=20692
在於index_body.tpl
我所加入的位置如下:

代碼: 選擇全部

<table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0"> 
  <tr><td height="18" valign="top"><span class="nav">{nav_links}</span></td></tr> 
  <tr> 
    <td valign="top"> 
      <table width="100%" border="0" cellpadding="4" cellspacing="1" width="100%" class="forumline">
  </tr>    
   <tr> 
     <th align="center" class="thCornerL" width="20%"> {L_FORUM} </th> 
     <th align="center" class="thTop" width="40%"> {L_TOPICS} </th> 
     <th align="center" class="thTop" nowrap>  {L_AUTHOR}  </th> 
     <th align="center" class="thTop" nowrap> {L_REPLIES} </th> 
     <th align="center" class="thTop" nowrap> {L_VIEWS} </th> 
     <th align="center" class="thCornerR" nowrap> {L_LASTPOST} </th> 
   </tr> 
   <!-- BEGIN top5row --> 
        <tr> 
          <td class="row1" nowrap><span class="forumlink"><a href="{top5row.forum_url}" target="_top" class="forumlink">{top5row.forum_name}</a></span></td>        
          <td class="row2" nowrap><span class="topictitle"><a href="{top5row.topic_url}" target="_top" class="topictitle">{top5row.topic}</a></span></td> 
          <td class="row1" align="center" nowrap><span class="name">{top5row.poster_url}</span></td> 
          <td class="row2" align="center" nowrap><span class="postdetails">{top5row.topic_replies}</span></td> 
          <td class="row1" align="center" nowrap><span class="postdetails">{top5row.topic_views}</span></td> 
          <td class="row2" align="center" nowrap><span class="postdetails">{top5row.post_time}<br />{top5row.replier_url} <a href="{top5row.last_post_url}" target="_top"><img src="{icon_url}" border="0" alt="{icon_alt}" /></a></span></td>        
        </tr> 
        <!-- END top5row --> 
      </table> 
    </td>  
  </tr> 
</table>
這是我整個index_body.tpl的內容

代碼: 選擇全部

<link rel="stylesheet" href="templates/Cobalt/Cobalt.css" type="text/css">
<link rel="stylesheet" href="/templates/Cobalt/Cobalt.css" type="text/css">
	<table width="100%" cellspacing="0" 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/></span>

			<span class="nav"><A href="{U_INDEX}" class="nav">{L_INDEX}</a></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>	
	
<table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0"> 
  <tr><td height="18" valign="top"><span class="nav">{nav_links}</span></td></tr> 
  <tr> 
    <td valign="top"> 
      <table width="100%" border="0" cellpadding="4" cellspacing="1" width="100%" class="forumline">
  </tr>    
   <tr> 
     <th align="center" class="thCornerL" width="20%"> {L_FORUM} </th> 
     <th align="center" class="thTop" width="40%"> {L_TOPICS} </th> 
     <th align="center" class="thTop" nowrap>  {L_AUTHOR}  </th> 
     <th align="center" class="thTop" nowrap> {L_REPLIES} </th> 
     <th align="center" class="thTop" nowrap> {L_VIEWS} </th> 
     <th align="center" class="thCornerR" nowrap> {L_LASTPOST} </th> 
   </tr> 
   <!-- BEGIN top5row --> 
        <tr> 
          <td class="row1" nowrap><span class="forumlink"><a href="{top5row.forum_url}" target="_top" class="forumlink">{top5row.forum_name}</a></span></td>        
          <td class="row2" nowrap><span class="topictitle"><a href="{top5row.topic_url}" target="_top" class="topictitle">{top5row.topic}</a></span></td> 
          <td class="row1" align="center" nowrap><span class="name">{top5row.poster_url}</span></td> 
          <td class="row2" align="center" nowrap><span class="postdetails">{top5row.topic_replies}</span></td> 
          <td class="row1" align="center" nowrap><span class="postdetails">{top5row.topic_views}</span></td> 
          <td class="row2" align="center" nowrap><span class="postdetails">{top5row.post_time}<br />{top5row.replier_url} <a href="{top5row.last_post_url}" target="_top"><img src="{icon_url}" border="0" alt="{icon_alt}" /></a></span></td>        
        </tr> 
        <!-- END top5row --> 
      </table> 
    </td>  
  </tr> 
</table>

<BR>	
	<!-- BEGIN catrow -->
	
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td colspan="3">			
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td width="0%"><img src="templates/Cobalt/images/cat_lcap.gif" width="22" height="51"></td>
						<td width="100%" background="templates/Cobalt/images/cat_bar.jpg" valign="top">						
							<table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
								<tr>
									<td class="cBarStart" valign="top">									
										<table border="0" cellspacing="0" cellpadding="0" width="100%">
											<tr>
												<td valign="top" width="0%"><img src="templates/Cobalt/images/cat_arrow.gif" width="25" height="39"></td>
												<td class="cattitle" width="100%"><span class="cattitle"><A href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></span></td>
											</tr>
										</table>										
									</td>
									<td><img src="templates/Cobalt/images/spacer.gif" width="1" height="51"></td>
								</tr>
							</table>
							
						</td>
						<td width="0%"><img src="templates/Cobalt/images/cat_rcap.gif" width="33" height="51"></td>
					</tr>
				</table>				
			</td>
		</tr>
		<tr>
			<td width="0%"><img src="templates/Cobalt/images/spacer.gif" width="16" height="22"></td>
			<td width="100%" valign="top">			
				
				
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td width="0%" class="cboxLeft"><img src="templates/Cobalt/images/spacer.gif" width="6" height="6"></td>
						<td width="100%" class="cbox" valign="top">
												
							<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td class="cBoxStart">
									
										<!-- BEGIN forumrow -->
											<table width="100%" border="0" cellspacing="8" style="padding-left: 5px">
												<tr>
													<td width="0%" align="center"><DIV align="center"><img src="templates/Cobalt/images/spacer.gif" width="8" height="6"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" width="30" height="30" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" class="img_forumstatus" /></DIV></td>
													<td width="80%"><span class="forumlink"><A href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><BR/></span><span class="forumdescription">{catrow.forumrow.FORUM_DESC}</span><br /><span class="forummoderator">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>
													<td width="10%" nowrap="nowrap" align="center" class="forumstats"><strong><a href="#" class="forumstats" title="{L_POSTS}">{catrow.forumrow.POSTS}</a> / <a href="#" class="forumstats" title="{L_TOPICS}">{catrow.forumrow.TOPICS}</a></strong></td>
													<td width="160" align="center" nowrap><span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
												</tr>
											</table>											
										<!-- END forumrow -->
										
											<img src="templates/Cobalt/images/spacer.gif" width="6" height="6">
											
										</td>
									</tr>
								</table>	
														
							</td>
						<td width="0%" class="cboxRight"><img src="templates/Cobalt/images/spacer.gif" width="6" height="6"></td>
					</tr>
					<tr>
						<td width="0%" class="cboxLeftbottom"><img src="templates/Cobalt/images/spacer.gif" width="6" height="6"></td>
						<td width="100%" valign="top" class="cboxBottom"><img src="templates/Cobalt/images/spacer.gif" width="6" height="6"></td>
						<td width="0%" class="cboxRightbottom"><img src="templates/Cobalt/images/spacer.gif" width="6" height="6"></td>
					</tr>
				</table>
				
												
			</td>
			<td class="catbox_right"><img src="templates/Cobalt/images/spacer.gif" width="27" height="27"></td>
		</tr>
		<tr>
			<td colspan="3"><BR/></td>
		</tr>
	</table>	
	
	<!-- END catrow -->
	
	<table width="100%" cellspacing="0" border="0" align="center" cellpadding="2">
		<tr>
			<td align="left"><span class="gensmall"><A href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a></span></td>
			<td align="right"><span class="gensmall">{S_TIMEZONE}</span></td>
		</tr>
	</table>
	
	<BR/><BR/>
	
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td colspan="3">
				
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td width="0%"><img src="templates/Cobalt/images/cat_lcap_whosonline.gif" width="22" height="51"></td>
						<td width="100%" background="templates/Cobalt/images/cat_bar.jpg" valign="top">
						
							<table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
								<tr>
									<td class="cBarStart" valign="top">
									
										<table border="0" cellspacing="0" cellpadding="0" width="100%">
											<tr>
												<td valign="top" width="0%"><img src="templates/Cobalt/images/whosonline_item.gif" width="21" height="39"></td>
												<td class="cattitle" width="100%"><span class="cattitle"><A href="{U_VIEWONLINE}" class="cattitle">{L_WHO_IS_ONLINE}</a></span></td>
											</tr>
										</table>
										
									</td>
									<td><img src="templates/Cobalt/images/spacer.gif" width="1" height="51"></td>
								</tr>
							</table>
							
						</td>
						<td width="0%"><img src="templates/Cobalt/images/cat_rcap.gif" width="33" height="51"></td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td width="0%"><img src="templates/Cobalt/images/spacer.gif" width="16" height="22" /></td>
			<td width="100%">
			
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td width="0%" class="cboxLeft"><img src="templates/Cobalt/images/spacer.gif" width="6" height="5"></td>
						<td width="100%" class="cbox">
							
							<table width="100%" border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td class="cBoxStart">
									
										<table width="100%" border="0" cellspacing="8" cellpadding="0" style="padding-top: 1px">
											<tr>
												<td rowspan="2" align="center"><img src="templates/Cobalt/images/whosonline.gif" width="49" height="48" alt="{L_WHO_IS_ONLINE}"></td>
												<td><span class="genmed">{TOTAL_POSTS}<BR/>{TOTAL_USERS}<BR/>{NEWEST_USER}</span></td>
											</tr>
											<tr>
												<td class="onlineIndex"><span class="genmed">{TOTAL_USERS_ONLINE}   {COLOR_GROUPS_LIST}<BR/>{RECORD_USERS}<BR/>{LOGGED_IN_USER_LIST}</span></td>
											</tr>
										</table>
										
									</td>
								</tr>
							</table>
							
						</td>
						<td width="0%" class="cboxRight"><img src="templates/Cobalt/images/spacer.gif" width="6" height="6">
						</td>
					</tr>
					<tr>
						<td width="0%" class="cboxLeftbottom"><img src="templates/Cobalt/images/spacer.gif" width="6" height="6"></td>\r
						<td width="100%" valign="top" class="cboxBottom"><img src="templates/Cobalt/images/spacer.gif" width="6" height="6"></td>
						<td width="0%" class="cboxRightbottom"><img src="templates/Cobalt/images/spacer.gif" width="6" height="6"></td>
					</tr>
				</table>
				
			</td>
			<td class="catbox_right"><img src="templates/Cobalt/images/spacer.gif" width="27" height="27">
			</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>	
	
	<br /><br />
	
	<!-- BEGIN switch_user_logged_out -->
	
	<FORM method="post" action="{S_LOGIN_ACTION}">
	
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td colspan="3">
				
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="0%"><img src="templates/Cobalt/images/cat_lcap_whosonline.gif" width="22" height="51"></td>
							<td width="100%" background="templates/Cobalt/images/cat_bar.jpg" valign="top">
							
								<table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
									<tr>
										<td class="cBarStart" valign="top">
										
											<table border="0" cellspacing="0" cellpadding="0">
												<tr>
													<td valign="top"><img src="templates/Cobalt/images/whosonline_item.gif" width="21" height="39"></td>
													<td class="cattitle"><span class="cattitle"><A name="login"></a>{L_LOGIN_LOGOUT}</span></td>
												</tr>
											</table>
											
										</td>
										<td><img src="templates/Cobalt/images/spacer.gif" width="1" height="51"></td>
									</tr>
								</table>
								
							</td>
							<td width="0%"><img src="templates/Cobalt/images/cat_rcap.gif" width="33" height="51"></td>
						</tr>
					</table>
					
				</td>
			</tr>
			<tr>
				<td width="0%"><img src="templates/Cobalt/images/spacer.gif" width="16" height="22">
				</td>
				<td width="100%">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="0%" class="cboxLeft"><img src="templates/Cobalt/images/spacer.gif" width="6" height="5"></td>
							<td width="100%" class="cbox">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td class="cBoxStart" align="center">
											<table border="0" cellspacing="8">
												<tr>
													<td class="loginIndex">
														<span class="genmed">
															{L_USERNAME}: <INPUT class="post" type="text" name="username" size="10" maxlength="32" />   
															{L_PASSWORD}: <INPUT class="post" type="password" name="password" size="10" maxlength="32" />    
															{L_AUTO_LOGIN}<INPUT type="checkbox" class="checkbox" name="autologin" />   
															<INPUT type="submit" class="mainoption" name="login" value="{L_LOGIN}" />
														</span>
													</td>
												</tr>
											</table>
										</td>
									</tr>
								</table>
							</td>
							<td width="0%" class="cboxRight"><img src="templates/Cobalt/images/spacer.gif" width="6" height="6">
							</td>
						</tr>
						<tr>
							<td width="0%" class="cboxLeftbottom"><img src="templates/Cobalt/images/spacer.gif" width="6" height="6"></td>
							<td width="100%" valign="top" class="cboxBottom"><img src="templates/Cobalt/images/spacer.gif" width="6" height="6"></td>
							<td width="0%" class="cboxRightbottom"><img src="templates/Cobalt/images/spacer.gif" width="6" height="6"></td>
						</tr>
					</table>
				</td>
				<td class="catbox_right"><img src="templates/Cobalt/images/spacer.gif" width="27" height="27"></td>
			</tr>
		</table>	
		
		{S_HIDDEN_FIELDS}
		
	</FORM>	
	
	<!-- END switch_user_logged_out -->
	
	<BR clear="all"/>
	
	<table border="0" cellspacing="0" cellpadding="0" align="center">
		<tr>
			<td width="5" class="mainboxLefttop"><img src="templates/Cobalt/images/spacer.gif" width="6" height="6"></td>
			<td width="400" class="mainboxTop"><img src="templates/Cobalt/images/spacer.gif" width="6" height="6"></td>
			<td width="5" class="mainboxRighttop"><img src="templates/Cobalt/images/spacer.gif" width="6" height="6"></td>
		</tr>
		<tr>
			<td width="5" class="mainboxLeft"><img src="templates/Cobalt/images/spacer.gif" width="6" height="6">
			</td>
			<td width="400" class="folderIconBox">
				<table border="0" cellspacing="0" cellpadding="0" width="100%">
					<tr>
						<td class="folderIconBoxStart">
							<table cellspacing="0" border="0" align="center" cellpadding="5">
								<tr>
									<td width="23" align="center" style="padding-top: 5px; padding-bottom: 5px"><img src="templates/Cobalt/images/folder_new.gif" alt="{L_NEW_POSTS}" width="23" height="23" /></td>
									<td><span class="genmed">{L_NEW_POSTS}</span></td>
									<td>	  	</td>
									<td width="23" align="center"><img src="templates/Cobalt/images/folder.gif" alt="{L_NO_NEW_POSTS}" width="23" height="23" /></td>
									<td><span class="genmed">{L_NO_NEW_POSTS}</span></td>
									<td>	  	</td>
									<td width="23" align="center"><img src="templates/Cobalt/images/folder_lock.gif" alt="{L_FORUM_LOCKED}" width="23" height="23" /></td>
									<td><span class="genmed">{L_FORUM_LOCKED}</span></td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</td>
			<td width="5" class="mainboxRight"><img src="templates/Cobalt/images/spacer.gif" width="6" height="6"></td>
		</tr>
		<tr>
			<td width="5" class="mainboxLeftbottom"><img src="templates/Cobalt/images/spacer.gif" width="6" height="6"></td>
			<td width="400" valign="top" class="mainboxBottom"><img src="templates/Cobalt/images/spacer.gif" width="6" height="6"></td>
			<td width="5" class="mainboxRightbottom"><img src="templates/Cobalt/images/spacer.gif" width="6" height="6"></td>
		</tr>
	</table>
這是目前我首頁的樣子
圖檔

我所安裝過的MOD
[外掛][管理模組]快速砍人1.4.3
讓匿名者無法觀看已註冊會員的資料
彩色群組 1.2.0
快速回覆Quick Reply 1.3.1
[外掛]強制選擇主題類型才能發表文章
Flash&Stream BBCODE
img標籤自動縮圖+點擊放大.txt

實在是不知怎麼修改才能整合成和下面一樣\r
希望有空的大大能幫忙解救一下...
謝謝

[建議]依table做區分

發表於 : 2004-12-09 18:34
starfox0307
我都是使用table做一段一段的程式碼區分
然後試著加入亂按的字
看頁面這些文字出現在哪或是會有何變化
你可以試試看這種方法
然後找到首頁底下的控制碼大概是哪幾項
依照php的寫法
應該只會有一個程式碼在跑下面的樣式格式大小等
不難找才對 試試看吧 我也是這麼試出來的 = =+
因為自己太笨 >"< 只能逐項試試看