[求救]笑臉、標籤鈕不能動作(DONE)

phpBB Installation & Usage Support
phpBB 2 安裝於各類型作業平台之問題討論;外掛問題,請到相關版面依發問格式發表!
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群

版面規則
本區是討論關於 phpBB 2.0.X 架設安裝上的問題,只要有安裝任何外掛,請到外掛討論相關版面按照公告格式發表。
(發表文章請按照公告格式發表,違者砍文)
主題已鎖定
黑風凱特
星球公民
星球公民
文章: 267
註冊時間: 2004-12-13 22:12
來自: 台灣台北
聯繫:

[求救]笑臉、標籤鈕不能動作(DONE)

文章 黑風凱特 »

出現網頁發生錯誤....
跟驚嘆號三角黃色標誌javascrip:emoticon....
按下去完全沒反應~只能單純的打字、送出~不能加入笑臉或標籤功能>"<....
請問我是改到什麼呢??

圖檔


先付上我的viewtopic檔,不知道是不是這個檔的錯....

代碼: 選擇全部

<table border="0" cellpadding="0" cellspacing="0" class="tbn">
<tr>
<td class="tbnl" rowspan="3"><img src="images/spacer.gif" alt="" width="76" height="39" /></td>
<td height="17"></td>
<td height="17"></td>
</tr>
<td class="tbnbot"><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span>  &raquo; <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td>
<td class="tbnr"><img src="images/spacer.gif" alt="" width="39" height="22" /></td>
</tr>
</table>
<br />
<table width="100%" 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>
  </tr>
</table>


<table class="forumline" width="100%" cellspacing="1" cellpadding="0" border="0">
	<tr align="right">
		<td class="cat" colspan="2" height="28"><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>
	{POLL_DISPLAY} 
	<tr>
		<th class="thLeft" width="150" height="26" nowrap="nowrap">{L_AUTHOR}</th>
		<th class="thRight" nowrap="nowrap">{L_MESSAGE}</th>
	</tr>
	<!-- BEGIN postrow -->
	<tr> 
		<td width="150" align="left" valign="top" class="{postrow.ROW_CLASS}"><span style="filter: glow(color=orange,strength=3); height:10px; color:white; padding:1px; font-size : 11px"><a name="{postrow.U_POST_ID}"></a><b>{postrow.POSTER_NAME}</b></span><br /><span class="postdetails">{postrow.POSTER_RANK}<br />{postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}<br /><br />{postrow.POSTER_GENDER}<br />{postrow.POSTER_JOINED}<br />{postrow.POSTER_POSTS}<br />{postrow.POSTER_FROM}<br />{postrow.CASH}</span><br /></td>
		<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>
	</tr>
	<tr> 
		<td class="{postrow.ROW_CLASS}" width="150" align="left" valign="middle"><span class="nav"><a href="#top" class="nav">{L_BACK_TO_TOP}</a></span></td>
		<td class="{postrow.ROW_CLASS}" width="100%" height="28" valign="bottom" nowrap="nowrap"><table cellspacing="1" cellpadding="0" border="0" height="18" width="18">
			<tr> 
				<td valign="middle" nowrap="nowrap">{postrow.PROFILE_IMG} {postrow.PM_IMG} {postrow.EMAIL_IMG} {postrow.WWW_IMG} {postrow.AIM_IMG} {postrow.YIM_IMG} {postrow.MSN_IMG} {postrow.ICQ_IMG}</td>
			</tr>
		</table></td>
	</tr>
	<!-- END postrow -->
	<tr align="center"> 
		<td class="cat" colspan="2" height="28"><table cellspacing="1" cellpadding="0" border="0">
			<tr><form method="post" action="{S_POST_DAYS_ACTION}">
				<td align="center"><span class="gensmall">{L_DISPLAY_POSTS}: {S_SELECT_POST_DAYS}&nbsp;{S_SELECT_POST_ORDER}&nbsp;<input type="submit" value="{L_GO}" class="liteoption" name="submit" /></span></td>
			</form></tr>
		</table></td>
	</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" class="tbl"><tr><td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td><td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td><td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td></tr></table>

<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
  <tr> 
	<td 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 align="left" valign="middle" width="100%"><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="top" nowrap="nowrap"><span class="gensmall">{S_TIMEZONE}</span><br /><span class="nav">{PAGINATION}</span> 
	  </td>
  </tr>
  <tr>
	<td align="left" colspan="3"><span class="nav">{PAGE_NUMBER}</span></td>
  </tr>
</table>

<table width="100%" cellspacing="2" border="0" align="center">
  <tr> 
	<td width="40%" valign="top" nowrap="nowrap" align="left"><span class="gensmall">{S_WATCH_TOPIC}</span><br />
	  &nbsp;<br />
	  {S_TOPIC_ADMIN}</td>
	<td align="right" valign="top" nowrap="nowrap">{JUMPBOX}<span class="gensmall">{S_AUTH_LIST}</span></td>
  </tr>
</table>
最後由 黑風凱特 於 2005-02-27 01:39 編輯,總共編輯了 1 次。
圖檔
~倉木麻衣~
竹貓忠實會員
竹貓忠實會員
文章: 1405
註冊時間: 2004-03-21 21:00

文章 ~倉木麻衣~ »

問題並不是出在viewtopic上~而是posting_body.tpl
剛看了一下原始檔~問題代碼為\r

代碼: 選擇全部

function checkForm() {
[color=blue]else[/color] if(document.post.subject.value.substring(0, 3) != '' && document.post.subject.value.length < 8 )
{
formErrors = "除了選擇主題類型外,請打上標題";
}
一開始的判斷式不應該是由else開頭\r
將他刪除即可
黑風凱特
星球公民
星球公民
文章: 267
註冊時間: 2004-12-13 22:12
來自: 台灣台北
聯繫:

文章 黑風凱特 »

參考連結 : http://phpbb-tw.net/phpbb/viewtopic.php?p=105355#105355

代碼: 選擇全部

打開posting_body.tpl 
找function checkForm() 
在適當的地方加入 

else if(document.post.subject.value.substring(0, 3) != '' && document.post.subject.value.length < 5 ) 
{ 
formErrors = "除了選擇主題類型外,請打上標題"; 
} 
這段我看不懂~適當的地方是指在\r

function checkForm()

之後的任意位子加入都行嗎?~我加入後沒用處 :oops:
圖檔
~倉木麻衣~
竹貓忠實會員
竹貓忠實會員
文章: 1405
註冊時間: 2004-03-21 21:00

文章 ~倉木麻衣~ »

黑風凱特 寫:參考連結 : http://phpbb-tw.net/phpbb/viewtopic.php?p=105355#105355

代碼: 選擇全部

打開posting_body.tpl 
找function checkForm() 
在適當的地方加入 

else if(document.post.subject.value.substring(0, 3) != '' && document.post.subject.value.length < 5 ) 
{ 
formErrors = "除了選擇主題類型外,請打上標題"; 
} 
這段我看不懂~適當的地方是指在\r

function checkForm()

之後的任意位子加入都行嗎?~我加入後沒用處 :oops:
以最原始未裝過任何mod的posting_body.tpl來說好了
它的意思是指加在底下藍色部份之後

代碼: 選擇全部

function checkForm() {

	formErrors = false;    

	[color=blue]if (document.post.message.value.length < 2) {
		formErrors = "{L_EMPTY_MESSAGE}";
	}[/color]
若有裝過其它會動到checkForm()的mod~例如底下隨便舉例的代碼

代碼: 選擇全部

function checkForm() {

	formErrors = false;    

	if (document.post.message.value.length < 2) {
		formErrors = "{L_EMPTY_MESSAGE}";
	} [color=red]else if (XXXXXX) {
		something....
	}[/color]
則是加在紅色部份之後
所以該mod說明才會寫「在適當的地方加入」
那是作者假設使用者都稍微具備有基本的語法能力才那麼寫的:p
黑風凱特
星球公民
星球公民
文章: 267
註冊時間: 2004-12-13 22:12
來自: 台灣台北
聯繫:

文章 黑風凱特 »

我的確是程式新手 :oops: ....
我照下面這樣改,就會出現一開始的問題..笑臉跟標籤都不能用了>”<

代碼: 選擇全部

}


function checkForm() {

	formErrors = false;    

	if (document.post.message.value.length < 2) {
		formErrors = "{L_EMPTY_MESSAGE}";
	}
 if(document.post.subject.value.substring(0, 3) != '' && document.post.subject.value.length < 8 ) 
{ 
formErrors = "除了選擇主題類型外,請打上標題"; 
 if(document.post.subject.value != '' && (document.post.subject.value.charAt(0) != '[' || document.post.subject.value.lastIndexOf(']') == -1) && document.post.subject.value.substring(0, 3) != 'Re:') 
   { 
      formErrors = "請選擇合適的主題類型, 或以[ ]自行定義"; 
   }
	if (formErrors) {
		alert(formErrors);
		return false;
	} else {
		bbstyle(-1);
		//formObj.preview.disabled = true;
		//formObj.submit.disabled = true;
		return true;
	}
}
圖檔
~倉木麻衣~
竹貓忠實會員
竹貓忠實會員
文章: 1405
註冊時間: 2004-03-21 21:00

文章 ~倉木麻衣~ »

well~
照mod上的說明~應該是要類似這樣子才對:p

代碼: 選擇全部

	if (document.post.message.value.length < 2) {
		formErrors = "{L_EMPTY_MESSAGE}";
	} else if(document.post.subject.value.substring(0, 3) != '' && document.post.subject.value.length < 5 ) 
	{
		formErrors = "除了選擇主題類型外,請打上標題"; 
	}
謝絕所有私人訊息詢問外掛相關問題
有問題請直接於版上發表, 集思廣議絕對比專挑特定人士詢問來的好

竹貓禁止發表含破解相關的軟體, 違者砍文
不要跟我講別的地方都可以發, 為什麼竹貓就不行
免費不等於破解, 傻傻的搞不清楚
黑風凱特
星球公民
星球公民
文章: 267
註冊時間: 2004-12-13 22:12
來自: 台灣台北
聯繫:

文章 黑風凱特 »

問題解決了~謝謝你~倉木麻衣 :mrgreen:
圖檔
hpo14
竹貓忠實會員
竹貓忠實會員
文章: 414
註冊時間: 2003-05-10 16:37
來自: M Starbucks

文章 hpo14 »

這種問題需再安裝mod時,多加仔細的查閱安裝說明..
盡量排除人為安裝錯誤的問題, 不然以後還是會出現這種情況的..
非官方外掛問題區公告: [必看]請配合發問格式及明確主題發問(2004 02/16更新)

竹貓星球發問規則:
http://phpbb-tw.net/phpbb/viewtopic.php?t=16149

請不要濫用 私人訊息 或是 MSN 問問題...你以為竹貓是架好看的阿
主題已鎖定

回到「phpBB 2 安裝與使用」