AGAMES 討論區
標題:
許願池首頁顯示For 6.1.0-6.1F
[打印本頁]
作者:
dlalden
時間:
2008-11-9 15:16:35
標題:
許願池首頁顯示For 6.1.0-6.1F
作者:by FreeHK論壇
繁化:kilenS
演示:
http://loveypy.coms.hk/
1、修改index.php
找
$newthreads = round(($timestamp - $lastvisit + 600) / 1000) * 1000;
複製代碼
下加:
//許願池 WISH SHOW BY Mr.kilenS ([url]http://www.macau-in.net[/url])
$query = $db->query("SELECT * FROM {$tablepre}wish ORDER BY dateline DESC LIMIT 10");
$wi=intval($wi);
$wi=0;
$wishlist=$awish=array();
while($wish = $db->fetch_array($query)) {
$awish['username']=addslashes($wish['username']);
$awish['wishto'] = addslashes($wish['var1']);
$awish['message'] = addslashes(trim(str_replace(" ","",$wish['var3'])));
$awish['wishcoin'] =intval($wish['var4']);
$wishlist[$wi++] = "<font color=red><b>".$awish['username']."</b></font>".' 花費 '."<b>".$awish['wishcoin']."</b>".' 個許願金為 '."<font color=blue><b>".$awish['wishto']."</b></font>".' 許願:'.$awish['message'];
}
//许愿池 WISH SHOW BY Mr.kilenS ([url]http://www.macau-in.net[/url])
複製代碼
2. 修改:templates/default/discuz.htm
如果想係頭部顯示就找1次
<!--{if $admode && empty($insenz['hardadstatus']) &&
複製代碼
在上面加
{template wishwhatsnew}
複製代碼
歡迎光臨 AGAMES 討論區 (http://61.244.113.49/)
Powered by Discuz! X2