织梦dedecms會员中心我的收藏新增一个自定义字段显示
那么怎么做呢?
I..打开/member/mystow.php
差不多I.IX行到IIV行,把这段代码替换为:
if($rank=
更多精彩就在: 51免费论文网|www.jxszl.com
=top){
$sql="SELECTs.*,COUNT(s.aid)ASnum,t.*fromdede_member_stowASsLEFTJOIN`dede_member_stowtype`AStont.stowname=s.typeleftjoin`dede_archives`ASaronar.id=s.aidgroupbys.aidorderbynumdesc";
$tpl=stowtop;
}else{
$sql="SELECTs.*,t.*,ar.*FROM`dede_member_stow`ASsleftjoin`dede_member_stowtype`AStont.stowname=s.typeleftjoin`dede_archives`ASaronar.id=s.aidwheres.mid=".$cfg_ml->M_ID."orderbys.iddesc";
$tpl=mystow;
}
II.打开/member/templets/mystow.htm和/member/templets/stowtop.htm
搜索收藏时间在收藏时间上面加这句代码
完成
原文链接:http://www.jxszl.com/biancheng/dedecms/75077.html
热门阅读