織夢未審核文章 方法一 打開 /include/taglib/tag.lib.php 文件 找到 if(!empty($typeid)) { $addsql = " where typeid=‘$typeid‘ "; }
修改為 $dsql->SetQuery("Select tid From `dede_taglist` where arcrank<=-1"); $dsql->Execute(); $ids = ‘‘; while($row = $dsql->GetArray()) { $tid = $row[‘tid‘]; $cquery = "Select count(*) as dd From `dede_taglist` where tid = $tid and arcrank<=-1"; $crow = $dsql->GetOne($cquery); if(!$crow[‘dd‘]) { $ids .= ( $ids==‘‘ ? $row[‘tid‘] : ‘,‘.$row[‘tid‘] ); } } if($ids != ‘‘) { $addsql= " where id not in($ids) "; } if(!empty($typeid)) { if($addsql) { $addsql= " and typeid=‘$typeid‘ "; }else{ $addsql= " where typeid=‘$typeid‘" ; } }
織夢未審核文章 方法二 找到 $row[‘keyword‘] = $row[‘tag‘];
在其前邊加入: $rankrowss = $dsql -> GetOne("SELECT count(tid) as rankcount FROM `dede_taglist` WHERE tid = $row[id] and arcrank >= 0"); if($rankrowss[rankcount] == 0) continue;
通過以上兩種方法就可以實現不顯示未審核文檔的tag標簽 |