Implementation method:
Tutorial code:
Function topic ID_filter_category (&$type,&$page,&$category,&$author,&$datetime,&$tag,&$w,&$pagebar){ global $zbp; if($type == 'index'){ $w[]=array('<>','log_CateID',1); //The following is to rebuild the paging, filter the classification, and the quantity will change $pagebar = new Pagebar($zbp->option['ZC_INDEX_REGEX']); $pagebar->PageCount = $zbp-> display count; $pagebar->PageNow = $page; $pagebar->PageBarCount = $zbp->pagebarcount; } }
Add_Filter_Plugin ('Filter_Plugin_ViewList_Core ',' Topic ID_filter_category ');