标签 分类 下的文章

MacCMS后台一键当天不生成顶级分类的解决方法

编辑/application/admin/view/make/opt.html文件第26行,找到

<input type="button" value="{:lang('admin/make/one_today')}" class="layui-btn layui-btn-primary" onclick="post('ac=info&tab=vod&vodtype={$vod_type_ids_today}&ac2=day&jump=1');"/>

修改为

<input type="button" value="{:lang('admin/make/one_today')}" class="layui-btn layui-btn-primary" onclick="post('ac=info&tab=vod&vodtype={$vod_type_ids}&ac2=day&jump=1');"/>

SeaCMS筛选页显示所有剧情分类

V12.8版本筛选页只显示当前分类下的剧情分类,某情场景不太方便。如下修改即可显示所有剧情分类:
编辑/include/main.class.php文件第478行,找到:

$sql = "select tname from sea_jqtype where ishidden=0 AND upid='$jqupid'";

修改为:

$sql = "select tname from sea_jqtype where ishidden=0";

SeaCMS剧情分类按ID排序

1、前台

编辑/include/common.file.func.php文件第1876行,将

$sql="select tid,upid,tname,ishidden,-1 as tcount from sea_jqtype order by upid asc";

修改为

$sql="select tid,tname,ishidden,-1 as tcount from sea_jqtype";

编辑/include/common.redis.func.php文件第1883行,将

$sql="select tid,upid,tname,ishidden,-1 as tcount from sea_jqtype order by upid asc";

修改为

$sql="select tid,tname,ishidden,-1 as tcount from sea_jqtype";

2、后台

编辑文件/admin/admin_video.php文件第809行,将

$sql="select tid,upid,tname,ishidden,-1 as tcount from sea_jqtype group by tname order by upid asc";

修改为

$sql="select tid,tname,ishidden,-1 as tcount from sea_jqtype";