織夢CMS v5.7,在友情連結中會自動添加“織夢鍊”,可以考慮删除。不過,在背景管理中,并沒有發現織夢鍊管理,是以隻能修改源檔案。 dede部落格
-598080707.NET
DedeCMS v5.7 删除友情連結中的織夢鍊的方法:背景子產品---檔案管理器找到織夢CMS v5.7 根目錄include/taglib/flinktype.lib.php 檔案删除如下代碼然後重新生成首頁HTML。
$DedeCMS=false;$DedeCMS->id =999;$DedeCMS->typename ='織夢鍊';if($type=='DedeCMS')$row[]=$DedeCMS; |
DedeCMS v5.6 去掉友情連結中“織夢鍊投放”連接配接的方法:背景子產品---檔案管理器找到織夢CMS v5.6 根目include/taglib/flink.lib.php 檔案删除如下代碼然後重新生成首頁HTML。
dede // 擷取織夢鍊 $cache_file = DEDEDATA.'/cache/dedelink.txt'; if(file_exists($cache_file)) { $result = unserialize(file_get_contents($cache_file)); } if(!isset($result['result']) OR $result['timeout'] < time()) $linkUrl = DedeGetHtml("http://flink.dedecms.com/server_url.php")."flink_v56.php?lang={$cfg_soft_lang}&site={$_SERVER['SERVER_NAME']}&version=".$cfg_version; $linkInfo = DedeGetHtml($linkUrl); $result = array(); $result['result'] = $linkInfo; $result['timeout'] = time() + 60 * 60 * 3; // 緩存3個小時 file_put_contents($cache_file, serialize($result)); } else { $linkInfo = $result['result']; |
然後更新HTML首頁,即可.
學習DEDECMS,看織夢DEDE教程請到
DEDE技術吧:
http://598080707.net/1文章資訊:
| 分類:
Dede教程| 本文位址:
http://598080707.net/1/245.html