打开include/arc.listview.class.php教程文件,找到 679行,为$query增加如下代码。
*/
require_once(dedeinc.'/memberlogin.class.php');
$cfg_ml = new memberlogin();if(( $cfg_ml->m_rank < 100 ))
{
$query = "select arc.*,tp.typedir,tp.typename,tp.corank,tp.isdefault,tp.defaultname,
tp.namerule,tp.namerule2,tp.ispart,tp.moresite,tp.siteurl,tp.sitepath
$addfield
from `#@__archives` arc left join `#@__arctype` tp on arc.typeid=tp.id
$addjoin
where arc.arcrank<100 and arc.id in($idstr) $ordersql ";
echo 'bb';
}
else
{
$query = "select arc.*,tp.typedir,tp.typename,tp.corank,tp.isdefault,tp.defaultname,
tp.namerule,tp.namerule2,tp.ispart,tp.moresite,tp.siteurl,tp.sitepath
$addfield
from `#@__archives` arc left join `#@__arctype` tp on arc.typeid=tp.id
$addjoin
where arc.id in($idstr) $ordersql ";
}