muban大师 发表于 2020-4-30 09:28:00

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

织梦Dedecms联动方式二级变一级的方法,现在就来说一下如何修改文件,找到infolink.lib.php。
        以下代码都注掉
        /*
        $sontype = ( ($househx % 500 != 0) ? $househx : 0 );
        $toptype = ( ($househx % 500 == 0) ? $househx : ( $househx-($membertype%500) ) );
        $fields['househx', = "{$em_househxs[$toptype,} ";
        下级显示不显示
        foreach($em_househxs as $eid=>$em)
        {
        if($eid$toptype+499) continue;
        if($eid == $househx) {
        $fields['househx', .= " {$em}";
        }
        else {
        $fields['househx', .= " ";
        }
        }
        */
        换成
        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', .= " ";
        }
        }
页: [1]
查看完整版本: 织梦Dedecms联动方式二级变一级的方法