[2.0.4]快速回覆Quick Reply 1.3.1
版主: 版主管理群
版面規則
請注意!只有發表在 [2.0.x] MOD Database Releases 的外掛,才算是官方認證的外掛。
請注意!只有發表在 [2.0.x] MOD Database Releases 的外掛,才算是官方認證的外掛。
[2.0.4]快速回覆Quick Reply 1.3.1
MOD Name: Quick Reply
Author: Ralendil
MOD Description: This MOD provides a convenient function, which allows users to quickly reply to topics without loading the posting page. Simply speed up the response time and reduce the useless loading.
MOD Version: 1.3.1
Installation Level: Easy
Installation Time: ~ 3 Minutes
Download File:quick_reply_1_3_1.zip
File Size: 5993 Bytes
--------------------------------------------
原始出處
http://www.phpbb.com/phpBB/catdb.php?cat=9
呼~我找之前的用結果都不成功
只好去官網找~和舊的內容有些差異~
以下是它的內容
------------------------------------------------------
[php]<?php
##############################################################
## MOD Title: Quick reply
## MOD Author: OOHOO < webdev@phpbb-tw.net > http://phpbb-tw.net/
## Ralendil < ralendil@hotmail.com > Ravaille Franck - http://civs.org (since 1.1.3)
## MOD Description: This MOD provides a convenient function, which allows users to quickly reply to topics without loading the posting page. Simply speed up the response time and reduce the useless loading.
## MOD Version: 1.3.1
##
## Installation Level: Easy
## Installation Time: 3 min
## Files to Edit: templates/subSilver/viewtopic.tpl,
## viewtopic.php,
## templates/subSilver/subSilver.cfg,
## language/lang_english/lang_main.php,
## Included Files: N/A
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/downloads/
##############################################################
## Author Notes:
## "How to" rewritten to be simple to install
## In french directory you will find all instructions needed to use it with french language.
##############################################################
## MOD History:
## 1.0.0 for phpBB RC2 ~ RC3
## 1.1.0 for phpBB 2.0.0 OOHOO < webdev@phpbb-tw.net > http://phpbb-tw.net/
## 1.1.1 Code for quick reply button include (by Kage Musha)
## 1.1.2 "posting.$phpEx" => append_sid("posting.$phpEx") fixed (by totocat)
## 1.1.3 Changing $forum_row to $forum_topic_data in "viewtopic.php". Update to new template rules
## => single quote instead of double quotes in language files
## 1.1.4 Correction for anonymous feature
## 1.2.0 PhpBB 2.0.4 compatibility
## 1.2.1 "Auth reply" feature added
## 1.3.0 Code rewritten
## 1.3.1 Correction of an error in the form (Morpheus_to_matrix)
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
'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)
);
#
#-----[ AFTER, ADD ]------------------------------------------
#
/* 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());
}
$template->assign_block_vars('quick_reply', array(
'QUOTE_IMG' => $quote_img,
'QUICK_REPLY_IMG' => $quick_reply_img,
'L_QUICK_REPLY_TOPIC' => $quick_reply_alt,
'L_EMPTY_MESSAGE' => $lang['Empty_message'],
'U_QUICK_REPLY' => append_sid('posting.' . $phpEx),
'U_HIDDEN_FORM_FIELDS' => ( ($userdata['user_attachsig'] ? '<input type="hidden" name="attach_sig" value="1" />' : "") . ($userdata['user_notify'] ? '<input type="hidden" name="notify" value="1" />' : "") . '<input type="hidden" name="mode" value="reply" /><input type="hidden" name="post" value="1"><input type="hidden" name="' . POST_TOPIC_URL . '" value="' . $topic_id . '" /> <input type="hidden" name="sid" value="' . $userdata['session_id'] . '" />' )));
}
/* END Quick Reply */
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/viewtopic_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<td width="40%" valign="top" nowrap="nowrap" align="left"><span class="gensmall">{S_WATCH_TOPIC}</span><br />
<br />
{S_TOPIC_ADMIN}</td>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- 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=='{L_QUICK_REPLY_TOPIC}') document.quick_reply.message.value=''}">{L_QUICK_REPLY_TOPIC}</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 -->
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/subSilver.cfg
#
#-----[ FIND ]------------------------------------------
#
$images['reply_locked'] = "$current_template_images/{LANG}/reply-locked.gif";
#
#-----[ AFTER, ADD ]------------------------------------------
#
$images['quick_reply'] = "$current_template_images/{LANG}/quick_reply.gif"; // Quick_Reply_MOD
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
$lang['Post_new_topic'] = 'Post new topic';
$lang['Reply_to_topic'] = 'Reply to topic';
$lang['Reply_with_quote'] = 'Reply with quote';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$lang['Quick_Reply_to_topic'] = 'Quick reply to topic'; // Quick_Reply_MOD
#
#-----[ COPY ]------------------------------------------
#
copy quick_reply.gif to templates/images/lang_english/quick_reply.gif
#
#-----[ SAVE/CLOSE ALL FILES ]----------------------------------------
#
# EoM
?>[/php]
Author: Ralendil
MOD Description: This MOD provides a convenient function, which allows users to quickly reply to topics without loading the posting page. Simply speed up the response time and reduce the useless loading.
MOD Version: 1.3.1
Installation Level: Easy
Installation Time: ~ 3 Minutes
Download File:quick_reply_1_3_1.zip
File Size: 5993 Bytes
--------------------------------------------
原始出處
http://www.phpbb.com/phpBB/catdb.php?cat=9
呼~我找之前的用結果都不成功
只好去官網找~和舊的內容有些差異~
以下是它的內容
------------------------------------------------------
[php]<?php
##############################################################
## MOD Title: Quick reply
## MOD Author: OOHOO < webdev@phpbb-tw.net > http://phpbb-tw.net/
## Ralendil < ralendil@hotmail.com > Ravaille Franck - http://civs.org (since 1.1.3)
## MOD Description: This MOD provides a convenient function, which allows users to quickly reply to topics without loading the posting page. Simply speed up the response time and reduce the useless loading.
## MOD Version: 1.3.1
##
## Installation Level: Easy
## Installation Time: 3 min
## Files to Edit: templates/subSilver/viewtopic.tpl,
## viewtopic.php,
## templates/subSilver/subSilver.cfg,
## language/lang_english/lang_main.php,
## Included Files: N/A
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/downloads/
##############################################################
## Author Notes:
## "How to" rewritten to be simple to install
## In french directory you will find all instructions needed to use it with french language.
##############################################################
## MOD History:
## 1.0.0 for phpBB RC2 ~ RC3
## 1.1.0 for phpBB 2.0.0 OOHOO < webdev@phpbb-tw.net > http://phpbb-tw.net/
## 1.1.1 Code for quick reply button include (by Kage Musha)
## 1.1.2 "posting.$phpEx" => append_sid("posting.$phpEx") fixed (by totocat)
## 1.1.3 Changing $forum_row to $forum_topic_data in "viewtopic.php". Update to new template rules
## => single quote instead of double quotes in language files
## 1.1.4 Correction for anonymous feature
## 1.2.0 PhpBB 2.0.4 compatibility
## 1.2.1 "Auth reply" feature added
## 1.3.0 Code rewritten
## 1.3.1 Correction of an error in the form (Morpheus_to_matrix)
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
'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)
);
#
#-----[ AFTER, ADD ]------------------------------------------
#
/* 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());
}
$template->assign_block_vars('quick_reply', array(
'QUOTE_IMG' => $quote_img,
'QUICK_REPLY_IMG' => $quick_reply_img,
'L_QUICK_REPLY_TOPIC' => $quick_reply_alt,
'L_EMPTY_MESSAGE' => $lang['Empty_message'],
'U_QUICK_REPLY' => append_sid('posting.' . $phpEx),
'U_HIDDEN_FORM_FIELDS' => ( ($userdata['user_attachsig'] ? '<input type="hidden" name="attach_sig" value="1" />' : "") . ($userdata['user_notify'] ? '<input type="hidden" name="notify" value="1" />' : "") . '<input type="hidden" name="mode" value="reply" /><input type="hidden" name="post" value="1"><input type="hidden" name="' . POST_TOPIC_URL . '" value="' . $topic_id . '" /> <input type="hidden" name="sid" value="' . $userdata['session_id'] . '" />' )));
}
/* END Quick Reply */
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/viewtopic_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<td width="40%" valign="top" nowrap="nowrap" align="left"><span class="gensmall">{S_WATCH_TOPIC}</span><br />
<br />
{S_TOPIC_ADMIN}</td>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- 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=='{L_QUICK_REPLY_TOPIC}') document.quick_reply.message.value=''}">{L_QUICK_REPLY_TOPIC}</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 -->
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/subSilver.cfg
#
#-----[ FIND ]------------------------------------------
#
$images['reply_locked'] = "$current_template_images/{LANG}/reply-locked.gif";
#
#-----[ AFTER, ADD ]------------------------------------------
#
$images['quick_reply'] = "$current_template_images/{LANG}/quick_reply.gif"; // Quick_Reply_MOD
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
$lang['Post_new_topic'] = 'Post new topic';
$lang['Reply_to_topic'] = 'Reply to topic';
$lang['Reply_with_quote'] = 'Reply with quote';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$lang['Quick_Reply_to_topic'] = 'Quick reply to topic'; // Quick_Reply_MOD
#
#-----[ COPY ]------------------------------------------
#
copy quick_reply.gif to templates/images/lang_english/quick_reply.gif
#
#-----[ SAVE/CLOSE ALL FILES ]----------------------------------------
#
# EoM
?>[/php]
我也經安裝完成,但是上面的連結:
Download File:quick_reply_1_3_1.zip
File Size: 5993 Bytes
--------------------------------------------
原始出處
http://www.phpbb.com/phpBB/catdb.php?cat=9
好像沒法使用,這些是要下載哪些檔案?不知有否影響?(圖片我是從貴站COPY下來用的)
PS:我只有照本篇步驟執行,但沒有下載上面的檔案!程式就能跑了?
Download File:quick_reply_1_3_1.zip
File Size: 5993 Bytes
--------------------------------------------
原始出處
http://www.phpbb.com/phpBB/catdb.php?cat=9
好像沒法使用,這些是要下載哪些檔案?不知有否影響?(圖片我是從貴站COPY下來用的)
PS:我只有照本篇步驟執行,但沒有下載上面的檔案!程式就能跑了?


