欢迎来到润旭源码网
帮助中心

润旭源码网

热门搜索: 企业源码    免费源码   

织梦Dedecms联动方式二级变一级的方法

  • 时间:2020-07-20 11:46 编辑: 来源: 阅读:155
  • 扫一扫,手机访问
摘要:织梦Dedecms联动方式二级变一级的方法,现在就来说一下如何修改文件,找到infolink.lib.php。以下代码都注掉/*$sontype = ( ($househx % 500 != 0) ? $househx : 0 );$toptype = ( ($househx % 500 == 0) ? $househx : ( $househx-($membertype%500) ) );$fields['househx

织梦Dedecms联动方式二级变一级的方法,现在就来说一下如何修改文件,找到infolink.lib.php。

以下代码都注掉

/*

$sontype = ( ($househx % 500 != 0) ? $househx : 0 );

$toptype = ( ($househx % 500 == 0) ? $househx : ( $househx-($membertype%500) ) );

$fields['househx'] = "<a href=’{$baseurl}plus/list.php?channelid={$channelid}&tid={$typeid}&househx={$toptype}&nativeplace={$nativeplace}’><b>{$em_househxs[$toptype]}</b></a> ";

下级显示不显示

foreach($em_househxs as $eid=>$em)

{

if($eid < $toptype+1 || $eid > $toptype+499) continue;

if($eid == $househx) {

$fields['househx'] .= " <b>{$em}</b>";

}

else {

$fields['househx'] .= " <a href=’{$baseurl}plus/list.php?channelid={$channelid}&tid={$typeid}&househx={$eid}&nativeplace={$nativeplace}’>{$em}</a>";

}

}

*/

换成

foreach($em_househxs as $eid=>$em)

{

if($eid % 500 != 0) continue;

if(isset($_GET['househx']))

{

$navclass=$_GET['househx'];

if ($navclass==$eid)

{

$navclass=’ style=color:#ff0000′;

}

$fields['househx'] .= " <a href=’{$baseurl}plus/list.php?channelid={$channelid}&tid={$typeid}&househx={$eid}&nativeplace={$nativeplace}’".$navclass.">{$em}</a>";

}

}


  • 全部评论(0)
资讯详情页最新发布上方横幅
联系我们

QQ:888477 {点击直接联系}

邮箱:runxu123@qq.com

时间:周1——周6 【9:00-23:00

联系客服
购买源码 源码咨询 投诉建议 联系客服
0373-6621888
手机版

扫一扫进手机版
返回顶部