找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 105|回复: 0

[cms教程] 织梦Dedecms联动方式二级变一级的方法

[复制链接]

该用户从未签到

发表于 2020-4-30 09:28:00 | 显示全部楼层 |阅读模式

您需要 登录 才可以下载或查看,没有账号?立即注册

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

使用道具 举报

网站地图|页面地图|文字地图|Archiver|手机版|小黑屋|找资源 |网站地图

GMT+8, 2024-10-7 10:18

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表