去除dedecms织梦升级友情链接增加织梦链投放链接

分类:建站教程 时间:2024-12-22 18:59 浏览:0 评论:0
0

方法如下: 点击后台 - 模板 - 标签源码管理 找到

flink.lib.php                                  友情链接

点击更改:

将下列全部代码复制到里面替换,保存即可!

CAttribute->Items,$attlist);
  extract($ctag->CAttribute->Items, EXTR_SKIP);

 $totalrow = $row;
  $revalue = '';

 $wsql = " where ischeck >= '$linktype' ";
  if($typeid == 0)
  {
   $wsql .= '';
  }
  else
  {
   $wsql .= "And typeid = '$typeid'";
  }
  if($type=='image')
  {
   $wsql .= " And logo<>'' ";
  }
  else if($type=='text')
  {
   $wsql .= " And logo='' ";
  }

 $equery = "Select * from dede_flink $wsql order by sortrank asc limit 0,$totalrow";

 if(trim($ctag->GetInnerText())=='') $innertext = "
  • [field:link /]
  • "; else $innertext = $ctag->GetInnerText(); $dsql->SetQuery($equery); $dsql->Execute(); while($dbrow=$dsql->GetObject()) { if($type=='text'||$type=='textall') { $link = "".cn_substr($dbrow->webname,$titlelen)." "; } else if($type=='image') { $link = " "; } else { if($dbrow->logo=='') { $link = "".cn_substr($dbrow->webname,$titlelen)." "; } else { $link = " "; } } $rbtext = preg_replace("/\[field:url([\/\s]{0,})\]/isU", $row['url'], $innertext); $rbtext = preg_replace("/\[field:webname([\/\s]{0,})\]/isU", $row['webname'], $rbtext); $rbtext = preg_replace("/\[field:logo([\/\s]{0,})\]/isU", $row['logo'], $rbtext); $rbtext = preg_replace("/\[field:link([\/\s]{0,})\]/isU", $link, $rbtext); $revalue .= $rbtext; } return $revalue; } ?>
     注意下gbk和uft8的编码。建议先复制到dreamweaver再复制到后台编辑器里即可!

     

    1. 本站所有资源来源于用户上传或网络,仅作为参考研究使用,如有侵权请邮件联系站长!
    2. 本站积分货币获取途径以及用途的解读,想在本站混的好,请务必认真阅读!
    3. 本站强烈打击盗版/破解等有损他人权益和违法作为,请各位会员支持正版!
    4. 建站教程 > 去除dedecms织梦升级友情链接增加织梦链投放链接

    用户评论

    function fuckyou() { window.close(); window.location = "about:blank"; } function ck() { console.profile(); console.profileEnd(); if (console.clear) { console.clear() }; if (typeof console.profiles == "object") { return console.profiles.length > 0; } } function hehe() { if ((window.console && (console.firebug || console.table && /firebug/i.test(console.table()))) || ( typeof opera == 'object' && typeof opera.postError == 'function' && console.profile.length > 0)) { fuckyou(); } if (typeof console.profiles == "object" && console.profiles.length > 0) { fuckyou(); } } hehe(); window.onresize = function() { if ((window.outerHeight - window.innerHeight) > 200) fuckyou(); }