1. 会员约请注册送积分?
2. 办理会员组,当会员积分到达必定数量时,主动晋级会员等级?
3. 会员能够经过积分兑换 发表文章时自定义文字标题的色彩,关于看到有些人提出积分兑换置顶帖,我想就没有必要了,要是N多会员都在同一终极栏目下要换置顶帖,就不好办了。
4. 留言(谈论)加积分,附:每天留言积分上限 约束?
5. 每天投稿积分上限 约束?
整合一些以解决问题:
一. 登陆送积分:
修正过程:
1、进入办理会员字段添加如下字段:
字段名:LastTime 字段标识:最终登陆时刻 字段类型:大数值型(INT)
2、翻开,e/class/user.php 找到大约1019行 if($set1&&$set2) 这个当地,在 $location=DoingReturnUrl($location,$_POST['ecmsfrom']); 前面添加如下代码
PHP Code
//会员登陆赠送点数
$LastTime=time();
$useridz=(int)$r[$user_userid];
$fenus=2; //赠送积分
$LastT=$empire->fetch1("select LastTime from {$dbtbpre}enewsmemberadd where `userid`={$useridz}");
(int)$newstime=$LastT['LastTime'];//时刻
(int)$times=mktime(0,0,0,date('m',$LastTime),date('d',$LastTime),date('Y',$LastTime));//当时时刻
if($newstime==0){$empire->query("update {$dbtbpre}enewsmember set `userfen`=userfen+{$fenus} where `userid`={$useridz}");}else{
if($times<$newstime && $newstime<$times+86400){
//今日
}else{
$empire->query("update {$dbtbpre}enewsmember set `userfen`=userfen+{$fenus} where `userid`={$useridz}");
}
}
$empire->query("update {$dbtbpre}enewsmemberadd set `LastTime`={$LastTime} where `userid`={$useridz}");
//完毕
二. 会员经过引荐点击链接取得点数:
》链接地址为:“http://网站地址/e/tool/gfen?id=会员帐号ID”或“http://网站地址/e/tool/gfen?n=会员用户名”
》信息基本参数装备:修正“e/tool/gfen/index.php”文件的参数设置
//------------------参数装备
$open=1; //1为封闭,0为敞开
$type=0; //0为按ip(同一ip不重复添加点数),1为按cookie(同一机器不重复添加点数)
$retime=3600; //重复添加点数时刻距离,单位为秒
$fen=1; //单一点击点数
$gotourl="../../../"; //转向地址
三. 按会员积分,等级,字段调用会员:
按会员积分摆放调用:
[ecmsinfo]'select phome_enewsmemberadd.userid as userid,phome_enewsmemberadd.company as title,phome_enewsmemberadd.userpic as titlepic,phome_enewsmemberadd.call as ftitle,phome_enewsmemberadd.saytext as smalltext From phome_enewsmember,phome_enewsmemberadd Where phome_enewsmember.userid =phome_enewsmemberadd.userid and zsxs=1 order by phome_enewsmember.userfen desc',5,16,0,24,14,1[/ecmsinfo]
按会员等级调用:
[ecmsinfo]'select phome_enewsmemberadd.userid as userid,phome_enewsmemberadd.company as title from phome_enewsmemberadd,phome_enewsmember Where phome_enewsmember.userid =phome_enewsmemberadd.userid and phome_enewsmember.groupid=4',60,30,0,24,15,0[/ecmsinfo]
按会员类别调用:
[ecmsinfo]'select userid as userid, company as title,userpic as titlepic,call as ftitle,saytext as smalltext from phome_enewsmemberadd where keshi=1',1,18,0,24,16,1[/ecmsinfo]
声明:有的资源均来自网络转载,版权归原作者所有,如有侵犯到您的权益 请联系邮箱:123456@qq.com 我们将配合处理!
原文地址:帝国CMS系统积分问题发布于2023-03-10 17:03:49