如何将迅雷下载加入dedecms 5.6软件下载通道?
1.使用管理员帐户登录dedecms5.5后台管理系统。
2.单击“系统”–““软件渠道设置”
3.在软件渠道设置中找到“附件下载方法”,注意以下三点:
1)如果您的网站管理系统中选择了““链接真实软件地址””选项,您可以按照附件中提供的““链接真实软件地址加专用链””文件夹下的说明和文档进行操作。
2)如果您的网站管理系统中选择了“链接跳转页面”的选项,您可以按照附件中提供的说明和文档在“链接跳转页面加专用链”文件夹下进行操作。
推荐学习:梦想编织cms
部分修改方法:
我们需要选择“链接到跳转页面”的选项。
1.部分迅雷:保留你的本地资源下载链接,在你的本地资源下载链接旁边增加一个专门的迅雷链接。
2.thunderbolt的部分只需要修改文件Temples \\ system \\ channel _ downlinks.htm。
3.打开templates \\ system \\ channel _ downlinks.htm文件,找到以下代码:
lt;ligtlt;a href = quot~链接~ quottarget = quot_ blankquotgt;~服务器~ lt/AGT;lt;/ligt;
在此代码之前添加以下代码:
lt;脚本src = # 39http://pstatic.xunlei.com/js/webThunderDetect.js#39; gt;lt;/scriptgt。
lt;脚本src = # 39http://pstatic.xunlei.com/js/base64.js#39; gt;lt;/scriptgt。
lt;脚本语言= quotjavascriptquotgt;
var thunderPid = quot41750quot;
函数outPutThunder()
{
var thunderCh = unescape(quot;% u8fc 5% u96f 7% u4e 13% u 7528% u9ad 8% u901F % u 4e0b % u 8f 7d quot;);var arg =参数;var til = quotquot;if(arg[0]= = quot;未定义的quot;)返回;if(arg[1]!= quot未定义的quot;)til = arg[1];var th _ Pid = quotquot;if(arg[3])th _ Pid = arg[3];else if(!isNaN(迅雷)ampamp雷电!= quotquot)th _ Pid = thunderPid否则返回;var th _ href = arg[0];if(th _ href . index of(quot;://quot;)lt;=0){if(th_href.substr(0,1)!= quot/quot;){ var a = document . location . href;th_href=a.substr(0,a . lastindexof(quot;/quot;)+1)+th _ href;} else { th _ href = quothttp://quot;+document . location . host+th _ href;}}
var tagEx=arguments[2]参数[2]:# 39;#39;;
var thunder URL = thunder encode(th _ href);
var thunderRes = quotquot;
var thunderName=thunderCh+(til?(quot_ quot+til):quot;quot);
doc . write(quot;lt;ligtlt;a href = \\ quot# \\ quotthunderHref = \\ quotquot+thunder URL+quot;\\ quotthunderPid = \\ quotquot+th _ Pid+quot;\\ quotthunderType = \\ quot\\ quotthunderresttitle = \\ quot;quot+thunder RES+quot;\\ quotonClick = \\ quot返回OnDownloadClick_Simple(this,2);\\ quotoncontextmenu = \\ quot迅雷网络_ SetHref(this);\\ quottitle = \\ quotquot+thunder ch+quot;\\ quotquot+tagEx+quot;gt;quot+thunder name+quot;lt;\\/AGT;lt;/ligt;quot);
}
output thunder(quot;~链接~ quot,quotquot,quotquot);
lt;/scriptgt。登录后复制
