[問題]Macinscott2安裝Quick reply to topic 無效的問題

phpBB 2 Style Support
討論的範圍包含版面排列、樣式、配置;外掛問題,請到相關版面依發問格式發表!
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群

主題已鎖定
chinling
星球普通子民
星球普通子民
文章: 14
註冊時間: 2005-12-06 17:39

[問題]Macinscott2安裝Quick reply to topic 無效的問題

文章 chinling » 2006-07-16 00:40

●上網方式:固定 IP

●架設主機作業系統:WindowsXP SP2

●安裝的程式:appserv-win32-2.4.4a + phpMyAdmin 2.7.0-pl1

●我的 phpBB2 版本:phpBB2 2.0.18

代碼: 選擇全部

############################################################## 
## Mod Title: Quick reply to topic 
## Mod Version: 1.1.2 
## Author: OOHOO < webdev@phpbb-tw.net > http://phpbb-tw.net/ 
## 
## 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. 
## 
## 
## Installation Level: (easy) 
## Installation Time: 1-5 Minutes 
## Files To Edit: viewtopic.php, /templates/your_template/viewtopic_body.tpl, 
## /language/your_lang/lang_main.php, templates/your_template/your_template.cfg 
## Included Files: quick_reply.gif 
############################################################## 
## Security Disclaimer: This MOD Cannot Be Posted To Or Added At Any Non-Official phpBB Sites 
################################################################# 
## 
## Author Note: This MOD didn't include any BBCode or emotion tips, it's 
## especially for users who are already familiar with those tips or who 
## don't use those tips. 
## 
############################################################## 
## Version History: 
## 1.0.0 for phpBB RC2 ~ RC3 
## 1.1.0 for phpBB 2.0.0 
## 1.1.1 Code for quick reply button include (by Kage Musha) 
## 1.1.2 "posting.$phpEx" => append_sid("posting.$phpEx") fixed (by totocat) 
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
################################################################# 


# 
#-----[ ACTION: OPEN ]------------------------------------------ 
# 

/viewtopic.php 

# 
#-----[ ACTION: FIND ]------------------------------------------ 
# 

$post_img = ( $forum_topic_data['forum_status'] == FORUM_LOCKED ) ? $images['post_locked'] : $images['post_new']; 
$post_alt = ( $forum_topic_data['forum_status'] == FORUM_LOCKED ) ? $lang['Forum_locked'] : $lang['Post_new_topic']; 

# 
#-----[ ACTION: AFTER, ADD ]------------------------------------------ 
# 

$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_MOD 
$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']; // Quick_Reply_MOD 

# 
#-----[ ACTION: FIND ]------------------------------------------ 
# 

'POST_IMG' => $post_img, 
'REPLY_IMG' => $reply_img, 

# 
#-----[ ACTION: AFTER, ADD ]------------------------------------------ 
# 

'QUICK_REPLY_IMG' => $quick_reply_img, // Quick_Reply_MOD 
'L_QUICK_REPLY_TOPIC' => $quick_reply_alt, // Quick_Reply_MOD 
'L_EMPTY_MESSAGE' => $lang['Empty_message'], // Quick_Reply_MOD 
'U_QUICK_REPLY' => append_sid("posting.$phpEx"), // Quick_Reply_MOD 
'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="sid" value="' . $userdata['session_id'] . '" /><input type="hidden" name="mode" value="reply" /><input type="hidden" name="post" value="1"><input type="hidden" name="' . POST_TOPIC_URL . '" value="' . $topic_id . '" />' ), // Quick_Reply_MOD 


# 
#-----[ ACTION: OPEN ]------------------------------------------ 
# 

/templates/your_template/viewtopic_body.tpl 

# 
#-----[ ACTION: FIND ]------------------------------------------ 
# 


<tr> 
<td width="40%" valign="top" nowrap="nowrap" align="left"><span class="gensmall">{S_WATCH_TOPIC}</span>



{S_TOPIC_ADMIN}</td> 
<td align="right" valign="top" nowrap="nowrap">{JUMPBOX}<span class="gensmall">{S_AUTH_LIST}</span></td> 
</tr> 
 

# 
#-----[ ACTION: REPLACE ]------------------------------------------ 
# 


<tr> 
<td width="40%" valign="top" nowrap="nowrap" align="left"> 
<span class="gensmall">{S_WATCH_TOPIC}</span>

{S_TOPIC_ADMIN} 
</td> 
</tr> 
 


<tr> 
<td valign="top" align="left"> 
<form name="quick_reply" action="{U_QUICK_REPLY}" method="post"><!-- Quick_Reply_MOD --> 
<!-- BEGIN quick_reply_anonymous --> 
<span class="gensmall">{L_USERNAME}</span>

<span class="genmed"><input type="text" class="post" tabindex="1" name="username" size="25" maxlength="25" value="" /></span>

<!-- END quick_reply_anonymous --> 
<textarea name="message" rows="7" cols="35" wrap="virtual" style="width:500px" class="post" onclick="{if(document.quick_reply.message.value=='{L_QUICK_REPLY_TOPIC}') document.quick_reply.message.value=''}">{L_QUICK_REPLY_TOPIC}</textarea>

{U_HIDDEN_FORM_FIELDS} 
<input type="image" src="{QUICK_REPLY_IMG}" border="0" alt="{L_QUICK_REPLY_TOPIC}" onClick="if(document.quick_reply.message.value == '{L_QUICK_REPLY_TOPIC}' || document.quick_reply.message.value == ''){ alert('{L_EMPTY_MESSAGE}'); return false;}else{ return true;}" /> 
</form> 
</td> 
<td align="right" valign="top" nowrap="nowrap">{JUMPBOX}<span class="gensmall">{S_AUTH_LIST}</span></td> 
</tr> 
 


# 
#-----[ ACTION: OPEN ]------------------------------------------ 
# 

/language/your_lang/lang_main.php 

# 
#-----[ ACTION: FIND ]------------------------------------------ 
# 
$lang['Post_new_topic'] = "Post new topic"; 
$lang['Reply_to_topic'] = "Reply to topic"; 
$lang['Reply_with_quote'] = "Reply with quote"; 

# 
#-----[ ACTION: ADD ]------------------------------------------ 
# 

$lang['Quick_Reply_to_topic'] = "Quick reply to topic"; // Quick_Reply_MOD 


# 
#-----[ ACTION: OPEN ]------------------------------------------ 
# 

templates/your_template/your_template.cfg 

# 
#-----[ ACTION: FIND ]------------------------------------------ 
# 

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

# 
#-----[ ACTION: AFTER, ADD ]------------------------------------------ 
# 

$images['quick_reply'] = "$current_template_images/{LANG}/quick_reply.gif"; // Quick_Reply_MOD 

# 
#-----[ ACTION: SAVE & CLOSE FILE ]------------------------------------------ 
# 


# 
#-----[ ACTION: UPLOAD ]------------------------------------------ 
# 

quick_reply.gif to templates/your_template/images/your_lang/ 

# 
# EoM

原本是安裝在 SpacePilot3K 風格已經使用半年多,這幾天把風格換成Macinscott2後,

安裝此外掛到Macinscott2風格都沒有任何作用~

Ps.剛在subSilver安裝也是OK的,沒有問題,可以正常使用
只有改templates/ subSilver/viewtopic_body.tpl和templates/subSilveryour_template.cfg

下面是templates/ Macinscott2/viewtopic_body.tpl

代碼: 選擇全部


<table width="95%" cellspacing="2" cellpadding="2" border="0">
  <tr> 
	<td align="left" valign="bottom" colspan="2"><a class="maintitle" href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a><br />
	  <span class="gensmall"><b>{PAGINATION}</b><br />
	  &nbsp; </span></td>
  </tr>
</table>

<table width="95%" cellspacing="2" cellpadding="2" border="0">
  <tr> 
	<td align="left" valign="bottom" nowrap="nowrap"><span class="nav"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" align="middle" /></a>&nbsp;&nbsp;&nbsp;<a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" align="middle" /></a></span></td>
	<td align="left" valign="middle" width="50%"><span class="nav">&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a> 
	  &raquo;  <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td>
    <td align="right" valign="middle" width="50%"><span class="nav"><a href="{U_VIEW_OLDER_TOPIC}" class="nav">{L_VIEW_PREVIOUS_TOPIC}</a> :: <a href="{U_VIEW_NEWER_TOPIC}" class="nav">{L_VIEW_NEXT_TOPIC}</a> &nbsp;</span></td>
  </tr>
</table>
	{POLL_DISPLAY} 
<!-- BEGIN postrow -->
<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="cattitle">{postrow.POST_SUBJECT}</span></td>
    <td width="3%" align="right"><img src="templates/Macinscott2/images/buttons_right.gif" width="66" height="23"></td>
  </tr>
</table>
<table class="forumline" width="95%" cellspacing="1" cellpadding="0" border="0">
	<tr align="right">
		<td class="row4" colspan="2" align="center"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td align="left">&nbsp;<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></td>
            <td align="right" valign="center" nowrap="nowrap"> {postrow.QUOTE_IMG} {postrow.EDIT_IMG} {postrow.DELETE_IMG} {postrow.IP_IMG}&nbsp;</td>
          </tr>
        </table>		  </td>
	</tr>

	<tr>
		<th class="thTop" nowrap="nowrap">{L_MESSAGE}</th>
	</tr>

	<tr> 
		<td colspan="2" align="left" valign="top" class="{postrow.ROW_CLASS}">
		<table width="100%"  border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td width="150" align="left" valign="top">
<table border="0" cellpadding="0" cellspacing="0" width="150">
  <tr>
   <td width="12"><img src="templates/Macinscott2/images/spacer.gif" width="12" height="1" border="0" alt=""></td>
   <td width="125"><img src="templates/Macinscott2/images/spacer.gif" width="125" height="1" border="0" alt=""></td>
   <td><img src="templates/Macinscott2/images/spacer.gif" width="13" height="1" border="0" alt=""></td>
   <td width="10"><img src="templates/Macinscott2/images/spacer.gif" width="1" height="1" border="0" alt=""></td>
  </tr>

  <tr>
     <tr>
   <td><img name="topic_top_left" src="templates/Macinscott2/images/topic_top_left.gif" width="12" height="14" border="0" alt=""></td>
   <td background="templates/Macinscott2/images/topic_top.gif"><img name="topic_top" src="templates/Macinscott2/images/spacer.gif" width="1" height="14" border="0" alt=""></td>
   <td><img name="topic_top_right" src="templates/Macinscott2/images/topic_top_right.gif" width="13" height="14" border="0" alt=""></td>
  </tr>
  <tr>
   <td align="left" valign="top" background="templates/Macinscott2/images/topic_left.gif">&nbsp;</td>
   <td bgcolor="#F2F2F2"><span class="name"><a name="{postrow.U_POST_ID}"></a><b>{postrow.POSTER_NAME}</b></span><br /><span class="postdetails">{postrow.POSTER_RANK}<br />{postrow.RANK_IMAGE}<p align="center">{postrow.POSTER_AVATAR}</p>{postrow.POSTER_JOINED}<br />{postrow.POSTER_POSTS}<br />{postrow.POSTER_FROM}</span></td>
   <td width="13" align="left" valign="top" background="templates/Macinscott2/images/topic_right.gif"></td>
  </tr>
  <tr>
   <td align="left" valign="top"><img name="topic_bttm_left" src="templates/Macinscott2/images/topic_bttm_left.gif" width="12" height="13" border="0" alt=""></td>
   <td align="left" valign="top" background="templates/Macinscott2/images/topic_bttm.gif"><img src="templates/Macinscott2/images/spacer.gif" width="1" height="13"></td>
   <td align="left" valign="top"><img name="topic_bttm_right" src="templates/Macinscott2/images/topic_bttm_right.gif" width="13" height="13" border="0" alt=""></td>
  </tr>
</table>
</td>
	<td align="center" valign="top">
   <table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td colspan="2"></td>
	</tr>
	<tr>
				<td colspan="2"><span class="postbody"><br />{postrow.MESSAGE}{postrow.SIGNATURE}</span><span class="gensmall">{postrow.EDITED_MESSAGE}</span></td>
	</tr>
	</table>
	</td>
		</tr>
	<tr>
		<td class="row4" width="150" align="center" valign="middle">
<a href="#top"><img src="templates/Macinscott2/images/lang_english/back_to_top.gif" border="0" vspace="4"></a></td>
	<td class="row4">
<table cellspacing="0" cellpadding="0" border="0" height="18" width="18">
			<tr> 
				<td valign="middle" nowrap="nowrap">{postrow.PROFILE_IMG}{postrow.WEBLOG_IMG}{postrow.PM_IMG} {postrow.EMAIL_IMG} {postrow.WWW_IMG} {postrow.AIM_IMG} {postrow.YIM_IMG} {postrow.MSN_IMG}<script language="JavaScript" type="text/javascript"><!-- 

	if ( navigator.userAgent.toLowerCase().indexOf('mozilla') != -1 && navigator.userAgent.indexOf('5.') == -1 && navigator.userAgent.indexOf('6.') == -1 )
		document.write(' {postrow.ICQ_IMG}');
	else
		document.write('</td><td>&nbsp;</td><td valign="top" nowrap="nowrap"><div style="position:relative"><div style="position:absolute">{postrow.ICQ_IMG}</div><div style="position:absolute;left:3px;top:-1px">{postrow.ICQ_STATUS_IMG}</div></div>');
				
				//--></script><noscript>{postrow.ICQ_IMG}</noscript></td>
	</tr>
	</table>
	</td>
	</tr>
</table>
	</td>
	</tr>

<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>
</table>

	<!-- END postrow -->

<table width="95%" cellspacing="2" cellpadding="2" border="0" align="center">
	<tr align="right"> 
	<td width="10%" align="left" valign="middle" nowrap="NOWRAP">
	<span class="nav"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" align="middle" /></a>&nbsp;&nbsp;&nbsp;<a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" align="middle" /></a></span></td>
	    <td width="67%" align="left" valign="middle"><span class="nav">&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a> 
	  &raquo; <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td>
	    <td width="23%" height="28" valign="middle" nowrap>{S_TOPIC_ADMIN}
	      <table cellspacing="0" cellpadding="0" border="0">
          <tr>

              <td align="right"></td>

          </tr>
      </table></td>
	</tr>
</table>

<table width="95%" cellspacing="2" cellpadding="2" border="0" align="center">
  <tr> 
	<td align="left" valign="top" nowrap="nowrap"><span class="gensmall">{S_WATCH_TOPIC}</span><br />
	<span class="nav">{PAGE_NUMBER}</span>
 </td>
	<td width="100%" align="left" valign="middle" nowrap></td>
	<td align="right" valign="top" nowrap="nowrap"><span class="gensmall">{S_TIMEZONE}</span><br /><span class="nav">{PAGINATION}</span> 
    </td>
  </tr>
  <tr>
	<td align="left" colspan="3"></td>
  </tr>
</table>

<table width="95%" cellspacing="2" border="0" align="center">

<tr> 
	<td width="40%" valign="top" nowrap="nowrap" align="left"><p class="gensmall">{L_DISPLAY_POSTS}:<br />
	        <form method="post" action="{S_POST_DAYS_ACTION}">
	  {S_SELECT_POST_DAYS}&nbsp;{S_SELECT_POST_ORDER}&nbsp;
        <input type="submit" value="{L_GO}" class="liteoption" name="submit" />
      </p>	  </td>            </form>
	<td align="right" valign="top" nowrap="nowrap">{JUMPBOX}<span class="gensmall">{S_AUTH_LIST}</span></td>
  </tr> 
</table>

代碼: 選擇全部

<tr> 
	<td width="40%" valign="top" nowrap="nowrap" align="left"><p class="gensmall">{L_DISPLAY_POSTS}:<br />
	        <form method="post" action="{S_POST_DAYS_ACTION}">
	  {S_SELECT_POST_DAYS}&nbsp;{S_SELECT_POST_ORDER}&nbsp;
        <input type="submit" value="{L_GO}" class="liteoption" name="submit" />
      </p>	  </td>            </form>
	<td align="right" valign="top" nowrap="nowrap">{JUMPBOX}<span class="gensmall">{S_AUTH_LIST}</span></td>
  </tr> 



我是將上面代碼(也就是最下面的<table>...</table>)REPLACE(取代)成下面

代碼: 選擇全部

<tr> 
<td width="40%" valign="top" nowrap="nowrap" align="left"> 
<span class="gensmall">{S_WATCH_TOPIC}</span>

{S_TOPIC_ADMIN} 
</td> 
</tr> 
 


<tr> 
<td valign="top" align="left"> 
<form name="quick_reply" action="{U_QUICK_REPLY}" method="post"><!-- Quick_Reply_MOD --> 
<!-- BEGIN quick_reply_anonymous --> 
<span class="gensmall">{L_USERNAME}</span>

<span class="genmed"><input type="text" class="post" tabindex="1" name="username" size="25" maxlength="25" value="" /></span>

<!-- END quick_reply_anonymous --> 
<textarea name="message" rows="7" cols="35" wrap="virtual" style="width:500px" class="post" onclick="{if(document.quick_reply.message.value=='{L_QUICK_REPLY_TOPIC}') document.quick_reply.message.value=''}">{L_QUICK_REPLY_TOPIC}</textarea>

{U_HIDDEN_FORM_FIELDS} 
<input type="image" src="{QUICK_REPLY_IMG}" border="0" alt="{L_QUICK_REPLY_TOPIC}" onClick="if(document.quick_reply.message.value == '{L_QUICK_REPLY_TOPIC}' || document.quick_reply.message.value == ''){ alert('{L_EMPTY_MESSAGE}'); return false;}else{ return true;}" /> 
</form> 
</td> 
<td align="right" valign="top" nowrap="nowrap">{JUMPBOX}<span class="gensmall">{S_AUTH_LIST}</span></td> 
</tr> 
 
但完全沒有任何作用~ :-o

也有參考下面這篇,也有安裝過Simple Quick Reply MOD

http://phpbb-tw.net/phpbb/viewtopic.php ... acinscott2

但也是都完全沒任何作用~

請各位高手抽空幫小弟解惑,先謝謝各位了 :oops:

頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8632
註冊時間: 2004-04-30 01:54
來自: Taiwan

文章 心靈捕手 » 2006-07-16 15:48

建議您:
1. 外掛貼出參考 (下載) 連結即可.
2. 您應該貼出論壇網址 (以及提供測試帳號與密碼).
3. 以下的修改, 提供您參考:
#
#-----[ FIND ]-----
#

代碼: 選擇全部

<tr>
	<td class="row1" align="left" valign="top">
	<table border="0" cellspacing="0" cellpadding="5" width="100%">
	<tr>
		<td align="left" valign="top">
			<span class="gensmall">{S_AUTH_LIST}</span>
		</td>
		<td align="right" valign="top">
			<span class="gensmall">{S_TIMEZONE}&nbsp;&nbsp;<br />
			{PAGE_NUMBER}&nbsp;&nbsp;</span>
			<span class="nav"><b>{PAGINATION}</b></span><br />
			<span class="gensmall">{S_WATCH_TOPIC}</span>
		</td>
	</tr>
	</table>
	</td>
</tr>
#
#-----[ REPLACE WITH ]-----
#

代碼: 選擇全部

<tr>
	<td class="row1" align="left" valign="top">
	<table border="0" cellspacing="0" cellpadding="5" width="100%">
	<tr>
		<td align="left" valign="top">
     <form name="quick_reply" action="{U_QUICK_REPLY}" method="post"><!-- Quick_Reply_MOD --> 
      <!-- BEGIN quick_reply_anonymous --> 
      <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 quick_reply_anonymous --> 
      <textarea name="message" rows="7" cols="35" wrap="virtual" style="width:500px" class="post" onclick="{if(document.quick_reply.message.value=='{L_QUICK_REPLY_TOPIC}') document.quick_reply.message.value=''}">{L_QUICK_REPLY_TOPIC}</textarea><br /> 
      {U_HIDDEN_FORM_FIELDS} 
      <input type="image" src="{QUICK_REPLY_IMG}" border="0" alt="{L_QUICK_REPLY_TOPIC}" onClick="if(document.quick_reply.message.value == '{L_QUICK_REPLY_TOPIC}' || document.quick_reply.message.value == ''){ alert('{L_EMPTY_MESSAGE}'); return false;}else{ return true;}" /> 
     </form>
		</td>
		<td align="right" valign="top">
			<span class="gensmall">{S_TIMEZONE}&nbsp;&nbsp;<br />
			{PAGE_NUMBER}&nbsp;&nbsp;</span>
			<span class="nav"><b>{PAGINATION}</b></span><br />
			<span class="gensmall">{S_WATCH_TOPIC}</span><br />
			<span class="gensmall">{S_AUTH_LIST}</span>
		</td>
	</tr>
	</table>
	</td>
</tr>
Demo:
http://wang5555.dyndns.org/test/phpbb2/ ... .php?p=4#4

Test ID / Password:
goodluck / 12345678
施比受有福,歡迎來信賜教,謝謝 & 再見!
祝福您 好運 ^_^
歡迎加入★★心靈捕手★★ :: 討論區!!
http://wang5555.hopto.org/phpBB3/
p.s. 奉老婆之命:在晚上十一點前,得關機睡覺!!!

chinling
星球普通子民
星球普通子民
文章: 14
註冊時間: 2005-12-06 17:39

文章 chinling » 2006-07-16 18:54

sorry,小弟下次會更注意論壇發文請教問題的格式~

網址 : http://clanee.no-ip.org/phpBB2/index.php

測試 ID : master

password : 12345678

我在我的viewtopic_body.tpl找不到心靈捕手大大提供的那一段要REPLACE :-o

我安裝的外掛有

last_visit_1.2.8em - 沒改到viewtopic_body.tpl

shoutbox_1.1.6em - 沒改到viewtopic_body.tpl

the_blog_mod_023 - 有改到viewtopic_body.tpl

advanced_links_mod - 沒改到viewtopic_body.tpl

Codecrush IP - 沒改到viewtopic_body.tpl

跑馬燈公告

可以請大大在指點小弟到底是哪裡有問題嗎 :oops:

the_blog_mod_023

代碼: 選擇全部

#-----[ OPEN ]------------------------------------------
#
templates/subSilver/viewtopic_body.tpl

#
#-----[ FIND ]------------------------------------------
# (Partial Line)
				<td valign="middle" nowrap="nowrap">{postrow.PROFILE_IMG} 

#
#-----[ IN-LINE FIND ]------------------------------------------
#
 {postrow.EMAIL_IMG}

#
#-----[ AFTER, ADD ]------------------------------------------
#
 {postrow.WEBLOG_IMG}

#

頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8632
註冊時間: 2004-04-30 01:54
來自: Taiwan

文章 心靈捕手 » 2006-07-16 23:35

也許是風格版本有異.

建議您:
貼出此風格 (Macinscott2) 的參考 (下載) 連結.
我在針對此版修改看看.

ps.
移動 '風格討論' 版面.
施比受有福,歡迎來信賜教,謝謝 & 再見!
祝福您 好運 ^_^
歡迎加入★★心靈捕手★★ :: 討論區!!
http://wang5555.hopto.org/phpBB3/
p.s. 奉老婆之命:在晚上十一點前,得關機睡覺!!!

chinling
星球普通子民
星球普通子民
文章: 14
註冊時間: 2005-12-06 17:39

文章 chinling » 2006-07-17 00:24

按我下載Macinscott2

謝謝心靈捕手老師 :oops:

頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8632
註冊時間: 2004-04-30 01:54
來自: Taiwan

文章 心靈捕手 » 2006-07-17 07:06

chinling 寫:按我下載Macinscott2

謝謝心靈捕手老師 :oops:
我嘗試針對此檔 (viewtopic_body.tpl) 做部分的修改, 新增快速回覆的程式碼,
結果是無法正常顯示 viewtopic.php

其實, 該檔和我手上的版本原始碼, 差異頗大;
就語法結構來看, 我會比較建議使用我的.

建議您:
將下列 (修改快速回覆後) 程式碼完全覆蓋此檔

代碼: 選擇全部

<table width="95%" cellspacing="2" cellpadding="2" border="0">
  <tr> 
	<td align="left" valign="middle"><span class="nav">
	  <a href="{U_INDEX}" class="nav">{L_INDEX}</a> 
	  :: <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a>
	  :: <a class="nav" href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a></span></td>
	 <td align="right" valign="middle"><span class="nav"><b>{PAGINATION}</b></span></td>
  </tr>
  <tr>
    <td align="left" valign="middle"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" align="middle" /></a>&nbsp;&nbsp;<a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" align="middle" /></a></td>
	<td align="right" valign="middle"><span class="nav">
	<a href="{U_VIEW_OLDER_TOPIC}" class="nav">{L_VIEW_PREVIOUS_TOPIC}</a> :: <a href="{U_VIEW_NEWER_TOPIC}" class="nav">{L_VIEW_NEXT_TOPIC}</a>&nbsp;
	</span></td>
  </tr>
</table>

{POLL_DISPLAY} 

<!-- BEGIN postrow -->
<a name="{postrow.U_POST_ID}"></a>
<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="cattitle">{postrow.POST_SUBJECT}</span></td>
    <td width="3%" align="right"><img src="templates/Macinscott2/images/buttons_right.gif" width="66" height="23"></td>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="1" width="95%" class="forumline">
<tr>
	<td class="row4" align="center" valign="middle"><table border="0" cellspacing="0" cellpadding="2" width="100%">
	<tr height="22">
		<td align="left" valign="middle" nowrap="nowrap"><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="genmed">{L_POSTED}: {postrow.POST_DATE}</span></td>
		<td align="right" valign="middle" nowrap="nowrap">{postrow.QUOTE_IMG} {postrow.EDIT_IMG} {postrow.DELETE_IMG} {postrow.IP_IMG} </td>
	</tr></table></td>
</tr>
<tr>
	<td class="row1" align="left" valign="top" width="100%"><table border="0" cellspacing="0" cellpadding="0" width="100%"><!-- main table start -->
	<tr>
		<td width="150" align="left" valign="top" rowspan="2"><table border="0" cellspacing="0" cellpadding="0" width="100%"><!-- left row table start -->
		<tr>
			<td width="100%" align="left" valign="top" background="templates/Macinscott2/images/post_bkgd.gif"><table border="0" cellspacing="0" cellpadding="4">
			<tr>
								<td align="left" valign="top"><table border="0" cellspacing="0" cellpadding="0">
				<tr><td nowrap="nowrap"><span class="name"><b>{postrow.POSTER_NAME}</b></span></td></tr>
				<tr><td nowrap="nowrap"><span class="postdetails">{postrow.POSTER_RANK}</span></td></tr>
				<tr><td nowrap="nowrap"><span class="postdetails">{postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}</span></tr>
				<tr><td><img src="templates/Macinscott2/images/spacer.gif" width="120" height="5" border="0" alt="" /></td></tr>
				<tr><td><span class="postdetails">{postrow.POSTER_JOINED}</span></td></tr>
				<tr><td><span class="postdetails">{postrow.POSTER_POSTS}</span></td></tr>
				<tr><td><span class="postdetails">{postrow.POSTER_FROM}</span></td></tr>
				</table></td>
			</tr>
			</table><br /><br /></td>
			<td width="10" background="templates/Macinscott2/images/post_right.gif"><img src="templates/Macinscott2/images/spacer.gif" width="10" height="1" border="0" /></td>
		</tr>
		<tr>
			<td height="10" background="templates/Macinscott2/images/post_bottom.gif"><img src="templates/Macinscott2/images/spacer.gif" width="1" height="10" border="0" /></td>
			<td width="10" height="10"><img src="templates/Macinscott2/images/post_corner.gif" width="10" height="10" border="0" /></td>
		</tr>
	<!-- left row table end --></table>
		  <table width="100%"  border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td align="center"><a href="#top"><img src="templates/Macinscott2/images/lang_english/back_to_top.gif" width="91" height="24" vspace="4" border="0"></a></td>
            </tr>
          </table></td>
		<td class="row1" align="left" valign="top" width="100%"><table border="0" cellspacing="0" cellpadding="5" width="100%"><!-- right top row table start -->
		<tr>
			<td width="100%"><span class="postbody">{postrow.MESSAGE}</span></td>
		</tr>
		<!-- right top row table end --></table></td>
	</tr>
	<tr>
		<td class="row1" align="left" valign="bottom" nowrap="nowrap"><table border="0" cellspacing="0" cellpadding="5" width="100%"><!-- right bottom row start -->
		<tr>
			<td width="100%"><span class="postbody"><span class="gensmall">{postrow.EDITED_MESSAGE}</span>{postrow.SIGNATURE}</span></td>
		</tr>
		<!-- right bottom row end --></table></td>
	</tr>
	</table></td>
</tr>
<tr>
	<td height="24" align="left" valign="middle" class="row4"><table border="0" cellspacing="0" cellpadding="3">
	<tr>
		<td width="135"><img src="templates/Macinscott2/images/spacer.gif" width="120" height="1" border="0" /></td>
		<td align="left" valign="middle" nowrap="nowrap">{postrow.PROFILE_IMG} {postrow.SEARCH_IMG2} {postrow.PM_IMG} {postrow.EMAIL_IMG} {postrow.WWW_IMG} {postrow.AIM_IMG} {postrow.YIM_IMG} {postrow.MSN_IMG}</td>
		<td align="left" valign="top" nowrap="nowrap"><script language="JavaScript" type="text/javascript"><!-- 

	if ( navigator.userAgent.toLowerCase().indexOf('mozilla') != -1 && navigator.userAgent.indexOf('5.') == -1 && navigator.userAgent.indexOf('6.') == -1 )
		document.write(' {postrow.ICQ_IMG}');
	else
		document.write('<div style="position:relative"><div style="position:absolute">{postrow.ICQ_IMG}</div><div style="position:absolute;left:4px;top:-1px">{postrow.ICQ_STATUS_IMG}</div></div>');
		  
		  //--></script><noscript>{postrow.ICQ_IMG}</noscript></td>
	    <td width="60"><img src="templates/Macinscott2/images/spacer.gif" width="60" height="1" border="0" /></td>
	</tr></table></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>
</table>
<!-- END postrow -->

<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="cattitle">&nbsp; &nbsp;{TOPIC_TITLE}</span></td>
    <td width="3%" align="right"><img src="templates/Macinscott2/images/buttons_right.gif" width="66" height="23"></td>
  </tr>
</table>
<table class="forumline" width="95%" cellspacing="1" cellpadding="" border="0">
<tr>
	<td class="row4" align="left" height="25">&nbsp;<a class="th" href="{U_INDEX}">{L_INDEX}</a> :: <a class="th" href="{U_VIEW_FORUM}">{FORUM_NAME}</a> :: <a class="th" href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a></th>
</tr>
<tr>
	<td class="row1" align="left" valign="top">
	<table border="0" cellspacing="0" cellpadding="5" width="100%">
	<tr>
		<td align="left" valign="top">
     <form name="quick_reply" action="{U_QUICK_REPLY}" method="post"><!-- Quick_Reply_MOD --> 
      <!-- BEGIN quick_reply_anonymous --> 
      <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 quick_reply_anonymous --> 
      <textarea name="message" rows="7" cols="35" wrap="virtual" style="width:500px" class="post" onclick="{if(document.quick_reply.message.value=='{L_QUICK_REPLY_TOPIC}') document.quick_reply.message.value=''}">{L_QUICK_REPLY_TOPIC}</textarea><br /> 
      {U_HIDDEN_FORM_FIELDS} 
      <input type="image" src="{QUICK_REPLY_IMG}" border="0" alt="{L_QUICK_REPLY_TOPIC}" onClick="if(document.quick_reply.message.value == '{L_QUICK_REPLY_TOPIC}' || document.quick_reply.message.value == ''){ alert('{L_EMPTY_MESSAGE}'); return false;}else{ return true;}" /> 
     </form>
		</td>
		<td align="right" valign="top">
			<span class="gensmall">{S_TIMEZONE}&nbsp;&nbsp;<br />
			{PAGE_NUMBER}&nbsp;&nbsp;</span>
			<span class="nav"><b>{PAGINATION}</b></span><br />
			<span class="gensmall">{S_WATCH_TOPIC}</span><br />
			<span class="gensmall">{S_AUTH_LIST}</span>
		</td>
	</tr>
	</table>
	</td>
</tr>
<tr>
	<td class="row4" align="center" valign="middle" nowrap="nowrap"><table border="0" cellspacing="0" cellpadding="2" width="100%">
	<tr>
		<form method="post" action="{S_POST_DAYS_ACTION}"><td align="left" valign="middle" nowrap="nowrap">{S_SELECT_POST_DAYS}&nbsp;{S_SELECT_POST_ORDER}&nbsp;<input type="submit" value="{L_GO}" class="liteoption" name="submit" /></td></form>
		<td align="right" valign="middle" nowrap="nowrap">{JUMPBOX}</td>
	</tr>
	</table>
	</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>
</table>

<table border="0" cellspacing="0" cellpadding="5" width="95%">
<tr>
	<td align="left" valign="top">&nbsp;<a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" align="middle" /></a>&nbsp;&nbsp;<a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" align="middle" /></a></td>
	<td align="right" valign="top">{S_TOPIC_ADMIN}&nbsp;</td>
</tr>
</table>
ps.
抱歉! 一時間找不到, 當初下載此風格的參考連結處. :oops:
施比受有福,歡迎來信賜教,謝謝 & 再見!
祝福您 好運 ^_^
歡迎加入★★心靈捕手★★ :: 討論區!!
http://wang5555.hopto.org/phpBB3/
p.s. 奉老婆之命:在晚上十一點前,得關機睡覺!!!

chinling
星球普通子民
星球普通子民
文章: 14
註冊時間: 2005-12-06 17:39

文章 chinling » 2006-07-17 19:06

可以了~

用心靈捕手老師的 viewtopic_body.tpl 再修改一點就可以了~

感謝您的幫忙,謝謝 :-D

主題已鎖定

回到「風格問題討論」