织梦让相關文章标签likearticle的mytypeid支持多个栏目和子栏目
打开include agliblikearticle.lib.php找到
if(!empt
更多精彩就在: 51免费论文网|www.jxszl.com
y($typeid)&&!preg_match(#,#,$typeid)){
$typeid=GetSonIds($typeid);
}
在它下面加入
else{
$typeids=explode(,,$typeid);
foreach($typeidsas$ttid){
$typeidss[]=GetSonIds($ttid);
}
$typeidStr=join(,,$typeidss);
$typeidss=explode(,,$typeidStr);
$typeidssok=array_unique($typeidss);
$typeid=join(,,$typeidssok);}
原文链接:http://www.jxszl.com/biancheng/dedecms/76559.html