
改成像竹貓這樣...

就是說文章的末端 和 簽名檔 之間有一段距離..
而不是連在一起\r
麻煩各位大大教我一下...謝謝唷...^^
版主: 版主管理群


謝謝大大...改好了...依夢兒 寫:參考:http://phpbb-tw.net/phpbb/viewtopic.php?p=33113#33113。
在 $user_sig = 後面多加一個 <br /> 就好了。
例如:
$user_sig = '<br />_________________<br />'
變成:
$user_sig = '<br /><br />_________________<br />'
結果出現了兩郭簽名檔...@@########################################################
## Mod Title: Bottom-Aligned-Signature
## Mod Version: 1.0.0
## Author: John B. Abela <abela@phpbb.com> http://www.JohnAbela.Com
## Description: This mod will align your Signature at the bottom of your post
##
## Installation Level: easy
## Installation Time: 1-3 Minutes
## Files To Edit: 1
## phpBB2/templates/subSilver/viewtopic_body.tpl
##
## Included Files: none
#################################################################
## Security Disclaimer: This MOD Cannot Be Posted To Or Added At Any Non-Official phpBB Sites
#################################################################
##
## Author Note:
##
## Enjoy! Check out my guestbook @ http://www.johnabela.com/guestbook/
##
#################################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
#################################################################
#
#-----[ OPEN ]------------------------------------------
#
/phpBB2/templates/subSilver/viewtopic_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<td class="{postrow.ROW_CLASS}" width="100%" height="28" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%"><a href="{postrow.U_MINI_POST}"><img src="{postrow.MINI_POST_IMG}" width="12" height="9" alt="{postrow.L_MINI_POST_ALT}" title="{postrow.L_MINI_POST_ALT}" border="0" /></a><span class="postdetails">{L_POSTED}: {postrow.POST_DATE}<span class="gen"> </span> {L_POST_SUBJECT}: {postrow.POST_SUBJECT}</span></td>
<td valign="top" align="right" nowrap="nowrap">{postrow.QUOTE_IMG} {postrow.EDIT_IMG} {postrow.DELETE_IMG} {postrow.IP_IMG}</td>
</tr>
<tr>
<td colspan="2"><hr /></td>
</tr>
<tr>
<td colspan="2"><span class="postbody">{postrow.MESSAGE}{postrow.SIGNATURE}</span><span class="gensmall">{postrow.EDITED_MESSAGE}</span></td>
</tr>
</table></td>
#
#-----[ REPLACE, WITH ]------------------------------------------
#
<td class="{postrow.ROW_CLASS}" width="100%" height="28" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
<tr>
<td width="100%"><a href="{postrow.U_MINI_POST}"><img src="{postrow.MINI_POST_IMG}" width="12" height="9" alt="{postrow.L_MINI_POST_ALT}" title="{postrow.L_MINI_POST_ALT}" border="0" /></a><span class="postdetails">{L_POSTED}: {postrow.POST_DATE}<span class="gen"> </span> {L_POST_SUBJECT}: {postrow.POST_SUBJECT}</span></td>
<td valign="top" align="right" nowrap="nowrap">{postrow.QUOTE_IMG} {postrow.EDIT_IMG} {postrow.DELETE_IMG} {postrow.IP_IMG}</td>
</tr>
<tr>
<td colspan="2"><hr /></td>
</tr>
<tr>
<td colspan="2" HEIGHT="100%" VALIGN="TOP"><span class="postbody">{postrow.MESSAGE}</span><BR /><SPAN CLASS="gensmall">{postrow.EDITED_MESSAGE}</SPAN></td>
</tr>
<tr>
<td colspan="2" VALIGN="BOTTOM"><SPAN CLASS="postbody">{postrow.SIGNATURE}</SPAN></td>
</tr>
</table></td>
#
#-----[ SAVE/UPLOAD ]------------------------------------------
# EoM
剛看了上面的文章...
可是我看到的是\rjiminkao 寫到:
檢查 viewtopic_body.tpl 中是否有兩個 {postrow.SIGNATURE},如果是 刪掉一個。
代碼: 選擇全部
<td colspan="2" HEIGHT="100%" VALIGN="TOP"><table style="table-layout:fixed"><tr><td style="word-wrap:break-word"><span class="postbody">[color=red]{postrow.MESSAGE}{postrow.SIGNATURE}[/color]</span><span class="gensmall">{postrow.EDITED_MESSAGE}</span></td></tr></table>

在下面的是..GeniusKiKi 寫:兩個不一樣\r
你的應該是在更下方還有另外一個簽名檔的標籤
代碼: 選擇全部
<td colspan="2" VALIGN="BOTTOM"><SPAN CLASS="postbody">[color=red]{postrow.SIGNATURE}[/color]</SPAN></td>
代碼: 選擇全部
<td colspan="2" HEIGHT="100%" VALIGN="TOP"><table style="table-layout:fixed"><tr><td style="word-wrap:break-word"><span class="postbody">{postrow.MESSAGE}[color=red]{postrow.SIGNATURE}[/color]</span><span class="gensmall">{postrow.EDITED_MESSAGE}</span></td></tr></table>


你下面這一段提到的代碼Apache 寫:大大...我知道是"重複顯示"呀...
我只是說我要的
是要刪掉上面那段的{postrow.SIGNATURE}而已呀...
Apache 寫:可是我看到的是\r{postrow.MESSAGE}跟{postrow.SIGNATURE} 兩郭是一樣的嗎 ?代碼: 選擇全部
<td colspan="2" HEIGHT="100%" VALIGN="TOP"><table style="table-layout:fixed"><tr><td style="word-wrap:break-word"><span class="postbody">[color=red]{postrow.MESSAGE}{postrow.SIGNATURE}[/color]</span><span class="gensmall">{postrow.EDITED_MESSAGE}</span></td></tr></table>
ok....修改一下...GeniusKiKi 寫:你下面這一段提到的代碼Apache 寫:大大...我知道是"重複顯示"呀...
我只是說我要的
是要刪掉上面那段的{postrow.SIGNATURE}而已呀...
會讓人認為你不知道是 {postrow.SIGNATURE} 重複Apache 寫:可是我看到的是\r{postrow.MESSAGE}跟{postrow.SIGNATURE} 兩郭是一樣的嗎 ?代碼: 選擇全部
<td colspan="2" HEIGHT="100%" VALIGN="TOP"><table style="table-layout:fixed"><tr><td style="word-wrap:break-word"><span class="postbody">[color=red]{postrow.MESSAGE}{postrow.SIGNATURE}[/color]</span><span class="gensmall">{postrow.EDITED_MESSAGE}</span></td></tr></table>
