dedecms采集文檔審核后生成文檔以采集時(shí)間顯示
來(lái)源:本站原創(chuàng)
|時(shí)間:2021-08-05
|欄目:
dedecms|點(diǎn)擊: 次
很多站長(zhǎng)對(duì)于網(wǎng)站的日常更新,都會(huì)選擇使用采集的方式來(lái)豐富網(wǎng)站內(nèi)容。采集雖然可以豐富網(wǎng)站內(nèi)容,但是很容易被收索引擎判斷為作弊,有降權(quán)和停止收錄的風(fēng)險(xiǎn)。今天有用戶(hù)提問(wèn):dedecms在采集完文章后以后生成文檔后的時(shí)間就是采集時(shí)的時(shí)間,這一問(wèn)題該如何解決呢?通過(guò)這個(gè)問(wèn)題我們就開(kāi)始今天的文檔分享吧。 dedecms采集文檔審核后生成文檔以采集時(shí)間顯示方法如下:
1、首先是點(diǎn)擊進(jìn)入到我們的控制面板,然后找到文件管理選項(xiàng)。
2、點(diǎn)擊進(jìn)入之后找到我們站點(diǎn)的根目錄。
3、進(jìn)入到這個(gè)目錄之后找到我們的程序后臺(tái)的的路徑:/dede/archives_do.php,點(diǎn)擊編輯。
4、修改代碼操作,
查找代碼:
$maintable = ( trim($row[maintable])== ? dede_archives : trim($row[maintable]) ); $dsql>ExecuteNoneQuery("Update `dede_arctiny` set arcrank= where id=$aid "); if($row[issystem]==) { $dsql>ExecuteNoneQuery("Update `"trim($row[addtable])"` set arcrank= where aid=$aid "); } else { $dsql>ExecuteNoneQuery("Update `$maintable` set arcrank= where id=$aid "); } $pageurl = MakeArt($aidfalse); } ShowMsg("成功審核指定的文檔!"$ENV_GOBACK_URL); 修改為: $maintable = ( trim($row[maintable])== ? dede_archives : trim($row[maintable]) ); $newdate = time(); $dsql>ExecuteNoneQuery("Update `dede_arctiny` set sortrank=$newdatesenddate=$newdatearcrank= where id=$aid "); if($row[issystem]==) { $dsql>ExecuteNoneQuery("Update `"trim($row[addtable])"` set sortrank=$newdatepubdate=$newdatesenddate=$newdatearcrank= where aid=$aid "); } else { $dsql>ExecuteNoneQuery("Update `$maintable` set sortrank=$newdatepubdate=$newdatesenddate=$newdatearcrank= where id=$aid "); } $pageurl = MakeArt($aidfalse); } ShowMsg("成功審核指定的文檔!"$ENV_GOBACK_URL);