马上注册成为YANBONG会员吧! 时下最热门的资讯、娱乐、贴图等分享都在这里等你发掘哦!
您需要 登录 才可以下载或查看,没有账号?注册
×
瀏覽論壇隨機獎賞 for 6.0
插件名稱:瀏覽論壇隨機獎賞
插件作者:cambyliverson
插件演示:香港水星論壇 (演示為5.0 , 但功能相同)
6.0演示:http://www.xymercury.com/d60/x_randomprize.php
安裝如下:- 1.升級數據庫(如不紀錄獲獎紀錄則可省去此步驟):複製內容到剪貼板代碼:CREATE TABLE [code]`cdb_x_randomprize` (
- `uid` MEDIUMINT( 8 ) NOT NULL ,
- `username` VARCHAR( 15 ) CHARACTER SET big5 COLLATE big5_chinese_ci NOT NULL ,
- `prize` INT( 10 ) NOT NULL ,
- `time` INT( 10 ) NOT NULL
- ) ENGINE = MYISAM ;
- 2.上傳附件所附檔案
- 3.在積分設置開通新積分為運氣 , 紀錄會員的運氣值(如不紀錄運氣 , 可省去此步)
- 運氣預設為 extcredits5 , 如你不是採用 extcredits5 , 請在插件設置修改運氣值的積分類別
- 4.導入插件碼複製內容到剪貼板代碼:
- # Discuz! Plugin Dump
- # Version: Discuz! 6.0.0
- # Time: 2007-8-31 16:31
- # From: Discuz! Board (http://localhost/d60/)
- #
- # Discuz! Community: http://www.Discuz.net
- # Please visit our website for latest news about Discuz!
- # --------------------------------------------------------
复制代码- YTozOntzOjY6InBsdWdpbiI7YTo5OntzOjk6ImF2YWlsYWJsZSI7czoxOiIx
- IjtzOjc6ImFkbWluaWQiO3M6MToiMSI7czo0OiJuYW1lIjtzOjE2OiLCc8T9
- vde+wsBIvve8+r3gIjtzOjEwOiJpZGVudGlmaWVyIjtzOjExOiJyYW5kb21w
- cml6ZSI7czoxMToiZGVzY3JpcHRpb24iO3M6MjA6IsJzxP29177CwEi+97W5
- pKm8+r3gIjtzOjEwOiJkYXRhdGFibGVzIjtzOjEzOiJ4X3JhbmRvbXByaXpl
- IjtzOjk6ImRpcmVjdG9yeSI7czowOiIiO3M6OToiY29weXJpZ2h0IjtzO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o1OiJleHRyYSI7czowOiIiO31pOjg7YTo3OntzOjEyOiJkaXNw
- bGF5b3JkZXIiO3M6MToiNCI7czo1OiJ0aXRsZSI7czoxMjois8ykarz6veCq
- 98NCIjtzOjExOiJkZXNjcmlwdGlvbiI7czowOiIiO3M6ODoidmFyaWFibGUi
- O3M6MTA6ImdyZWF0cHJpemUiO3M6NDoidHlwZSI7czo2OiJudW1iZXIiO3M6
- NToidmFsdWUiO3M6MzoiMTAwIjtzOjU6ImV4dHJhIjtzOjA6IiI7fX19
- 5.在所需頁面調用
- 在需要使用隨機獎賞的頁面
- 找複製內容到剪貼板代碼:require_once './include/common.inc.php';
- 下面加複製內容到剪貼板代碼:$A = 1;
- require './plugins/randomprize.inc.php';
- 如要在發主題/回覆時加入隨機獎賞
- include/newthread.inc.php
- include/newreply.inc.php
复制代码 找複製內容到剪貼板代碼:if($forum['type'] == 'sub') {- $db->query("UPDATE {$tablepre}forums SET lastpost='$lastpost' WHERE fid='$forum[fup]'", 'UNBUFFERED');
- }
- 下面加複製內容到剪貼板代碼:$A = 1;
- require './plugins/randomprize.inc.php';
- $A 可用作調整獎金比率 , 1表示按照後台設定計算
- 而此變數可用作調整不同頁面有不同程度的獎賞比率
- 例如發帖時可以給予較大比率 , 將 $A 設定為 2 或 3 等等
- 6. 到後台插件設置設定各項相關設置
复制代码 |
|