本站资源均来自互联网,仅供学习与参考,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
Copyright @ 2015-2020 织梦园 版权所有
Power by DedeCms
鲁ICP备15039853号-1
鲁公网安备 37132302000249号
模板标签 TAG标签 网站地图 XML地图 今日更新 返回顶部
打开织梦dedecms后台所在目录(默认为dede)的archives_do.php文件,大概在200行开始:
原代码:
$maintable = ( trim($row['maintable'])==” ? ’2d30_archives’ : trim($row['maintable']) );
$dsql->ExecuteNoneQuery("Update `2d30_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′ where id=’$aid’ ");
}
$pageurl = MakeArt($aid,false);
}
ShowMsg("成功审核指定的文档!",$ENV_GOBACK_URL);
修改后:
$maintable = ( trim($row['maintable'])==” ? ’2d30_archives’ : trim($row['maintable']) );
$newdate = time();
$dsql->ExecuteNoneQuery("Update `2d30_arctiny` set pubdate=’$newdate’,senddate=’$newdate’,arcrank=’0′ where id=’$aid’ ");
if($row['issystem']==-1)
{
$dsql->ExecuteNoneQuery("Update `".trim($row['addtable'])."` set pubdate=’$newdate’,senddate=’$newdate’,arcrank=’0′ where aid=’$aid’ ");
}
else
{
$dsql->ExecuteNoneQuery("Update `$maintable` set pubdate=’$newdate’,senddate=’$newdate’,arcrank=’0′ where id=’$aid’ ");
}
$pageurl = MakeArt($aid,false);
}
ShowMsg("成功审核指定的文档!",$ENV_GOBACK_URL);
当使用后台“审核”按钮审核文章时,同步更新该文章的发布时间为审核的时间。
这样排序就能在前了~
修改是在DEDE5.3 版上进行的,其他版本自行参照