DEDECMS會員空間調用收藏程序開發
導讀:程序開發程序開發第一步 打開member/inc/space_action.php 將以下代碼加入到最底部 1 2 3 4 5 6 7 8 9 10 11 12 13 14 /網seo優化趨勢網站seo優化。
第一步 打開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. /chan […]
第一步
打開member/inc/space_action.php
將以下代碼加入到最底部
//我的收藏 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/你當前所使用的風格目錄下
{dede:include file='header.htm'/} <div class="wrapper mT10"> <div class="west"> {dede:include file='side_icon.htm'/} {dede:include file='side_class.htm'/} {dede:include file='side_visitor.htm'/} {dede:include file='side_search.htm'/} </div> <div class="east"> <dl class="border"> <dt class="caption"><strong>收藏</strong></dt> <dd class="body"> {dede:datalist} <div class="mp10 dashed"> <div&網站優化seo培訓nbsp;class="mB10"> <h3 class="fLeft"><a href='archives_do.php?dopost=viewArchives&aid={dede:field.aid/}' target='_blank'>{dede:field.title/}</a></h3> <span class="mL5 aGray">({dede:field.addtime function="MyDate('Y-m-d h:i',@me)"/})</span> </div> <div class="clearfix pB10"></div> </div> {/dede:datalist} <div class="fRight mTB10 pd10">{dede:pagelist /}</div> <div class="clearfix"></div> </dd> </dl> </div> </div> {dede:include file='footer.htm'/} </body> </html>聲明: 本文由我的SEOUC技術文章主頁發布于:2023-05-26 ,文章DEDECMS會員空間調用收藏程序開發主要講述標簽,標題,CMS網站建設源碼以及服務器配置搭建相關技術文章。轉載請保留鏈接: http://www.bifwcx.com/article/web_9602.html
- 上一篇:織夢常用的標簽大全標簽調用
- 下一篇:實現DedeCms文章標題分欄顯示標簽調用