在织梦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>
完成
本站部分文章搜集整理于互联网或者网友提供,如有侵权请联系站长
如若转载,请注明出处:https://htmlbk.com/dedecms/46.html
温馨提示:该文档最后一次修改时间为2019-02-04 23:53:52,请注意相关的内容是否还可用!