找回密码
 注册
查看: 2459|回复: 1
收起左侧

设置每天登录都有积分奖励

[复制链接]

5314

主题

8320

帖子

1万

积分

管理员

出售国内外虚拟空间

Rank: 10Rank: 10Rank: 10

积分
14665
帖子
8320
精华
67
体力
14665 点
蓝豆
2391 点
注册时间
2007-6-8

终身成就奖LY官方团队会员身份ID卡

发表于 2007-10-21 16:28:14 | 显示全部楼层 |阅读模式
include/common.inc.php 尋找 $lastvisit = empty($lastvisit) ? $timestamp - 86400 : $lastvisit; $timenow = array(\'time\' => gmdate(\"$dateformat $timeformat\", $timestamp + 3600 * $timeoffset), \'offset\' => ($timeoffset >= 0 ? ($timeoffset == 0 ? \'\' : \'+\'.$timeoffset) : $timeoffset)); 下面加入 if($Discuz_user) { if(gmdate(\"Y-m-d\",$timestamp) != gmdate(\"Y-m-d\",$lastvisit)) { $db->query(\"UPDATE {$tablepre}members SET extcredits2=extcredits2+10 , lastvisit=$timestamp WHERE username=\'$discuz_user\'\"); $IsAward=true; } } 2.開啟 templates 目錄下您所使用風格目錄的 footer.htm 檔 尋找最底下的 上面加入 完成,祝各位使用愉快
懒得打字嘛,点击右侧快捷回复
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

网站公告上一条 /2 下一条

GMT+8, 2024-5-19 20:58 , Processed in 0.109375 second(s), 24 queries , Gzip On.

© 2006-2022 Powered by Discuz! X3.4

快速回复 返回顶部 返回列表