花魁直播高品质美女在线视频互动社区 - 花魁直播官方版

 歡迎來(lái)到素材無(wú)憂網(wǎng),按 + 收藏我們
登錄 注冊(cè) 退出 找回密碼

帝國(guó)CMS系統(tǒng)積分問(wèn)題

時(shí)間: 2019-05-28 10:09 閱讀: 作者:素材無(wú)憂網(wǎng)

1. 會(huì)員邀請(qǐng)注冊(cè)送積分?

2. 管理會(huì)員組,當(dāng)會(huì)員積分達(dá)到一定數(shù)量時(shí),自動(dòng)升級(jí)會(huì)員等級(jí)?

3. 會(huì)員可以通過(guò)積分兌換 發(fā)表文章時(shí)自定義文字標(biāo)題的顏色,關(guān)于看到有些人提出積分兌換置頂帖,我想就沒(méi)有必要了,要是N多會(huì)員都在同一終極欄目下要換置頂帖,就不好辦了。

4. 留言(評(píng)論)加積分,附:每天留言積分上限 限制?

5. 每天投稿積分上限 限制?



整合一些以解決問(wèn)題:

一. 登陸送積分:

修改步驟:

1、進(jìn)入管理會(huì)員字段增加如下字段:

字段名:LastTime 字段標(biāo)識(shí):最后登陸時(shí)間 字段類型:大數(shù)值型(INT)

2、打開(kāi),e/class/user.php 找到大約1019行 if($set1&&$set2) 這個(gè)地方,在 $location=DoingReturnUrl($location,$_POST['ecmsfrom']); 前面增加如下代碼

PHP Code
//會(huì)員登陸贈(zèng)送點(diǎn)數(shù)
$LastTime=time();
$useridz=(int)$r[$user_userid];
$fenus=2; //贈(zèng)送積分
$LastT=$empire->fetch1("select LastTime from {$dbtbpre}enewsmemberadd where `userid`={$useridz}");
(int)$newstime=$LastT['LastTime'];//時(shí)間
(int)$times=mktime(0,0,0,date('m',$LastTime),date('d',$LastTime),date('Y',$LastTime));//當(dāng)前時(shí)間
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}");
//結(jié)束



二. 會(huì)員通過(guò)推薦點(diǎn)擊鏈接獲得點(diǎn)數(shù):

》鏈接地址為:“http://網(wǎng)站地址/e/tool/gfen?id=會(huì)員帳號(hào)ID”或“http://網(wǎng)站地址/e/tool/gfen?n=會(huì)員用戶名”

》信息基本參數(shù)配置:修改“e/tool/gfen/index.php”文件的參數(shù)設(shè)置
//------------------參數(shù)配置
$open=1; //1為關(guān)閉,0為開(kāi)啟
$type=0; //0為按ip(同一ip不重復(fù)增加點(diǎn)數(shù)),1為按cookie(同一機(jī)器不重復(fù)增加點(diǎn)數(shù))
$retime=3600; //重復(fù)增加點(diǎn)數(shù)時(shí)間間隔,單位為秒
$fen=1; //單一點(diǎn)擊點(diǎn)數(shù)
$gotourl="../../../"; //轉(zhuǎn)向地址

三. 按會(huì)員積分,等級(jí),字段調(diào)用會(huì)員:

按會(huì)員積分排列調(diào)用:
[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]

按會(huì)員等級(jí)調(diào)用:
[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]

按會(huì)員類別調(diào)用:
[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]

版權(quán)聲明: 本站資源均來(lái)自互聯(lián)網(wǎng)或會(huì)員發(fā)布,如果侵犯了您的權(quán)益請(qǐng)與我們聯(lián)系,我們將在24小時(shí)內(nèi)刪除!謝謝!

轉(zhuǎn)載請(qǐng)注明: 帝國(guó)CMS系統(tǒng)積分問(wèn)題

標(biāo)簽:  
相關(guān)文章
模板推薦