分类 SeaCMS 下的文章

Seacms首页显示分页

<div class="pages">
    <em>1</em><a href='/list/?0-2.html'>2</a><a href='/list/?0-3.html'>3</a><a href='/list/?0-4.html'>4</a><a href='/list/?0-5.html'>5</a><a href='/list/?0-6.html'>6</a><a href='/list/?0-7.html'>7</a><a href='/list/?0-8.html'>8</a><a href='/list/?0-2.html'>下一页</a>
</div>

编辑 /list/index.php 文件,将

if($tid==0){
    showmsg('参数丢失,请返回!', -1);
    exit;
}

if (strpos(" ,".getHideTypeIDS().",",",".$typeId.",")>0) exit("<font color='red'>视频列表为空或被隐藏</font><br>");
    if ($cfg_user == 1){
        if (!getUserAuth($typeId, "list")){exit("<font color='red'>您没有权限浏览此内容!</font><script>function JumpUrl(){history.go(-1);}setTimeout('JumpUrl()',1000);</script>");}
    }

注释掉即可。

Seacms内容页直接显示影片真实地址

1、直接显示实际播放地址
编辑 /include/common.file.func.php/include/common.redis.func.php文件第1247行,将

$urlStr.="<".$listyle.$style." id=\"".$ifrom.$i."\"><a title=\"".$singleUrlArray[0]."\" href=\"".getPlayLink2($typeid,$vId,$sdate,$enname,$ifrom,$i)."\"".$target.">".$singleUrlArray[0]."</a></".$listyle.">";

修改为

$urlStr.="<".$listyle.$style." id=\"".$ifrom.$i."\"><a title=\"".$singleUrlArray[0]."\" href=\"".getPlayLink2($typeid,$vId,$sdate,$enname,$ifrom,$i)."\"".$target.">".$singleUrlArray[0]."$".$singleUrlArray[1]."$".$singleUrlArray[2]."</a></".$listyle.">";

2、直接显示实际下载地址
编辑 /include/common.file.func.php/include/common.redis.func.php文件第1327行,将

$urlStr.="<".$listyle."><a title='".$singleUrlArray[0]."' href='".$singleUrlArray[1]."'".$target.">".($linkstr?$singleUrlArray[1]:$singleUrlArray[0])."</a></".$listyle.">";

修改为

$urlStr.="<".$listyle."><a title='".$singleUrlArray[0]."' href='".$singleUrlArray[1]."'".$target.">".$singleUrlArray[1]."</a></".$listyle.">";