最新公告
  • 欢迎您光临站壳网,本站秉承服务宗旨 履行“站长”责任,销售只是起点 服务永无止境!立即加入我们
  • 织梦将文章审核时间与发布日期同步的修改方法 时间同步工具

    dede审核时间与更新文章发布日期同步,关于织梦将文章审核时间与发布日期同步的修改方法,织梦将文章审核时间与发布日期同步的修改方法,下面小编来给大家介绍一下,一起来了解一下吧!

    不知道你有没有发现,当你采集了很多文章,过几天再来审核的时候,审核的文章发布时间,还是采集导入的时间。其实DedeCMS可以把审核时间同步到文章的发布时间。

    打开织梦后台目录,默认为dede,找到文件archives_do.php。修改之前,请记得先备份,然后打开文件找到如下代码:

    $maintable = ( trim($row['maintable'])=='' ? 'dede_archives' : trim($row['maintable']) );
    $dsql->ExecuteNoneQuery("Update `dede_arctiny` set arcrank='0' where id='$aid' ");
    if($row['issystem']==-1)
    {
    $dsql->ExecuteNoneQuery("Update `".trim($row['addtable'])."` set arcrank='0' where aid='$aid' ");
    }
    else
    {
    $dsql->ExecuteNoneQuery("Update `$maintable` set arcrank='0', dutyadmin='".$cuserLogin->getUserID()."' where id='$aid' ");
    }
    $pageurl = MakeArt($aid,false);

    将以上代码替换为:

    $maintable = ( trim($row['maintable'])=='' ? 'dede_archives' : trim($row['maintable']) );
    $newdate = time();
    $dsql->ExecuteNoneQuery("Update `dede_arctiny` set pubdate='$newdate',sortrank='$newdate',senddate='$newdate',arcrank='0' where id='$aid' ");
    if($row['issystem']==-1)

    $dsql->ExecuteNoneQuery("Update `".trim($row['addtable'])."` set pubdate='$newdate',sortrank='$newdate',senddate='$newdate',arcrank='0' where aid='$aid' ");
    }
    else

    $dsql->ExecuteNoneQuery("Update `$maintable` set pubdate='$newdate',sortrank='$newdate',senddate='$newdate',arcrank='0' where id='$aid' ");
    }
    $pageurl = MakeArt($aid,false);

    好了,当你再次审核文章时,审核的文章发布时间就会变成当前审核时间。

    免责声明:本站所有文章和图片均来自用户分享和网络收集,文章和图片版权归原作者及原出处所有,仅供学习与参考,请勿用于商业用途,如果损害了您的权利,请联系网站客服处理。

    以上就是织梦将文章审核时间与发布日期同步的修改方法 时间同步工具的介绍,希望大家喜欢!

    更多教程关注FF推源码网。

    • 18780会员总数(位)
    • 5454资源总数(个)
    • 98本周发布(个)
    • 22 今日发布(个)
    • 1494稳定运行(天)

    提供最优质的资源集合

    立即查看 了解详情