Home > CMS Tutorial > DEDECMS > How to add Thunder download to dedecms 5.6 software download channel

How to add Thunder download to dedecms 5.6 software download channel

藏色散人
Release: 2019-12-17 09:19:11
Original
2185 people have browsed it

How to add Thunder download to dedecms 5.6 software download channel

dedecms 5.6 How to add Thunder downloads to the software download channel?

one. Use the administrator account to log in to the dedecms5.5 backend management system

2. Click "System" -> "Software Channel Settings"

3. Find "Attachment Download Method" in the software channel settings. Be sure to pay attention to the following three points:

1) If the option "Link to real software address" is selected in your website management system, you Just follow the instructions in the "Link to real software address plus dedicated chain" folder provided in the attachment.

2) If the option "Link to jump page" is selected in your website management system, you should follow the instructions in the "Link to jump page plus special link" folder provided in the attachment. Document operation.

Recommended learning: Dreamweaver cms

Partial modification method:

We need to select the option "Link to jump page".

1. Partial Thunder: Keep your local resource download link, and add a separate Thunder special link next to your local resource download link.

2. For partial Thunder conversion, you only need to modify the file templates\system\channel_downlinks.htm.

3. Open the file templets\system\channel_downlinks.htm and find the following code:

<li><a href="~link~" target="_blank">~server~</a></li> 
在这段代码的前面加上以下代码: 
<script src=&#39;http://pstatic.xunlei.com/js/webThunderDetect.js&#39;></script> 
<script src=&#39;http://pstatic.xunlei.com/js/base64.js&#39;></script> 
<script language="javascript"> 
var thunderPid="41750"; 
function outPutThunder() 
{ 
  var thunderCh=unescape("%u8FC5%u96F7%u4E13%u7528%u9AD8%u901F%u4E0B%u8F7D");var arg=arguments; var til=""; if(arg[0]=="undefined") return; if(arg[1]!="undefined") til=arg[1]; var th_Pid=""; if(arg[3])th_Pid=arg[3];else if(!isNaN(thunderPid) && thunderPid!="") th_Pid=thunderPid;  else return; var th_href=arg[0]; if(th_href.indexOf("://")<=0){if(th_href.substr(0,1)!="/"){var a=document.location.href;th_href=a.substr(0,a.lastIndexOf("/")+1)+th_href;}else{th_href="http://"+document.location.host+th_href;}} 
  
  var tagEx=arguments[2]?arguments[2]:&#39;&#39;; 
  var thunderURL=ThunderEncode(th_href);  
  var thunderRes="";      
  var thunderName=thunderCh+(til?("_"+til):""); 
  document.write("<li><a href=\"#\" thunderHref=\""+thunderURL+"\" thunderPid=\""+th_Pid+"\" thunderType=\"\" thunderResTitle=\""+thunderRes+"\" onClick=\"return OnDownloadClick_Simple(this,2);\" oncontextmenu=\"ThunderNetwork_SetHref(this);\" title=\""+thunderCh+"\" "+tagEx+">"+thunderName+"<\/a></li>"); 
} 
outPutThunder("~link~","",""); 
</script>
Copy after login

Note: 1. The var thunderPid="41750" in the above code; the 41750 in this code It must be modified to your own alliance number

4. The templets\system\channel_downlinks.htm file has been modified. For details, please refer to the channel_downlinks.htm file provided in the attachment.

5. Overwriting instructions:

A). Use your modified channel_downlinks.htm file to overwrite the templates\system\channel_downlinks.htm file in your website management system.

B). Just regenerate everything after overwriting.

The above is the detailed content of How to add Thunder download to dedecms 5.6 software download channel. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template