dedecms下载模块加入迅雷联盟代码的方法
类别:建站知识   时间:05-09

织梦dedecms下载模块加入迅雷联盟代码的方法 。
修改 /plus/download.php 文件查找<?phpMB5U@COM在它上面加入<script src="http://pstatic.xunlei.com/js/webThunderDetect.js"></script>在它下面加入require("encode.inc");查找else if($open==1){$link = base64_decode($link);echo "<script language=’javascript’>location=\"$link\";</script>";exit();替换为else if($open==1){$link = base64_decode($link);$Url = ("你的网站url".$link);$thunderUrl = ThunderEncode($Url);echo "<script>OnDownloadClick(‘".$thunderUrl."’,”,location.href,’你的联盟id’,2,”)</script>";exit();}把迅雷联盟的 encode.inc 文件 放到 plus 目录,登陆织梦dedecms后台 系统设置 – 软件频道设置 把 附件下载方式 修改为 链接到跳转页面 。

智慧半岛,是一家专注于青岛网站建设青岛网站开发的青岛网络公司,Copyright ©2007-2019 Ebandao.Cn 版权所有 All Rights Reserved.(建议在1366x768以上的浏览器中访问)鲁ICP备08014496号

13153297890