首页 > CMS > 帝国Empire > 正文

帝国CMS会员积分为16777215解决教程

2024-08-28 12:21:44
字体:
来源:转载
供稿:网友

这个问题也算是帝国的bug,下面告诉大家解决方法.

1、找到me/class/qinfofun.phpm用dreamweaver打开,

2、搜索//增扣点

3、修改代码:

修改前:

  1. //增扣点 
  2.                 if($checked&&$muserid
  3.                 { 
  4.                         AddInfoFen($cr['addinfofen'],$muserid); 
  5.                         $haveaddfen=1; 
  6.                 } 
  7.                 if(emptyempty($muserid)) 
  8.                 { 
  9.                         $musername=$fun_r['guest']; 
  10.                 } 
  11.                 //会员投稿数更新 

修改后:

  1. //增扣点 
  2.                 if($muserid
  3.                 { 
  4.                      $fr=$empire->fetch1("select userfen from {$dbtbpre}enewsmember where userid='$muserid'"); 
  5.                      if($fr['userfen']<1) 
  6.                      { 
  7.                              printerror("HaveNotFenAQinfo","history.go(-1)",1); 
  8.                                
  9.                      } 
  10.                          else 
  11.                          { 
  12.                             //printerror("HaveNotFenAQinfo","history.go(-1)",1); 
  13.                              AddInfoFen($cr['addinfofen'],$muserid); 
  14.                              $haveaddfen=1; 
  15.                         } //开源软件:Vevb.com 
  16.                 } 
  17.                 if(emptyempty($muserid)) 
  18.                 { 
  19.                         $musername=$fun_r['guest']; 
  20.                 } 
  21.                 //会员投稿数更新 

4、完成

会员只要投稿,没有审核也会扣除点数,而且检测积分为0时,无法发表文章,这样就避免了会员积分为0时审核扣除1点数后会员积分变为16777215的问题.

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表