1 頁 (共 1 頁)

[分享]線上發呆顯示forv3.0

文章發表於 : 2006-07-21 3:23 pm
minglo
不知為甚麼不能把內容貼出,一post就出現這幾句

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@wog.holyou.net and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


所以我直接把網址貼出來,請謜諒!

http://www.kw86.com/phpBB2/viewtopic.php?t=1009

文章發表於 : 2006-07-21 8:07 pm
涅魂
印像中最近好像也有類似的文章… :roll:

不過還是謝謝您的分享 :)

文章發表於 : 2006-07-21 9:51 pm
minglo
我沒記錯是for v2.8的v3.0好像曾有人試過,但沒記錯是不成功的,我還記得你給個點兒幫助他!

文章發表於 : 2006-07-25 11:41 am
笑傲乾坤
我當初問發呆顯示其實是成功的,但不能顯示出發呆的人數,因為考試的關係,也沒繼續研究。

文章發表於 : 2006-08-02 4:01 pm
10度C~
可惜我用了還是不成功= =....
後來還是要自己修改
參照他的改法只要再多改一些東西就好
wog.js中
增加紅色字的部份
代碼: 選擇全部
for(var temp_p=0;temp_p<sec.length;temp_p++)
{
[color=red]var c=0;[/color]
for(var i=0;i<s1.length;i++)


代碼: 選擇全部
[color=red]c++;[/color]
var fcolor=psex(s2[1]);
(s2[1]=="1")?boy++:girl++;
(s2[3]==1)?s2[3]="Y":s2[3]="N";

文章發表於 : 2006-08-03 2:09 pm
minglo
呀..是呀之後修改忘了加上去,謝謝!

文章發表於 : 2006-12-24 7:04 pm
呀成
如果加入左重生功能(線上名單),好像就不能顯示了
if(s2[7]>=7) <---這個是什麼?

文章發表於 : 2006-12-24 8:43 pm
reload0402
呀成 寫:如果加入左重生功能(線上名單),好像就不能顯示了
if(s2[7]>=7) <---這個是什麼?

若玩家沒動作大於整於 7分鐘

請檢查wog_etc_peo.php
和 wog.js function onlinelist()
相關部分吧@@

文章發表於 : 2007-01-21 10:21 pm
leobbs
因為線上人數顯是重生次數 也是用$onlines[6]
但我把它改成$onlines[7]之外還要改些什麼
請大大指點一下

文章發表於 : 2007-01-22 12:59 am
reload0402
leobbs 寫:因為線上人數顯是重生次數 也是用$onlines[6]
但我把它改成$onlines[7]之外還要改些什麼
請大大指點一下


你要確定p_rebirth在 $online中的位置
不能隨便修改 以免造成線上顯示錯誤
改了之後 再到wog.js 線上名單部分做修改

文章發表於 : 2007-04-23 12:55 pm
齋月
笑傲乾坤 寫:我當初問發呆顯示其實是成功的,但不能顯示出發呆的人數,因為考試的關係,也沒繼續研究。

顯示出發呆人數其實很簡單的
開啟 wog.js 寫:尋找
代碼: 選擇全部
var girl=0;
下面,加入
代碼: 選擇全部
[color=red]var rest=0;[/color]



尋找
代碼: 選擇全部
if(s2[7]>=7)
                    f.write('<tr><td ><a href=javascript:parent.yesname("'+s2[0]+'") target="foot" title="'+s2[4]+'"><b><font color="#33FF00">'+s2[0]+'</font></b></a></td><td >'+s2[2]+'</td><td >'+s2[3]+'</td></tr>');
                         else
                    f.write('<tr><td ><a href=javascript:parent.yesname("'+s2[0]+'") target="foot" title="'+s2[4]+'"><b><font color="'+fcolor+'">'+s2[0]+'</font></b></a></td><td >'+s2[2]+'</td><td >'+s2[3]+'</td></tr>');
覆蓋為
代碼: 選擇全部
if(s2[7]>=7)
                    [color=red]{[/color]
                    f.write('<tr><td ><a href=javascript:parent.yesname("'+s2[0]+'") target="foot" title="'+s2[4]+'"><b><font color="#33FF00">'+s2[0]+'</font></b></a></td><td >'+s2[2]+'</td><td >'+s2[3]+'</td></tr>');
[color=red]rest++;[/color]
                    [color=red]}[/color]else[color=red]{[/color]
                    f.write('<tr><td ><a href=javascript:parent.yesname("'+s2[0]+'") target="foot" title="'+s2[4]+'"><b><font color="'+fcolor+'">'+s2[0]+'</font></b></a></td><td >'+s2[2]+'</td><td >'+s2[3]+'</td></tr>');
                    [color=red]}[/color]



尋找
代碼: 選擇全部
線上人數 '+s1.length+' 人
覆蓋為
代碼: 選擇全部
線上人數 '+s1.length+' 人[color=red]、<font color="#7FFF00">發呆</font> '+rest+' 人[/color]