久久机这里只有精品,国产69精品一区二区亚洲孕妇,91精品国产综合久久婷婷香蕉,午夜久久久久久电影

最新活動:電腦PC端+手機端+微網站+自適應網頁多模板選擇-建站388元起價!!!
當前位置:主頁 > 網站建設 > 織夢火車采集器采集完文章并更新欄目頁,DEDE技術

織夢火車采集器采集完文章并更新欄目頁,DEDE技術

時間:2023-07-17 11:07:17 閱讀: 文章分類: 網站建設 作者: dede技術員

導讀:DEDE技術DEDE技術打開文件 /dede/inc/inc_archives_functions.php 1、在最后增加方法 /*火車頭采集自動更新主頁*/ function Mak織夢模板安裝dede模板下載。

織夢模板安裝dede模板下載打開文件 /dede/inc/inc_archives_functions.php   1、在最后增加方法   /*火車頭采集自動更新主頁*/ function MakeIndex() {     global $dsql,$cfg_basedir,$cfg_templets_dir,$cfg_df_style;     require_once(DEDEINC.'/arc.partview.class.php');     $envs = $_sys_globals = array();     $envs['aid'] = 0;     $pv = new PartView();     $row = $pv->dsql->GetOne('SELECT * FROM `dede_homepageset`');     $templet = str_replace("{style}", $cfg_df_style, $row['templet']);     $homeFile = dirname(__FILE__).'/../'.$row['position'];     $homeFile = str_replace("//", "/", str_replace("\\", "/", $homeFile));     $fp = fopen($homeFile, 'w') or die("無法更新網站主頁到:$homeFile 位置");     fclose($fp);     $tpl = $cfg_basedir.$cfg_templets_dir.'/'.$templet;     if(!file_exists($tpl))     {         $tpl = $cfg_basedir.$cfg_templets_dir.'/default/index.htm';         if(!file_exists($tpl)) exit("無法找到主頁模板:$tpl ");     }     $GLOBALS['_arclistEnv'] = 'index';     $pv->SetTemplet($tpl);     $pv->SaveToHtml($homeFile);     $pv->Close(); } /*火車頭采集自動更新欄目*/ function MakeParentType($typeid) {     global $dsql;     $typediarr = array();     array_push($typediarr,$typeid);     $row3 = $dsql->GetOne("Select reid,topid From `dede_arctype` where id=".$typeid);     if(!in_array($row3['reid'],$typediarr) and $row3['reid']!=0) array_push($typediarr,$row3['reid']);     if(!in_array($row3['topid'],$typediarr) and $row3['topid']!=0) array_push($typediarr,$row3['topid']);     require_once(DEDEDATA."/cache/inc_catalog_base.inc");     require_once(DEDEINC."/channelunit.func.php");   dede會員中心模板  require_once(DEDEINC."/arc.listview.class.php&qudede織夢模板ot;);     foreach($typediarr as $typeid)     {         $lv = new ListView($typeid);         $lv->MakeHtml(1,$maxpagesize);     } } /*火車頭采集自動更新上下篇*/ function MakePreNext($aid,$typeid) {     global $dsql;     require_once(DEDEINC.'/arc.archives.class.php');     $aid = intval($aid);     $preRow =  $dsql->GetOne("SELECT id FROM `dede_arctiny` WHERE id<$aid AND arcrank>-1 AND typeid='$typeid' ORDER BY id DESC");     $nextRow = $dsql->GetOne("SELECT id FROM `dede_arctiny` WHERE id>$aid AND arcrank>-1 AND typeid='$typeid' ORDER BY id ASC");     if(is_array($preRow))     {         $envs['aid'] = $preRow['id'];         $arc = new Archives($preRow['id']);         $arc->MakeHtml();     }     if(is_array($nextRow))     {         $envs['aid'] = $nextRow['id'];         $arc = new dede后臺模板Archives($nextRow['id']);         $arc->MakeHtml();     } }   2、找到function GetUpdateTest() 方法,在 return $revalue;前調用上面新增方法。   MakePreNext($arcID,$typeid); MakeIndex(); MakeParentType($typeid); return $revalue;    相關織夢模板安裝dede模板下載。

關鍵詞標簽: 織夢 采集器 火車

聲明: 本文由我的SEOUC技術文章主頁發布于:2023-07-17 ,文章織夢火車采集器采集完文章并更新欄目頁,DEDE技術主要講述采集器,火車,織夢網站建設源碼以及服務器配置搭建相關技術文章。轉載請保留鏈接: http://www.bifwcx.com/article/web_28525.html

我的IDC 網站建設技術SEOUC.COM
專注網站建設,SEO優化,小程序設計制作搭建開發定制網站等,數千家網站定制開發案例,網站推廣技術服務。
  • 5000+合作客服
  • 8年從業經驗
  • 150+覆蓋行業
  • 最新熱門源碼技術文章

    主站蜘蛛池模板: 南部县| 盈江县| 潞西市| 招远市| 芦溪县| 高阳县| 泽库县| 益阳市| 昌图县| 谢通门县| 重庆市| 南平市| 顺义区| 沐川县| 土默特左旗| 江山市| 巴中市| 冀州市| 灵川县| 定结县| 海淀区| 江山市| 抚远县| 建宁县| 漳平市| 陈巴尔虎旗| 鄂州市| 潢川县| 微山县| 双辽市| 嵊泗县| 庄浪县| 扶绥县| 南城县| 成安县| 兴文县| 景东| 靖远县| 丰县| 汉阴县| 新沂市|