我已阅读并接受《用户协议》
注册VIP账号,全站资源免费任意下!
欢迎来到微视媒-源码测试 经验教程 小程序源码 设计资源
开通会员全站免费下载
立即加入
您的一年会员开通成功!
您的一年会员开通成功!
今日下载数已用完
升级会员
提交
下载提示!请输入验证码验证哦!
看不清,重新获取
提交验证码
首页 > 织梦学习 >

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

织梦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>";
}
}
733
148
  • 分 享 者:
    虎哥
  • 更新时间:
    06-03
  • 资源评分:
  • 分享方式:
    共享
  • 技术支持:
    暂无
  • 使用场景:
    仅供个人技术学习参考,拒绝商用
  • 可用操作:
您可能会喜欢的其他资源
点击咨询
在线时间:9:00-21:00