SeaCMS默认只调用无星级推荐视频
编辑 /include/main.class.php
文件,在1323行找到:
if(!empty($vcommend)){
switch (trim($vcommend)) {
case "all":
$whereCommend=" and m.v_commend>0";
break;
default:
if(strpos($vcommend,',')>0) $whereCommend=" and m.v_commend in($vcommend)"; else $whereCommend=" and m.v_commend='$vcommend'";
}
}else{
$whereCommend="";
}
修改为:
if(!empty($vcommend)){
switch (trim($vcommend)) {
case "all":
$whereCommend=" and m.v_commend>0";
break;
default:
if(strpos($vcommend,',')>0) $whereCommend=" and m.v_commend in($vcommend)"; else $whereCommend=" and m.v_commend='$vcommend'";
}
}else{
$whereCommend=" and m.v_commend=0";
}
这样以后,在单层循环标签中,要指定 commend=all
才可以调用所有视频:
{seacms:videolist num=8 order=time type=all commend=all start=5 letter=a lang=英语 area=美国 year=2018}