[原创]光线cms(gxcms)支持迅雷下载链接的修改

2012-08-25光线CMS2988

主要是修改一下内容页模版,播放页的可以照着写。
示例是根据gxcms1.4的内容页模版修改(template\default\Home\video_detail.html)。修改前注意备份。修改成功了的留个言。

修改前:

<gt name="countdown" value="0"><div class="play_list">
<p class="title">下载列表:</p>
<div id="plist">
<ul class="split-list">
<gxfor name="downlist" id="video">
<li><a href="{$video.playpath}" target="_blank">[{$video.playname}]</a></li>
</gxfor>
</ul>
</div>
</div>
<gt>


修改后:

<gt name="countdown" value="0"><div class="play_list">
<p class="title">下载列表:</p><script type="text/javascript" src="http://pstatic.xunlei.com/js/webThunderDetect.js"></script><script type="text/javascript" src="http://pstatic.xunlei.com/js/base64.js"></script>
<div id="plist">
<ul class="split-list">
<gxfor name="downlist" id="video">
<script type="text/javascript">thunder_url = ThunderEncode(decodeURIComponent("{$video.playpath|rawurlencode}"));document.write('<li><a href="#" thunderHref="' + thunder_url + '" thunderPid="102102" thunderResTitle="{$video.playname}" onClick="return OnDownloadClick_Simple(this,2,4)" oncontextmenu="ThunderNetwork_SetHref(this)">[{$video.playname}]</a></li>'); </script>
</gxfor>
</ul>
</div>
</div></gt>

分享:

支付宝

微信