Warning: Undefined array key "night" in /www/wwwroot/dhaomu.com/wp-content/themes/b2/header.php on line 18

织梦会员中心我的收藏新增一个自定义字段显示

dedecms教程:织梦教程dedecms会员中心我的收藏新增一个自定义字段显示!在织梦cms会员中心的收藏里面,每条收藏的信息把他对应的描述内容也显示出来。

dedecms教程:织梦教程dedecms会员中心我的收藏新增一个自定义字段显示!在织梦cms会员中心的收藏里面,每条收藏的信息把他对应的描述内容也显示出来。

那么怎么做呢?

1、打开/member/mystow.php

差不多19行到25行,把这段代码 替换为:

if($rank == 'top'){
        $sql = "SELECT s.*,COUNT(s.aid) AS num,t.*  from dede_member_stow AS s LEFT JOIN `dede_member_stowtype` AS t on  t.stowname=s.type left join `dede_archives` AS ar on ar.id=s.aid  group by s.aid order by num desc";
        $tpl = 'stowtop';
    }else{
        $sql = "SELECT s.*,t.*,ar.* FROM `dede_member_stow` AS s left join `dede_member_stowtype` AS t on t.stowname=s.type left join `dede_archives` AS ar on ar.id=s.aid   where s.mid='".$cfg_ml->M_ID."' order by s.id desc";
        $tpl = 'mystow';
    }

2、打开/member/templets/mystow.htm 和 /member/templets/stowtop.htm

搜索收藏时间 在收藏时间上面加这句代码

<tr>
  <td colspan="6" class="tabTitle tbBtm">描述:<?php echo $fields['description']; ?></td>
</tr>
温馨提示:
1.本站大部分内容均收集于网络!若内容若侵犯到您的权益,请发送邮件至:duhaomu@163.com,我们将第一时间处理!
2.资源所需价格并非资源售卖价格,是收集、整理、编辑详情以及本站运营的适当补贴,并且本站不提供任何免费技术支持。
3.所有资源仅限于参考和学习,版权归原作者所有,更多请阅读网站声明

给TA赞赏
共{{data.count}}人
人已赞赏
编程技巧

Discuz使用微信登陆出现“目前无法通过微信登录”等故障解决

2021-5-10 0:00:00

编程技巧

强化ECSHOP搜索功能开发思路

2021-5-14 0:00:00

0 条回复 A文章作者 M管理员

Warning: Trying to access array offset on value of type null in /www/wwwroot/dhaomu.com/wp-content/themes/b2/functions.php on line 3914

Warning: Trying to access array offset on value of type null in /www/wwwroot/dhaomu.com/wp-content/themes/b2/functions.php on line 3914
----《》
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索