2008-5-18 12:36
kahei
N.K.FLASH (FOR DISCUZ5.5.5.0 big5版)
[size=3][color=#ff0000]演示:""[url=http://www.new-kingdom.com/dz6/plugins.php?p=nkflash]http://www.new-kingdom.com/dz6/plugins.php?p=nkflash[/url][/color][/size]
[size=3][color=red][size=5][color=yellow]新天下flash遊戲 - 安裝方法[/color][/size]
1. 解壓主程式rar到相應目錄
[/color][/size]
[quote]./plugins.php
./plugins/nkflash.php
./plugins/nkflash_admin.inc.php
./forumdata/cache/nkflash/*.* <---- 如果是linux主機.要把cache/nkflash目錄及所有文件屬性改成可讀寫777
./images/nkflash/*.gif
./images/common/*.gif
./include/sctc.inc.php
./plugins.php
./install_db.php
/crossdomain.xml <---- 放到網域的根目錄, 有可能在discuz目錄之外.
[/quote]
2. 執行install_db
在你的discuz目錄輸入install_db.php, 例如 [url=http://www.discuz.net/bbs/install_db.php]http://www.discuz.net/bbs/install_db.php[/url]
成功後,到ftp刪除install_db.php
3. 導入插件碼
打開 discuz_plugin_nkflash.txt 複製全部內容
進入後台,插件管理 (點擊 允許不同版本) 把sql帖上去
4. 調整[參數設置]
在後台,擴展設置,插件設置,新天下遊戲區,編輯:[插件參數設置]調整
包括:
獎金的策略積分配置數 (玩遊戲後得到的積分,例如extcredit2金錢)
收費的策略積分配置數 (玩遊戲消耗用的積分,例如extcredit2金錢)
上榜的策略積分配置數 (玩遊戲上榜的獎勵積分,可以自行新加一種策略積分,例如extcredit6經驗值)
管理員uid (記錄接收作弊信息的管理員id)
遊戲swf檔存放目錄 (如果留空,遊戲就是存放在本地的nkflash目錄)!
遊戲圖片檔存放目錄 (如果留空,遊戲就是存放在本地的nkflash目錄)
各類遊戲勲章編號 (需自行安裝勳章,一個勳章代表一類遊戲,知道勳章編號便在這處修改)
遊戲緩存存放目錄 (建議改成 forumdata/cache/nkflash )w
5. 修改templates/actions.lang.php
在文件最末 ?> 之前加入以下內容
[quote]$cache_dir='/forumdata/cache/nkflash'; // 如有需要,請作相應修改
if (!(@include DISCUZ_ROOT.$cache_dir.'/nkflash_actions.php')){;
require_once DISCUZ_ROOT.'./include/cache.func.php';
$actions="\n\$actioncode[160] = '小遊戲';\n\n";
$query = $db->query("SELECT * FROM {$tablepre}nkflash ORDER BY medal_id");
while($game=$db->fetch_array($query))
$actions .= "\$actioncode[".(1000+$game[medal_id])."] = '小遊戲 - ".addslashes($game[game_title])."';\n";
writetocache('actions','', $actions,'../../'.$cache_dir.'/nkflash_');
}
[/quote]
完成
備註
遊戲文件是swf和其他圖檔,500個遊戲大約共260M, 暫時未能打包提供. 歡迎提供共享空間,待上傳發佈
上述安裝未經測試,如安裝時發現問題,請提出.謝謝!
[quote]
[img]http://www.alan888.com/Discuz/attachment.php?aid=54904&noupdate=yes[/img] [/quote]
[quote] ===遊戲下載地址===
台灣的 GOGOBOX :[url]http://down.gogobox.com.tw/yeh/l1ak1[/url]
國外的 megaupload :[url]http://www.megaupload.com/ct/?d=H1SKJOSC[/url]
國外的 megaupload :1。[url]http://www.badongo.com/file/7552748[/url]
2。[url]http://www.badongo.com/file/7553015[/url]
3。[url]http://www.badongo.com/file/7552533[/url]
[/quote]
[[i] 本帖最後由 kahei 於 2008-5-18 21:39 編輯 [/i]]
2008-5-18 13:07
Soya
SWF檔應該適合6.x的吧?
2008-5-18 13:29
aespo1994
好正喎,支持=.=
幾mb?
你個到淨係寫左505係260mb= =
2008-5-21 19:53
tobck
請問FLASH game 解壓密碼係??
2008-8-9 17:32
qazxcdews88
話說下載的連結點好像是我發佈的耶....
2008-8-11 10:06
Seven.軒
我安唔到=.=
Discuz! 訊息: MySQL 服務器連接不上
User: xxxxxx
時間: 2008-8-11 10:06am
程序: /install_db.php
錯誤: UPDATE cdb_nkflash SET game_title='機械鐘擺', game_details='用滑鼠左鍵來控制', game_type=2, favorates = 5, game_img='nkflash/pendulumeca.gif', play_fee=25, score_unit='米', flash_url='nkflash/pendulumeca.swf', flash_width=550, flash_height=420, flash_bgcolor='#999999', bonus_rate=9.5665, rate_limit=13.23, medal_id = 243 where game_id = 'pendulumeca'
錯誤: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '用滑鼠左鍵來控制', game_type=2, favorates = 5, game_img='nkflash/pendulumeca.' at line 1
錯誤號.: 1064
2008-8-17 16:20
翼少爺
有問題喔
在修改下吧
2008-9-29 21:34
hou11
請問FLASH game 解壓密碼係??
2008-10-6 17:59
babypooh1
Discuz! info: MySQL Query Error
User: hokwan
Time: 2008-10-6 5 :59pm
Script: /forum55/install_db.php
SQL: UPDATE [Table]nkflash SET game_title='機械鐘擺', game_details='用滑鼠左鍵來控制', game_type=2, favorates = 5, game_img='nkflash/pendulumeca.gif', play_fee=25, score_unit='米', flash_url='nkflash/pendulumeca.swf', flash_width=550, flash_height=420, flash_bgcolor='#999999', bonus_rate=9.5665, rate_limit=13.23, medal_id = 243 where game_id = 'pendulumeca'
Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '用滑鼠左鍵來控制', game_type=2, favorates = 5, game_img='nkflash/pendulumeca.' at line 1
Errno.: 1064
Similar error report has beed dispatched to administrator before.
頁:
[1]
Powered by Discuz! Archiver 5.5.0
© 2001-2006 Comsenz Inc.