首页 > CMS > 织梦DEDE > 正文

dedecms 列表页面只有高级会员登录后才显示出来修改方法

2024-07-12 08:43:14
字体:
来源:转载
供稿:网友

打开include/arc.listview.class.php文件,找到 679行,为$query增加如下代码:

  1. */ 
  2. require_once(dedeinc.'/memberlogin.class.php'); 
  3. $cfg_ml = new memberlogin(); 
  4. if(( $cfg_ml->m_rank < 100 )) 
  5. $query = "select arc.*,tp.typedir,tp.typename,tp.corank,tp.isdefault,tp.defaultname, 
  6.  tp.namerule,tp.namerule2,tp.ispart,tp.moresite,tp.siteurl,tp.sitepath 
  7.  $addfield 
  8.  from `#@__archives` arc left join `#@__arctype` tp on arc.typeid=tp.id 
  9.  $addjoin 
  10.  where arc.arcrank<100 and arc.id in($idstr$ordersql "; 
  11.  echo 'bb'//开源软件:Vevb.com 
  12. else 
  13.  $query = "select arc.*,tp.typedir,tp.typename,tp.corank,tp.isdefault,tp.defaultname, 
  14.  tp.namerule,tp.namerule2,tp.ispart,tp.moresite,tp.siteurl,tp.sitepath 
  15.  $addfield 
  16.  from `#@__archives` arc left join `#@__arctype` tp on arc.typeid=tp.id 
  17.  $addjoin 
  18.  where arc.id in($idstr$ordersql "; 
  19.  
  20. }

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