dedecms5.7實現迅雷下載鏈接,織夢教程
導讀:織夢教程織夢教程在dedecms里有個下載地址鏈接,理論上就是給個軟件下載鏈接就可以,但是太單調了,所以為了方便用戶的下載,今天給大家分享dedecms5.7實現迅雷下載鏈接。dede手機模板。
在dedecms里有個下載地址鏈接,理論上就是給個軟件下載鏈接就可以,但是太單調了,所以為了方便用戶的下載,今天給大家分享dedecms5.7實現迅雷下載鏈接。
1、首先獲取聯盟的代碼
<!-- PHP專用鏈代碼二 --><div src="http://pstatic.xunlei.com/js/webThunderDetect.js" _ue_org_tagname="script" _ue_div_script="1" _ue_script_data="" _ue_custom_node_="1">&免費織夢模板lt;/div><!--?php--><!--?php thunderurl="ThunderEncode("http://資源實際下載地址");"--><!--?php--><!--?php-->2、軟件頻道設置 設置連接顯示方式為要求進入下載地址列表頁3、修改 templets/plus/download_links_templet.htmhead區域加入
然后下載地址的代碼哪里改為
<table align="center" border="0" cellspacing="2" width="100%"><tbody><tr><td height="30" bgcolor="#F2F7E6">下載地址列表:</td></tr><tr><td height="78"><!--?php--><a href="<?php echo $thunderUrl; ?>" data_ue_src="<?php echo $thunderUrl; ?>">迅雷專用下載地址</a><!--?php--></td></tr></tbody></table>4、再修改 plus/download.php
require_once(dirname(__FILE__)."/../include/common.inc.php"); require_once(DEDEINC."/channelunit.class.php"); require(DEDEINC."/encode.inc");引入inc文件把解壓到的inc上傳到 include目錄最后找到$ctag = ''; $downlinks = ch_softlinks($row[$vname], $ctag, $cu, '', TRUE); require_once(DEDETEMPLATE.'/plus/download_links_templet.htm'); exit()dede后臺模板;改為 即加上
$ctag = ''; $downlinks = ch_softlinks($row[$vname], $ctag, $cu, '', TRUE); $turelinks = trim($ctag->GetInnerText()); if(strpos("$turelinks","http") > -1 ) { $turelink = $turelinks; } else { $phppath = $GLOBALS['cfg_basehost']; $turelink = $phppath.$turelinks; } $thunderUrl = ThunderEncode("$turelink"); echo "<div _ue_org_tagname="script" _ue_div_script="1" _ue_script_data="OnDownloadClick('%22.%24thunderUrl.%22'%2C''%2Clocation.href%2C'132243'%2C2%2C''%2C4)" _ue_custom_node_="1"></div>"; require_once(DEDETEMPLATE.'/plus/download_links_templet.htm'); exit();一切完畢后,在添加軟件的時候就可以看到迅雷的填寫框,前臺就可以看到迅雷的下載地址。
織夢模板免費下裁相關dede手機模板。聲明: 本文由我的SEOUC技術文章主頁發布于:2023-07-21 ,文章dedecms5.7實現迅雷下載鏈接,織夢教程主要講述迅雷,下載鏈接,織夢網站建設源碼以及服務器配置搭建相關技術文章。轉載請保留鏈接: http://www.bifwcx.com/article/web_32492.html