统计
  • 文章总数:
  • 会员总数:
  • 评论总数:
  • 分类总数:15 个
推荐福利技术

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

天赐龙翼资源推荐信息摘要:

织梦Dedecms联动方式二级变一级的方法,现在就来说一下如何修改文件,找到infolink.lib.php。 以下代码都注掉 /* $sontype = ( ($househx % 500 != 0) ? $househx : 0 ); $toptype

// 天赐龙翼资源推荐信息详细内容: //

织梦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>";
}
}

 
本文来自互联网,不代表本站立场,如若转载,请注明出处:http://tc.15bang.cn/nr/new1591172546244.html
本站资源仅供学习者本地搭建学习参考使用,本站不存储任何资源文件,敬请周知!请在本地测试研究完成之后删除本资源,请不要商业使用或者传播!如需要商业使用,请自行联系版权方获取授权!
织梦DEDEcms内容页插入谷歌广告方法
« 上一篇
织梦Cms防黑客攻击必须要做的几件事!
下一篇 »

相关推荐

会员信息

推荐

110赞, 阅读:644
143赞, 阅读:673
87赞, 阅读:621
145赞, 阅读:673
127赞, 阅读:663

标签TAG

热点文章