当前位置:首页 > CMS教程 > 帝国cms > 列表

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

发布:smiling 来源: PHP粉丝网  添加日期:2014-11-21 16:39:42 浏览: 评论:0 

这个问题也算是帝国的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.                         } //开源软件:phpfensi.com 
  16.                 } 
  17.                 if(emptyempty($muserid)) 
  18.                 { 
  19.                         $musername=$fun_r['guest']; 
  20.                 } 
  21.                 //会员投稿数更新 

4、完成

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

Tags: 帝国CMS会员积分 帝国CMS16777215

分享到: