让DEDECMS会员中心未审核的文章不显示for 5.3.1

dedecmsV5.3.1会员中心、空间里会员发表的文章,在未审核状态下也显示,而我们不想让它显示出来。

修改方法如下:


1、针对会员空间里不显示的修改:

打开 \include\tpllib\plus_spacenewart.php 找到16行如下东东:

 $query = "Select arc.*,tp.typedir,tp.typename,tp.isdefault,tp.defaultname,tp.namerule,
  tp.namerule2,tp.ispart,tp.moresite,tp.siteurl,tp.sitepath
  from `#@__archives` arc left join `#@__arctype` tp on arc.typeid=tp.id
  where arc.mid='{$_vars['mid']}' and arc.channel=$channel
  order by id desc limit 0,$row";

加上红色部分,如下:

 $query = "Select arc.*,tp.typedir,tp.typename,tp.isdefault,tp.defaultname,tp.namerule,
  tp.namerule2,tp.ispart,tp.moresite,tp.siteurl,tp.sitepath
  from `#@__archives` arc left join `#@__arctype` tp on arc.typeid=tp.id
  where arc.mid='{$_vars['mid']}' and arc.channel=$channel and arc.arcrank= 0
  order by id desc limit 0,$row";


2、针对会员其他所有文档不显示的修改:

打开 \member\inc\space_action.php 找到47行如下东东:

  $query = "Select arc.*,tp.typedir,tp.typename,tp.isdefault,tp.defaultname,tp.namerule,tp.namerule2,tp.ispart,tp.moresite,tp.siteurl,tp.sitepath            from `#@__archives` arc left join `#@__arctype` tp on arc.typeid=tp.id
           where arc.mid='{$_vars['mid']}' order by arc.id desc";

加上蓝色部分,如下:

  $query = "Select arc.*,tp.typedir,tp.typename,tp.isdefault,tp.defaultname,tp.namerule,tp.namerule2,tp.ispart,tp.moresite,tp.siteurl,tp.sitepath            from `#@__archives` arc left join `#@__arctype` tp on arc.typeid=tp.id
           where arc.mid='{$_vars['mid']}' and arc.arcrank= 0 order by arc.id desc";

3、搞定。

 

Trackbacks: 点击获得Trackback地址,Encode: UTF-8  点击获得Trackback地址,Encode: GB2312 or GBK  点击获得Trackback地址,Encode: BIG5
分类:DedeCms
浏览概况:评论:1 | 阅读:7225
文章评论(1)
[1楼] [引用] [TOP]
ddd 发表于 2009, January 28, 8:10 PM
不错,正找这个
发表评论
用户名:
密码(游客无需):
网址/E-mail:
      记住我的信息