DEDECMS会员空间调用收藏
第一步
打开member/inc/space_action.php
将以下代码加入到最底部
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//我的收藏 else if ( $action == 'stow' ) { include_once (DEDEINC. '/arc.memberlistview.class.php' ); include_once (DEDEINC. '/channelunit.func.php' ); $sql = "SELECT s.*,t.* FROM `dede_member_stow` AS s left join `dede_member_stowtype` AS t on t.stowname=s.type where s.mid='{$_vars['mid']}' order by s.id desc" ; $dlist = new MemberListview(); $dlist ->pageSize =20; $dlist ->SetParameter( "action" , $action ); $dlist ->SetTemplate(DEDEMEMBER. "/space/{$_vars['spacestyle']}/list_stow.htm" ); $dlist ->SetSource( $sql ); $dlist ->Display(); exit (); } |
第二步
将以下代码保存为list_stow.htm,保存在/member/space/你当前所使用的风格目录下
1
2
|