1 頁 (共 1 頁)

[問題] 把首頁的"版面"字樣取消跟旁邊的"文章"

發表於 : 2005-08-25 02:19
狂暴戰龍
圖檔


如圖片所示...目前想把"分區"的字樣坎掉

並且把主題,文章,最後發表全部移到版面名稱旁邊(白線條也要下來)

不知道該如何改 :-o :-o

請各位大大教教小弟吧 :mrgreen:

發表於 : 2005-08-25 10:28
吉川拓也
#
#--- [ 開啟 ] ---
#

index_body.tpl

#
#--- [ 找到 ] ---
# 將該段刪除即可 !

代碼: 選擇全部

  <!-- BEGIN catrow -->
  <tr> 
	<td class="catLeft" colspan="2" 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 -->
#
#--- [ 儲存關閉 ] ---
# eom

發表於 : 2005-08-25 11:31
狂暴戰龍
感謝大大的教學 :mrgreen:

不過應該只能刪除\r

代碼: 選擇全部

  <tr> 
   <td class="catLeft" colspan="2" 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> 
這段吧\r

而且只坎掉這段的話版面名稱會消失...然後"版面"跟"文章"等字樣會直接下來..

應該不是這樣吧@@

請大大幫小弟看看index_body.tpl的這幾段

謝謝 :mrgreen:

小弟這幾行是\r

代碼: 選擇全部

<!-- BEGIN catrow -->
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
  <tr>
        <th colspan="2" 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>
<script language="JavaScript">
<!--
timeID = 10;
stcnt = 16;
msg = "{WELCOME_MESSAGE}";
wmsg = new Array(32);
   wmsg[0]=msg;
   blnk = "                                                               ";
   for (i=1; i<32; i++)
   {
      b = blnk.substring(0,i);
      wmsg[i]="";
      for (j=0; j<msg.length; j++) wmsg[i]=wmsg[i]+msg.charAt(j)+b;
   }
function wiper()
{
   ct = new Date();
   h = "0"+ct.getHours();
   m = "0"+ct.getMinutes();
   s = "0"+ct.getSeconds();
   h = h.substring(h.length-2,h.length+1);
   m = m.substring(m.length-2,m.length+1);
   s = s.substring(s.length-2,s.length+1);
   if (h > 12)
   {
     h = h-12 ;
     cl = " 目前時間: "+h+":"+m+":"+s+" AM";
   }
   if (h < 12) cl = " 目前時間: "+h+":"+m+":"+s+" PM";
   if (stcnt > -1) str = wmsg[stcnt]; else str = wmsg[0];
   if (stcnt > -1) str = wmsg[stcnt]; else str = wmsg[0];
   if (stcnt-- < -40) stcnt=31;
   status = cl+str;
   clearTimeout(timeID);
   timeID = setTimeout("wiper()",100);
}
-->
</script>

  <!-- 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" 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>{catrow.forumrow.FORUM_NAME_SUB}<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 -->
有裝狀態時間顯示外掛

多刪到<!-- BEGIN forumrow --><!-- BEGIN catrow -->就會錯誤耶@@

發表於 : 2005-08-25 12:25
~倉木麻衣~
把你的{L_FORUM}改成這樣\r
<a href="{catrow.U_VIEWCAT}" style="color:#FFA34F;text-decoration: none;">{catrow.CAT_DESC}</a>
因為預設css的關係, 所以此處要自行設定link的連結顏色

發表於 : 2005-08-25 23:53
狂暴戰龍
~倉木麻衣~ 寫:把你的{L_FORUM}改成這樣\r
<a href="{catrow.U_VIEWCAT}" style="color:#FFA34F;text-decoration: none;">{catrow.CAT_DESC}</a>
因為預設css的關係, 所以此處要自行設定link的連結顏色
感謝教導~~不過這樣做還是無法做到預期的效果呀@@

發表於 : 2005-08-26 00:24
~倉木麻衣~
應該沒錯吧? 我拿你的index_body.tpl回去測, 並沒有錯呀
難道你是指白色線條沒有跟著下來的效果沒出現?

如果是的話, 請先將index_body.tpl 裡, 原本要求刪掉的這段補回去\r

代碼: 選擇全部

    <tr>
        <td class="catLeft" colspan="2" height="28" align="center"><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>
並改成

代碼: 選擇全部

    <tr>
        <td colspan="5"></td>
  </tr>

發表於 : 2005-08-26 00:36
狂暴戰龍
現在變成這樣\r

圖檔

小弟的構想是讓"版面名稱"留下,並且讓"版面"這個字樣消失\r

不知道有沒有改錯~ :-o

發表於 : 2005-08-26 00:39
~倉木麻衣~
看不太懂你的意思
「版面名稱留下」, 版面名稱不是早就有了嗎?
「版面」字樣消失是要怎樣的消失?
是指那一個欄位裡都不要有字? 還是?

發表於 : 2005-08-26 00:44
狂暴戰龍
小弟的表達能力不太好真是抱歉 :oops: :oops:

目前是想改成這樣\r

圖檔

這個是圖片改的 :oops:

發表於 : 2005-08-26 00:51
~倉木麻衣~
那應該就沒錯了
我想你應該是一直少做這個修改, 這前幾篇有提到\r
~倉木麻衣~ 寫:把你的{L_FORUM}改成這樣
<a href="{catrow.U_VIEWCAT}" style="color:#FFA34F;text-decoration: none;">{catrow.CAT_DESC}</a>
從頭講一次好了
#
#--------[ OPEN ]--------
#
\n

代碼: 選擇全部

template/Yor_Template/index_body.tpl
#
#--------[ FIND ]--------
#

代碼: 選擇全部

{L_FORUM}
#
#--------[ REPLACE WITH ]--------
#

代碼: 選擇全部

<a href="{catrow.U_VIEWCAT}" style="color:#FFA34F;text-decoration: none;">{catrow.CAT_DESC}</a>
#
#--------[ FIND ]--------
#

代碼: 選擇全部

    <tr>
        <td class="catLeft" colspan="2" height="28" align="center"><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>
#
#--------[ REPLACE WITH]--------
#

代碼: 選擇全部

    <tr>
        <td colspan="5"></td>
  </tr>
#
#--------[ SAVE/CLOSE FILE]--------
#
# EoM

如果要改標題列的背景色, 請修改底下程式中的class
(以尚未修改前的程式為例)

代碼: 選擇全部

        <th colspan="2" 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>

發表於 : 2005-08-26 00:59
狂暴戰龍
感謝倉木大大的教學~~可以囉 :mrgreen:

以現在的功力要了解那麼多實在太困難了XD

發表於 : 2005-10-25 06:27
slipper
這個方法也不錯\r
改了之後

原本藍色的區塊
可以跟原來的一樣\r

不會出現白白的一條細線



代碼: 選擇全部

# 
#--------[ OPEN ]-------- 
# 
  
template/Your_Template/index_body.tpl 


# 
#--------[ 尋找 ]-------- 
# 
  
{L_FORUM} 


# 
#--------[ 替換成 ]-------- 
# 
  
{catrow.CAT_DESC}


# 
#--------[ 尋找 ]-------- 
# 
  
    <tr> 
        <td class="catLeft" colspan="2" height="28" align="center"><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> 


# 
#--------[ 刪除整段 ]-------- 
# 



# 
#--------[ SAVE/CLOSE FILE]-------- 
# 
# EoM

發表於 : 2006-01-19 10:38
alex2004_tw
請問一下我照著上述的方式改了之後發現\r
標題的文字都好像向上對齊了
要改哪裡才能上下置中對齊?

發表於 : 2006-01-19 18:11
slipper
找到\r

代碼: 選擇全部

<th colspan="2" class="thCornerL" height="25" nowrap="nowrap">&nbsp;{catrow.CAT_DESC}&nbsp;</th>
置換成

代碼: 選擇全部

<th height="25" colspan="2" valign="middle" nowrap="nowrap" class="thCornerL">&nbsp;{catrow.CAT_DESC}&nbsp;</th>

發表於 : 2006-01-19 21:56
alex2004_tw
謝謝大大,已經OK了