修改方法include/taglib/channelartlist.lib.php第67左右
$tpsql = " reid=0 AND ispart<>2 AND ishidden<>1 AND channeltype>0 ";
改成
$tpsql = " reid=0 AND ishidden<>1 AND channeltype>0 ";
73行
{ if(!preg_match('#,#', $typeid)) { // $tpsql = " reid='$typeid' AND ispart<>2 AND ishidden<>1 "; $tpsql = " reid='$typeid' AND ishidden<>1 "; } else { // $tpsql = " id IN($typeid) AND ispart<>2 AND ishidden<>1 "; $tpsql = " id IN($typeid) AND ishidden<>1 "; } }
新窗口
$pv->Fields['typeurl'] = GetOneTypeUrlA($typeids[$i]);
在这行之后加上
if($typeids[$i]['ispart'] == 2){ $pv->Fields['typeurl'] = $pv->Fields['typeurl'].'" target="_blank'; }