1 頁 (共 2 頁)

[問題]請問如何修改登入欄位

發表於 : 2004-10-02 20:37
mark1980
小弟目前的風格是Mac..下方的登入欄位是這樣...
圖檔
小弟想要把他修改像其他討論區一樣有框框包住..像這樣...
圖檔
請問小弟該從哪裡著手修改...才能跟竹貓下面的登入欄一樣..是有框框ㄉ..
:-o :-o :-o

發表於 : 2004-10-02 21:02
夢幻LUGIA
用個table
border不要調成0

我記得phpBB有不少table的class可用

發表於 : 2004-10-02 21:28
mark1980
請問要去哪個檔案增加table..小弟是個新手..煩請告知..
或者告訴我搜尋哪個關鍵字可以找到..謝謝..

發表於 : 2004-10-02 23:15
aiken
應該是在 overall_header.tpl, index_body.tpl 或是 overall_footer.tpl 這三個其中之一
(我改來改去已經忘記他本來的位置在哪了...大概是overall_header.tpl吧)
你必須先找到你那個登入的語法
通常是在\r

代碼: 選擇全部

<!-- BEGIN switch_user_logged_out -->
....
<!-- END switch_user_logged_out -->
的裡面用 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>\r
	  <th class="cat" colspan="5" height="28" align="left"><span class="cattitle"><a name="login"></a>{L_LOGIN_LOGOUT}</span></th>
	</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" checked />
		   
		<input type="submit" class="mainoption" name="login" value="{L_LOGIN}" />  
		<a href="http://aikenlin.idv.tw/phpbb2/profile.php?mode=register" class="gensmall">我要註冊!</a>
		</span> </td>
	</tr>
  </table>
</form><br />
<!-- END switch_user_logged_out -->
就這樣...以你的聰明才智一定行的...

發表於 : 2004-10-02 23:37
夢幻LUGIA
在index_body.tpl
(原始是在首頁下方的)

aiken論壇風格改太多了......也難怪XD(痛毆



大部分的東西都在CSS裡\r
如果不想套用CSS的話就直接把border調成1吧XD(痛毆

發表於 : 2004-10-02 23:43
webspirit
那登入 table 不是在 index_body.tpl 裡嗎?

發表於 : 2004-10-02 23:46
aiken
webspirit 寫:那登入 table 不是在 index_body.tpl 裡嗎?
其實你想放在哪裡都是可以的...
不管是 overall_header.tpl, overall_footer.tpl, viewforum_body.tpl...

發表於 : 2004-10-02 23:50
webspirit
是可以,我只是說在一般狀況下啦 ^^

發表於 : 2004-10-03 07:00
mark1980
那我該放哪裡!? :-o 大人們的意思是三個檔案隨便修改一個就可以了嗎!?

我如果有 webspirit 爺一半的聰明才智就好囉 >"<

發表於 : 2004-10-03 07:12
mark1980
如果我想包成這樣我該怎麼做ㄋ!? :oops: << 用小畫家合的

圖檔

發表於 : 2004-10-03 08:31
webspirit
打開
templates/Macinscott2/index_body.tpl

找到\r

代碼: 選擇全部

  <tr>
    <td align="center">  </td>
    <td align="right" width="50%"> 
      <!-- BEGIN switch_user_logged_out -->
      <table border="0" cellpadding="2" cellspacing="0">
        <form method="post" action="{S_LOGIN_ACTION}">
          <tr> 
            <td nowrap><span class="smalltext">請輸入會員名稱及密碼登入:</span></td>
          </tr>
          <tr> 
            <td nowrap align="center"> 
              <input class="post" type="text" name="username" size="10">
              <input class="post" type="password" name="password" size="10" maxlength="32">
              <b>自動登入?</b> 
              <input class="text" type="checkbox" name="autologin" value="ON">
              <input type="submit"  name="login" value="{L_LOGIN}">
              <br>
            </td>
          </tr>
        </form>
      </table>
      <!-- END switch_user_logged_out -->
    </td>
  </tr>
改成

代碼: 選擇全部

</table>
<br>
<table width="95%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="3%" align="left"><img src="templates/Macinscott2/images/buttons.gif" width="66" height="23"></td>
    <td width="94%" align="center" background="templates/Macinscott2/images/buttons_bkgd.gif"><span class="thCornerL"> 會員登入 </span></td>
    <td width="3%" align="right"><img src="templates/Macinscott2/images/buttons_right.gif" width="66" height="23"></td>
  </tr>
</table>
<table width="95%" cellpadding="2" cellspacing="1" border="0" class="forumline">
  <tr>
    <td class="row2" align="center">
      <!-- BEGIN switch_user_logged_out -->
      <table border="0" cellpadding="2" cellspacing="0">
        <form method="post" action="{S_LOGIN_ACTION}">
          <tr> 
            <td nowrap align="center"> 
              <span class="smalltext">會員名稱:</span><input class="post" type="text" name="username" size="10">
              <span class="smalltext">登入密碼:</span><input class="post" type="password" name="password" size="10" maxlength="32">
              <b>自動登入?</b> 
              <input class="text" type="checkbox" name="autologin" value="ON">
              <input type="submit"  name="login" value="{L_LOGIN}">
              <br>
            </td>
          </tr>
        </form>
      </table>
      <!-- END switch_user_logged_out -->
    </td>
  </tr>
</table>
<table width="95%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="35" align="left" valign="top" background="templates/Macinscott2/images/shadow_bottom.jpg"><img src="templates/Macinscott2/images/shadow_bttm_left_corner.jpg" width="19" height="35"></td>
    <td align="left" valign="top" background="templates/Macinscott2/images/shadow_bottom.jpg"><img src="templates/Macinscott2/images/shadow_bottom.jpg" width="19" height="35"></td>
    <td align="right" valign="top" background="templates/Macinscott2/images/shadow_bottom.jpg"><img src="templates/Macinscott2/images/shadow_bttm_right_corner.jpg" width="19" height="35"></td>
  </tr>

發表於 : 2004-10-03 12:08
mark1980
我就是要這樣啦~~阿彌陀佛~~超感謝 webspirit 大爺~~
來~~阿姑金幾勒~~

發表於 : 2004-10-03 12:17
webspirit
哇!別來!
下次不敢啦~~~~ (冒冷汗)

發表於 : 2004-10-09 10:04
mark1980
修改成功後發現一郭問題就速...會員登入後會變成這樣...
圖檔
有迷有辦法可以讓會員登入後這個欄位會自動消失

發表於 : 2004-10-09 13:24
動機不明
關鍵在\r

<!-- BEGIN switch_user_logged_out -->

---- 程式碼 ---

<!-- END switch_user_logged_out -->

這兩行

你自己修改看看吧! ^^