1 頁 (共 1 頁)

[問題] 加了 script 進了index_body.tpl 就發生問題 [已解決]

發表於 : 2006-07-07 00:04
EE_David
我剛收到 google 的 analytic 的邀請,依照他的指示加入它的code.

卻出現了亂碼,我移除後,還有一個字『嚜?』,無法刪除!

請問該怎麼解決?

我論壇的首頁: http://www.dotawo.com

-EE_David-

發表於 : 2006-07-07 12:40
SCR
你當初在加入 code 時,是加在哪個檔案中,把它的原始碼貼出來.

發表於 : 2006-07-07 18:40
kkt
肯定在 overall_header.tpl 或 index_body.tpl

就在 <table> <div> 旁邊, 打開上兩檔案用編輯軟件找出那[字碼] 刪去即可.

.

發表於 : 2006-07-07 21:46
SCR
kkt 寫:肯定在 overall_header.tpl 或 index_body.tpl

就在 <table> <div> 旁邊, 打開上兩檔案用編輯軟件找出那[字碼] 刪去即可.

.
我在猜想應該是在 index_body.tpl 裡面,因為只有首頁會出現而已,其他頁面並無那玩意出現.
打開 index_body.tpl
找到(差不多是最前端)

代碼: 選擇全部

<div>
<table border="0" width="800" cellspacing="0" cellpadding="0" align="center" id="table11">
把之前的 code 給通通刪去.

發表於 : 2006-07-11 15:12
EE_David
這問題就在 index_body.tpl 裡面

代碼: 選擇全部

<div>
<table border="0" width="800" cellspacing="0" cellpadding="0" align="center" id="table11">
之前,沒有任何字元! = =|||

怎麼刪阿!

發表於 : 2006-07-11 15:18
EE_David
SCR 寫:你當初在加入 code 時,是加在哪個檔案中,把它的原始碼貼出來.

代碼: 選擇全部

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
  _uacct="UA-xxxx-x";
  urchinTracker();
</script> 
xxx 是我的邀請碼

發表於 : 2006-07-11 17:11
ethan
index_body.tpl 似乎設成 utf8 編碼了
轉回 big5 試試看,或是去掉 bom 字元

發表於 : 2006-07-11 19:40
EE_David
ethan 寫:index_body.tpl 似乎設成 utf8 編碼了
轉回 big5 試試看,或是去掉 bom 字元
不懂耶,可以再解釋詳細一點嗎?

拜託了!謝謝

發表於 : 2006-07-11 21:49
心靈捕手
EE_David 寫:
ethan 寫:index_body.tpl 似乎設成 utf8 編碼了
轉回 big5 試試看,或是去掉 bom 字元
不懂耶,可以再解釋詳細一點嗎?

拜託了!謝謝
檢視您論壇首頁的原始碼, 的確有 '異狀'.
<BODY style="TEXT-ALIGN: left" text=#000000 vLink=#5493b4 link=#004887 bgColor=#e5e5e5><A name=top></A>
<DIV align=center>
<TABLE id=table12 cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD style="FONT-SIZE: 9pt; LINE-HEIGHT: 1.4em; LETTER-SPACING: 0.1em" vAlign=top align=middle>
<TABLE id=table13 cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD style="FONT-SIZE: 9pt; LINE-HEIGHT: 1.4em; LETTER-SPACING: 0.1em" width="50%" height=56>
<P align=left><IMG height=56 src="http://www.dotawo.com/img/title_main.gif" width=796 border=0></P></TD>
<TD style="FONT-SIZE: 9pt; LINE-HEIGHT: 1.4em; LETTER-SPACING: 0.1em" width="50%" height=56>
<TABLE id=table14 borderColor=#c0c0c0 border=1>
<TBODY></TBODY></TABLE></TD></TR>
<TR>
<TD style="FONT-SIZE: 9pt; LINE-HEIGHT: 1.4em; LETTER-SPACING: 0.1em" vAlign=baseline align=middle background=http://www.dotawo.com/img/bg_bar.gif colSpan=2>
<P align=left> </P></TD></TR></TBODY></TABLE><BR></TD></TR></TBODY></TABLE></DIV>嚜?div>
建議您:
檢視下列檔案的修改,
或者壓縮後, 貼出下載連結.
templates/YOUR_THEME/index_body.tpl
templates/YOUR_THEME/overall_header.tpl

發表於 : 2006-07-11 22:50
ethan
EE_David 寫:
ethan 寫:index_body.tpl 似乎設成 utf8 編碼了
轉回 big5 試試看,或是去掉 bom 字元
不懂耶,可以再解釋詳細一點嗎?

拜託了!謝謝
乖,搜尋的功課還是得做(站上相關的文章應該也不少)
google: utf8 bom

轉回 big5 是不太正式的說法啦,應該是說轉回 ansi
再給一個很間單的判別法 (抱歉直接連結你的檔案了)
http://www.dotawo.com/phpBB2/templates/ ... x_body.tpl
然後將編碼改回 big5 應該就會看到你在找的“亂碼”了
這就是 bom 字元

發表於 : 2006-07-12 02:36
EE_David
非常感謝,問題已經解決!

:-D