10 頁 (共 14 頁)

文章發表於 : 2006-06-09 6:13 pm
阿澄
阿澄 寫:
簫哥 寫:chat_log.txt是負責顯示對話的重要檔案,少了這檔案,不管你任何輸入,都不會看到對話內容。

但涅魂大大不是說沒有這個檔案系統都會自動增加嗎 ?
..我試過手動增加 ..但都是無法解決問題喔 ..

我手動增加後再把檔案的權限改為 777..
問題解決了 ..但又有一個新問題出現
我發現我的聊天室不說話的話就不會更新

文章發表於 : 2006-06-09 9:03 pm
涅魂
聊天室的更新是由HTML的META標籤控制的(chat_view()中)
代碼: 選擇全部
function chat_view()
{
   var view=parent.chat.document;
   view.close();
   view.write('<html>');
   view.write('<head>');
   view.write('<meta http-equiv="Content-Type" content="text/html; charset=big5">');
   view.write('<meta http-equiv=Cache-Control content="no-cache">');
   [color=red]view.write('<META HTTP-EQUIV="Refresh" CONTENT=20 src="wog_chat.php"> ');[/color]
   view.write('<style type=text/css>');
   view.write('td {font-family : verdana,Arial,Helvetica ;font-size : 10pt;   text-align : center;}');
   view.write('</style>');
   view.write('</head>');
   view.write('<body bgcolor="#000000" text="#EFEFEF" link="#EFEFEF" vlink="#EFEFEF" alink="#EFEFEF" >');
}

請確定該段的內容是否符合您程式的需求

文章發表於 : 2006-06-09 10:14 pm
簫哥
wog_chat.php?
壓縮檔(BIG5)只有兩個檔案chat.php和chat.htm,我記得wog2.08(有外掛的)好像有wog_chat.php存在。
那在對應什麼呢?

文章發表於 : 2006-06-10 12:18 pm
simon2007
涅魂 寫:
笑傲乾坤 寫:我的聊天室好像在開始頁面就會看到了,不知是不是涅大的設計本來就是這樣??
這樣好像會讓還未登入的玩家就看到對話內容了

是的,我原本就是這樣設計的,可以幫助新來的玩家們迅速地溶入遊戲中

若您不希望這樣顯示的話可以將chat頁面的內容先用別的內容顯示,然後再將在wog_act_chara.php中新增的JS語法稍作修改即可

我想顯示其他內容,但是不明白怎麼改?

文章發表於 : 2006-06-10 7:00 pm
涅魂
簫哥 寫:wog_chat.php?
壓縮檔(BIG5)只有兩個檔案chat.php和chat.htm,我記得wog2.08(有外掛的)好像有wog_chat.php存在。
那在對應什麼呢?

對喔,是chat.php而不是wog_chat.php… :roll:

謝謝蕭哥的提醒囉 :o

文章發表於 : 2006-06-10 7:02 pm
涅魂
simon2007 寫:我想顯示其他內容,但是不明白怎麼改?

將wog_index.htm中的 chat frame 的 src 改成你想要顯示的網頁,然後在登入時再載入聊天室的頁面就行了

文章發表於 : 2006-06-11 2:05 pm
simon2007
涅魂 寫:
simon2007 寫:我想顯示其他內容,但是不明白怎麼改?

將wog_index.htm中的 chat frame 的 src 改成你想要顯示的網頁,然後在登入時再載入聊天室的頁面就行了

還是不明白,可否舉個例子?

文章發表於 : 2006-06-11 3:30 pm
簫哥
又是wog_index.htm....主程式只有一個index.htm,版主!你打名字,前面好像有加上「wog_」,天天誤導....不過簫哥已經體諒了,還有簫哥的簫,別打錯,部首是竹,而不是艸。

src=chat.htm //框架視窗的顯示網頁網址。

文章發表於 : 2006-06-11 3:45 pm
leobbs
涅魂 寫:
simon2007 寫:我想顯示其他內容,但是不明白怎麼改?

將wog_index.htm中的 chat frame 的 src 改成你想要顯示的網頁,然後在登入時再載入聊天室的頁面就行了

那個登入的網頁是不是要連chat.php
這語法就不懂了-可以指點一下嗎

文章發表於 : 2006-06-11 5:17 pm
simon2007
leobbs 寫:
涅魂 寫:
simon2007 寫:我想顯示其他內容,但是不明白怎麼改?

將wog_index.htm中的 chat frame 的 src 改成你想要顯示的網頁,然後在登入時再載入聊天室的頁面就行了

那個登入的網頁是不是要連chat.php
這語法就不懂了-可以指點一下嗎

是啊!可否舉個例子教教我

文章發表於 : 2006-06-11 5:38 pm
簫哥
看清楚!index.htm之下的框架程式碼。
代碼: 選擇全部
      <frame src="chat.php" name="chat" id="chat" frameborder="0" scrolling="Auto" noresize marginwidth="0" marginheight="0">
      <frame src="chat.htm" name="chat_input" id="chat_input" frameborder="0" scrolling="No" noresize marginwidth="0" marginheight="0">


chat.php //透過wog.js及chat_log.txt顯示對話內容
chat.htm //負責使用者執行發言送出。

文章發表於 : 2006-06-11 7:50 pm
simon2007
簫哥 寫:看清楚!index.htm之下的框架程式碼。
代碼: 選擇全部
      <frame src="chat.php" name="chat" id="chat" frameborder="0" scrolling="Auto" noresize marginwidth="0" marginheight="0">
      <frame src="chat.htm" name="chat_input" id="chat_input" frameborder="0" scrolling="No" noresize marginwidth="0" marginheight="0">


chat.php //透過wog.js及chat_log.txt顯示對話內容
chat.htm //負責使用者執行發言送出。

不明白

文章發表於 : 2006-06-11 9:36 pm
簫哥
simon2007 寫:
簫哥 寫:看清楚!index.htm之下的框架程式碼。
代碼: 選擇全部
      <frame src="chat.php" name="chat" id="chat" frameborder="0" scrolling="Auto" noresize marginwidth="0" marginheight="0">
      <frame src="chat.htm" name="chat_input" id="chat_input" frameborder="0" scrolling="No" noresize marginwidth="0" marginheight="0">


chat.php //透過wog.js及chat_log.txt顯示對話內容
chat.htm //負責使用者執行發言送出。

不明白

簫哥已經提出指定例子!到底不懂那一個部分?不知道就去多讀書吧!

文章發表於 : 2006-06-11 9:49 pm
simon2007
簫哥 寫:
simon2007 寫:
簫哥 寫:看清楚!index.htm之下的框架程式碼。
代碼: 選擇全部
      <frame src="chat.php" name="chat" id="chat" frameborder="0" scrolling="Auto" noresize marginwidth="0" marginheight="0">
      <frame src="chat.htm" name="chat_input" id="chat_input" frameborder="0" scrolling="No" noresize marginwidth="0" marginheight="0">


chat.php //透過wog.js及chat_log.txt顯示對話內容
chat.htm //負責使用者執行發言送出。

不明白

簫哥已經提出指定例子!到底不懂那一個部分?不知道就去多讀書吧!

你沒有教我怎樣顯示其他內容啊!請詳細舉個例子,簫哥

文章發表於 : 2006-06-12 7:26 pm
reload0402
simon2007 寫:
簫哥 寫:
simon2007 寫:
簫哥 寫:看清楚!index.htm之下的框架程式碼。
代碼: 選擇全部
      <frame src="[color=red]chat.php[/color]" name="chat" id="chat" frameborder="0" scrolling="Auto" noresize marginwidth="0" marginheight="0">
      <frame src="chat.htm" name="chat_input" id="chat_input" frameborder="0" scrolling="No" noresize marginwidth="0" marginheight="0">


chat.php //透過wog.js及chat_log.txt顯示對話內容
chat.htm //負責使用者執行發言送出。

不明白

簫哥已經提出指定例子!到底不懂那一個部分?不知道就去多讀書吧!

你沒有教我怎樣顯示其他內容啊!請詳細舉個例子,簫哥



簡單一點的作法...
紅字的地方改掉就好了
我試過了~再登入前不會看到任何聊天內容
登出後也看不到聊天內容