How to give DEDECMS Add Thunder Federation Code
The first step: Open this file in templates/plus/download_links_templet.htm and put the following code
It's OK before the <script src= "Http://pstatic.xunlei.com/js/webThunderDetect.js" ></script>
<script src= "Http://pstatic.xunlei.com/js/base64.js" ></script>
Step Two: Locate the plus/download.php file in the site root directory and open it. Find $downlinks =
Ch_softlinks ($row [$vname], $ctag, $cu, ", true); this sentence, in the latter paragraph, add this passage
Code
Preg_match_all ('/<a.*: |\\t|\\r|\\n)? href=[\ ' "]? (. +?) [\'"]? (:(?: |\\t|\\r|\\n) +.*? > (. +?) <\/a.*?>/sim ', $downlinks, $vlink);
$downlinks = ';
foreach ($vlink [1] as $getlink => $value)
{
if (Strtolower (substr ($value, 0,10))
= = ' thunder://')
{
$downlinks. = ' <a href= ' "#"
Thunderhref= "'. $value. '" thunderpid= "85957" thundertype= ""
Thunderrestitle= "" onclick= "return Ondownloadclick_simple (this,2);"
Oncontextmenu= "Thundernetwork_sethref (This)" > Thunderbolt download </a> ';
}
Else
{
$downlinks. = ' <a href= ' "#"
Thunderhref= "'. $value. '" thunderpid= "85957" thundertype= ""
Thunderrestitle= "" onclick= "return Ondownloadclick_simple (this,2);"
Oncontextmenu= "Thundernetwork_sethref (This)" > local download </a> ';
}
}
Well, the great job tell, very simple method will give you the site to increase the Thunder Alliance download Code Oh,
Original reprint of this site annotated www.111cn.net