1 頁 (共 1 頁)

[問題]加入快速回覆mod後的問題....已解決

發表於 : 2004-03-03 11:17
gpolice
問題外掛:快速回覆
參考連結:
使用版本:phpBB 2.0.6、外掛 1.3.1 、竹貓風格\r
網站位置:
狀況描述:我有照著步驟安裝,也安裝成功了,但是卻出現了下現圖示的問題.請有經驗的前輩能教導一下..謝謝..<(_ _)>
圖檔

小弟修改後的語法:
[php]

viewtopic.php

'U_VIEW_TOPIC' => append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&start=$start&postdays=$post_days&postorder=$post_order&highlight=$highlight"),
'U_VIEW_FORUM' => $view_forum_url,
'U_VIEW_OLDER_TOPIC' => $view_prev_topic_url,
'U_VIEW_NEWER_TOPIC' => $view_next_topic_url,
'U_POST_NEW_TOPIC' => $new_topic_url,
'U_POST_REPLY_TOPIC' => $reply_topic_url)
);
/* BEGIN Quick Reply */

if ($is_auth['auth_reply'] == true)
{
$quick_reply_img = ( $forum_topic_data['forum_status'] == FORUM_LOCKED || $forum_topic_data['topic_status'] == TOPIC_LOCKED ) ? $images['reply_locked'] : $images['quick_reply'];
$quick_reply_alt = ( $forum_topic_data['forum_status'] == FORUM_LOCKED || $forum_topic_data['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['Quick_Reply_to_topic'];

if ( !$userdata['session_logged_in'] )
{
$template->assign_block_vars('switch_username_field', array());
}


templates/subSilver/viewtopic_body.tpl

<td width="40%" valign="top" nowrap="nowrap" align="left"><span class="gensmall">{S_WATCH_TOPIC}</span><br />
 <br />
{S_TOPIC_ADMIN}</td>
<td align="right" valign="top" nowrap="nowrap">{JUMPBOX}<span class="gensmall">{S_AUTH_LIST}</span></td>
</tr>
</table>

<!-- BEGIN quick_reply -->
</tr>
</table>

<table width='100%' cellspacing='2' border='0' align='center'>
<tr>
<td valign='top' align='left'>
<form name='quick_reply' action='{quick_reply.U_QUICK_REPLY}' method='post'>
<!-- END quick_reply -->
<!-- BEGIN switch_username_field -->
<span class='gensmall'><b>{L_USERNAME}</b></span><br />
<span class='genmed'><input type='text' class='post' tabindex='1' name='username' size='25' maxlength='25' value='' /></span><br />
<!-- END switch_username_field -->
<!-- BEGIN quick_reply -->
<textarea name="message" rows="7" cols="35" wrap="virtual" style="width:425px" class="post" onclick="{if(document.quick_reply.message.value=='{quick_reply.L_QUICK_REPLY_TOPIC}') document.quick_reply.message.value=''}">快速回覆這篇主題</textarea><br />
{quick_reply.U_HIDDEN_FORM_FIELDS}
<input type='image' src='{quick_reply.QUICK_REPLY_IMG}' border='0' alt="{quick_reply.L_QUICK_REPLY_TOPIC}" onClick="if(document.quick_reply.message.value == '{quick_reply.L_QUICK_REPLY_TOPIC}' || document.quick_reply.message.value == ''){ alert('{quick_reply.L_EMPTY_MESSAGE}'); return false;}else{ return true;}" />
</form>
</td>
<!-- END quick_reply -->

templates/subSilver/subSilver.cfg

$images['reply_locked'] = "$current_template_images/{LANG}/reply-locked.gif";
$images['quick_reply'] = "$current_template_images/{LANG}/quick_reply.gif";

language/lang_chinese_traditional_taiwan/lang_main.php

$lang['Post_new_topic'] = '發表新主題';
$lang['Reply_to_topic'] = '回覆主題';
$lang['Reply_with_quote'] = '引言回覆';
$lang['Quick_Reply_to_topic'] = '快速回覆這篇主題';


[/php]

發表於 : 2004-03-03 16:37
GeniusKiKi
您 html 部分的表格排列錯誤...
應該是您修改的時候有地方改錯了...

新手要搞論壇或改風格的東西...
還是建議您要學會真正的網頁編輯方法...
用那種速成的所見即所得的編輯器...
永遠也學不會寫網頁...

http://dob.tnc.edu.tw/

發表於 : 2004-03-03 17:16
Mac
問題應該是出在 viewtopic_body.tpl
自己再檢查一下是不是有安裝錯誤(肯定是自己安裝錯誤了 @@)

~Mac

發表於 : 2004-03-03 17:48
gpolice
感謝mac前輩的指點..問題已解決了...謝謝..<(_ _)>

發表於 : 2004-03-22 03:56
ivan311
在2.0.7a版上也可以正常執行