1,覆盖文件,保持原目录不变。
2,修改下载内容页面模版
************XHTML风格:(官方自带 作者:年华)**************
打开模版 templatesxhtmldowncontent.html
找到:
- <li>{$readmessage}
- {loop $downurls $downurl} <a href="{$channelurl}download.php?downid={$downid}&id={$downurl['id']}" title="{$downurl['name']}">{$downurl['name']}{$downurl['type']}</a>
- {/loop}</li>
下面添加:
- <li >{$readmessage}
- <span style="background-color:#f4f4f4;font-weight:bold;">迅雷下载</span>
- {loop $downurls $downurl}
- <a href="#" thunderHref="{$downurl['thunder']}" thunderPid="00442" thunderResTitle="{$downurl['name']}" onClick="return OnDownloadClick_Simple(this)" oncontextmenu="ThunderNetwork_SetHref(this)" >{$downurl['name']}</a>
- {/loop}
- </li>
找到:
{template 'phpcms','header'}
下面添加:
<script src="http://pstatic.xunlei.com/js/webThunderDetect.js"></script>
------------------------------------------------------------------------------------------
***************默认模版修改方法:(官方自带 作者:康康)*******************
打开模版 templatesdefaultdowncontent.html
找到:
- <table width="740" cellpadding="0" cellspacing="5" class="downaddress">
- <tr>
- <td width="14%" align="center"><img src="{$skindir}/images/down.gif" width="84" height="26"></td>
- <td width="86%">{$readmessage}
- {loop $downurls $downurl} <a href="{$channelurl}download.php?downid={$downid}&id={$downurl['id']}" title="{$downurl['name']}">{$downurl['name']}{$downurl['type']}</a>
- {/loop}
- </td>
- </tr>
- </table>
下面添加:
- <table width="740" cellpadding="0" cellspacing="5" class="downaddress">
- <tr>
- <td width="14%" align="center"></td>
- <td width="86%">{$readmessage} <span style="background-color:#f4f4f4;font-weight:bold;">迅雷下载</span>
- {loop $downurls $downurl}
- <a href="#" thunderHref="{$downurl['thunder']}" thunderPid="00442" thunderResTitle="{$downurl['name']}" onClick="return OnDownloadClick_Simple(this)" oncontextmenu="ThunderNetwork_SetHref(this)" >{$downurl['name']}</a>
- {/loop}
- </td>
- </tr>
- </table>
找到:
{template 'phpcms','header'}
下面添加:
<script src="http://pstatic.xunlei.com/js/webThunderDetect.js"></script>
--------------------------------------------------------------------------------------------
注意:
使用迅雷下载将不能统计下载次数。