您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

如何给dedecms增加迅雷联盟代码

2024/2/25 8:24:27发布16次查看
如何给dedecms增加迅雷联盟代码
第一步:在templates/plus/download_links_templet.htm打开这个文件把下面代码放
在之前就行了。
第二步:在站点根目录找到plus/download.php文件,打开。找到$downlinks =
ch_softlinks($row[$vname], $ctag, $cu, '', true);这一句,在后段加上这一段代

preg_match_all('/(.+?)/sim',$downlinks,$vlink);
$downlinks =  '';
    foreach( $vlink[1] as $getlink =>$value )
    {
      if( strtolower(substr( $value ,0,10 ))
=='thunder://' )
   {
    $downlinks.= 'thunderhref='.$value.' thunderpid=85957 thundertype=
thunderrestitle= onclick=return ondownloadclick_simple(this,2);
oncontextmenu=thundernetwork_sethref(this) >迅雷下载
 ';
   }
   else
   {
    $downlinks.= 'thunderhref='.$value.' thunderpid=85957 thundertype=
thunderrestitle= onclick=return ondownloadclick_simple(this,2);
oncontextmenu=thundernetwork_sethref(this) >本地下载
 ';
   }
}
好了大功告诉成了,很简单的方法就给你的网站增加迅雷联盟的下载代码了哦,
本站原创转载注明www.111cn.net
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product