标签 seacms 下的文章

SeaCMS静态模式跳转页码功能

版本:V13.2
静态模式: 目录2:/{dir}/{page}id

编辑/js/function.js文件第171行,找到

goUrl=(url.split('_').length<3)?regexpSplice(url,/(\/\/\S+\d+?)(\.html|\.htm|\.shtml|\.shtm|\.asp|\.php)/,str):regexpSplice(url,/(\/\/\S+\d+?)_\d+(\.html|\.htm|\.shtml|\.shtm|\.asp)/,str);

修改为

goUrl=(url.split('_').length<2)?regexpSplice(url,/(\/\/\S+\d+?)(\.html|\.htm|\.shtml|\.shtm|\.asp|\.php)/,str):regexpSplice(url,/(\/\/\S+\d+?)_\d+(\.html|\.htm|\.shtml|\.shtm|\.asp)/,str);

- 阅读剩余部分 -

SeaCMS后台资源库采集时间调整

默认采集当天是采集过去24小时内的内容,由于每次采集时间不统一,会出现漏采的情况,我们把这个时间调整为过去48小时内。
编辑/admin/admin_reslib.php文件第320行,找到

elseif($action=="day")
{
    $page = $pg;
    if($rid=='seazmt3zz2cmszmt')
    {
        $weburl=$var_url."?s=plus-api-xml-cms-max-cid--h-24-p-{$page}";
    }
    else
    {
        $weburl=$var_url.(strpos($var_url,'?')!==false?"&":"?")."ac=videolist&rid=".$ressite."&t=0&h=24&pg=".$page;
    }
    
    intoDatabase($weburl,"day");
}

修改为

elseif($action=="day")
{
    $page = $pg;
    if($rid=='seazmt3zz2cmszmt')
    {
        $weburl=$var_url."?s=plus-api-xml-cms-max-cid--h-48-p-{$page}";
    }
    else
    {
        $weburl=$var_url.(strpos($var_url,'?')!==false?"&":"?")."ac=videolist&rid=".$ressite."&t=0&h=48&pg=".$page;
    }
    
    intoDatabase($weburl,"day");
}elseif($action=="week")

- 阅读剩余部分 -

SeaCMS一键生成当天增加同时生成自定义页面

编辑/admin/admin_makehtml.php文件第273行,找到

elseif($action=="allchannel")
{
    checkRunMode();
    $curTypeIndex=$index;
    $typeIdArray = getTypeIdArrayBySort(0);
    $typeIdArrayLen = count($typeIdArray);
    if (empty($curTypeIndex)){
        $curTypeIndex=0;
    }else{
        if(intval($curTypeIndex)>intval($typeIdArrayLen-1)){
            if (empty($action3)){
                alertMsg ("生成所有栏目全部搞定","");
                exit();
            }elseif($action3=="site"){
                echoHead();
                echo makeIndex();
                //echo makeAllmovie();
                echoFoot();
                alertMsg ("一键生成全部搞定","");
                exit();
            }
        }
    }
    $typeId = $typeIdArray[$curTypeIndex];
    if(empty($typeId)){
        exit("分类丢失");
    }else{
        echoHead();
        makeChannelById($typeId);
        echoFoot();
    }
}

- 阅读剩余部分 -

SeaCMS使用定时任务软件实现自动生成

使用定时任务软件访问以下网址即可:

生成首页链接:
你的网址/后台目录/admin_makehtml2.php?action=index&by=video&password=cookie加密码

生成列表页链接:
你的网址/后台目录/admin_makehtml2.php?action=allchannel&password=cookie加密码

生成当天更新内容页链接:
你的网址/后台目录/admin_makehtml2.php?action=daysview&password=cookie加密码

cookie加密码位置:
后台 系统 - 网站资料设置 - cookie加密码

SeaCMS后台删除多余图片

一、编辑/admin/templets/admin_datarelate_checkpic.htm文件,在合适位置插入:

<input type="button" class="btn" value="删除多余视频图片" onClick="if(confirm('注意:该操作大量占用系统资源,请务必在系统空闲时执行')){location.href='?action=sumitcheck';}else{return false}">
<input type="button" class="btn" value="删除多余新闻图片" onClick="if(confirm('注意:该操作大量占用系统资源,请务必在系统空闲时执行')){location.href='?action=sumitcheck&table=news';}else{return false}">

二、编辑/admin/admin_datarelate.php文件第602行,将以下内容注释掉

exit('危险操作,此功能禁用!');