"Software Channel Settings"; then find the "Attachment Download Method" in the software channel settings; finally, click on the local resource download link Just add a dedicated Thunder link next to it."/> "Software Channel Settings"; then find the "Attachment Download Method" in the software channel settings; finally, click on the local resource download link Just add a dedicated Thunder link next to it.">
search
HomeCMS TutorialDEDECMSHow to add Thunder download to dedecms 5.6 software download channel

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>

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!

Statement
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version