海洋cms默认只调用无星级推荐视频修改教程

admin 11月前 310

编辑 /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}



原作者:https://www.2dan.cc/seacms/commend-zero.html
最新回复 (0)
返回
发新帖