代碼: 選擇全部
########################################################
## MOD名稱: Online FF Battle-WOG 聊天程式
## Mod版本: 3.5
## 作者: 龍神王 (http://www.bswork.idv.tw/)
##
## 說明:
## 方便玩家在遊戲中與其他玩家交流心得
## 當玩家使用私密傳訊給某玩家時
## 也能馬上通知在線上的他,趕緊去收私人訊息
##
## MOD 相容於任何版本的PHPBB
##
## Installation Level: Easy
## Installation Time: 1-2 Minutes
## Files To Edit: 2
## wog/index.php
## wog/wog_act.php
##
## Included Files:
## wog/wog_only_talk.txt
## wog/wog_only_talk.php
## wog/wog_only_talk_write.php
##########################################################
##
## Note:
## 安裝前請先備份
## wog/index.php
## wog/wog_act.php
##
## wog_only_talk 上傳後權限請設為777
##
##########################################################
##
## Version History:
##
## 1.0 - 聊天程式雛形
##
## 1.5 - 新增:字體顏色
## 修正:顯示" ' 的問題&送出的字還留在打字區
##
## 2.0 - 修正:第一次後送出的文字少掉玩家名稱的問題
##
## 2.5 - 修正:不必點選打字欄就能輸入內容
##
## 3.0 - 修正:某些中文字會變成亂碼的問題
##
## 3.5 - 修正:打字 >"< 送出會變 >"
##
##########################################################
#---------[ OPEN ]----------------------------------------
wog/index.php
#---------[ FIND ]----------------------------------------
<frame name="peolist" src="wog_etc.php?f=peo" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize>
#---------[ AFTER, ADD ]----------------------------------
<frameset cols="560,*" border="0">
#---------[ FIND ]----------------------------------------
<frame src="wog_foot.php" name="foot" id="foot" frameborder="0" scrolling="Auto" noresize marginwidth="0" marginheight="0">
</frameset>
</html>
#---------[ REPLACE WITH ]--------------------------------
<frame src="wog_foot.php" name="foot" id="foot" frameborder="0" scrolling="Auto" noresize marginwidth="0" marginheight="0">
<frameset rows="*" border="0">
<frame src="" name="chat" frameborder="0" scrolling="Auto" noresize marginwidth="0" marginheight="0">
</frameset>
</frameset>
</frameset>
</html>
#---------[ OPEN ]----------------------------------------
wog/wog_act.php
#---------[ FIND LINE 375 ]-------------------------------
showscript("parent.peolist.document.location.reload()");
//Wog 2.02的改法
#---------[ FIND LINE 1004 ]------------------------------
show_chara($p[p_id],$bbs_id,1);
//Wog 2.05的改法
#---------[ BEFORE, ADD ]---------------------------------
echo "<script>parent.frames['chat'].location.href=\"wog_only_talk.php?name=".$p[p_name]."\";
</script>";
#---------[ SAVE & CLOSE FILE ]--------------------------
#
# EoM