[問題]快速回覆主題之於鎖定主題

phpBB 2 MOD Support
無論是官方或非官方認證之外掛,安裝與使用問題討論。
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群

主題已鎖定
Zhimin_Yah
星球公民
星球公民
文章: 62
註冊時間: 2003-04-19 06:59
來自: 台灣台中

[問題]快速回覆主題之於鎖定主題

文章 Zhimin_Yah »

問題外掛:快速回覆主題 for phpBB2.0.0
參考連結:http://phpbb-tw.net/phpbb/viewtopic.php?t=4965
使用版本:phpBB 2.0.10
網站位置:無, 還在自己的PC測試... 尚未傳去主機...
狀況描述:

基本上是沒有使用上的問題...
我是想請教一下, 如何才能和竹貓一樣呢...

像竹貓的快速回覆, 在有鎖定的主題時,
它的圖示和快速回覆框裡, 字都會變...

就像這樣\r
http://phpbb-tw.net/phpbb/viewtopic.php?t=16112

而oO]-[Oo™兄所提供的快速回覆主題...
照著改後, 並不會和上面的連結裡一樣...

希望有人能教教我那是要怎麼樣作才能改成那樣子...
因為覺得是很有用的功能...

謝謝....
把自己 format , 忘了過去...
羅希
星球普通子民
星球普通子民
文章: 10
註冊時間: 2005-03-31 01:53

文章 羅希 »

我也有此問題,我已經爬文兩天了 :cry:
我自己還碰到一個問題
就是以訪客身份還是看的到快速回覆的窗格\r
如果用快速回覆的話會出現SMTP的錯誤,而且回文還是有登上去\r
要如何解決這問題呢?
希望有人可以解答
謝謝!!
tseesther
星球公民
星球公民
文章: 70
註冊時間: 2003-11-25 13:46

文章 tseesther »

我用的是這個,一裝便ok了,圖檔是一樣的

代碼: 選擇全部

##############################################################
## 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 />
	  &nbsp;<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
或者你移除之前那個,試試這個吧
羅希
星球普通子民
星球普通子民
文章: 10
註冊時間: 2005-03-31 01:53

文章 羅希 »

感謝大大熱情解答,我已安裝使用了
不過還是存在訪客可快速回覆及封鎖主題可快速回覆的問題
是要從哪裡下手呢?
tseesther
星球公民
星球公民
文章: 70
註冊時間: 2003-11-25 13:46

文章 tseesther »

那你論壇的設定是可以讓訪客觀看和留言嗎?
另外當封鎖了主題後,"版面鎖定"的圖有跑出來嗎?還是依然顯示"快速回覆"?

"封鎖主題可快速回覆的問題" <--- 意思是說只是訪客,還是會員也有同樣問題?



或者說說裝過什麼外掛
羅希
星球普通子民
星球普通子民
文章: 10
註冊時間: 2005-03-31 01:53

文章 羅希 »

有設定可以觀看但不能回文,可是訪客如果用快速回文就破功了
版面鎖定的圖有出來
封鎖主題用快速回覆的問題已解決\r

感謝大大熱心幫忙!!
tseesther
星球公民
星球公民
文章: 70
註冊時間: 2003-11-25 13:46

文章 tseesther »

再檢查清楚在viewtopic.php裡肯定有加入這句?

代碼: 選擇全部

if ($is_auth['auth_reply'] == true)
因為你這情況似乎是沒有讀取到有回覆權限的人才會出現快速回覆功能,現在你是什麼人也能用快速回覆
羅希
星球普通子民
星球普通子民
文章: 10
註冊時間: 2005-03-31 01:53

文章 羅希 »

終於解決了,萬分感謝大大!!
主題已鎖定

回到「外掛問題討論」