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";
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";
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";