Dedecms5.7最全的調用DZ2.5論壇各種數據的方法,DED
導讀:DEDE技術
調用DZ論壇圖片:{dede:sql sql=”SELECT`cdb_attachments`.`aid`, `cdb_attachments`.`attachment`,`cdb_threads`.`tid`, `cdb_threads`.`fid`, `cdb_threads`.`subject` FROM `cdb_attachments` LEFT JOIN `cdb_threads` ON `cdb_threads`.`tid`=`cdb_attachments`.`tid` WHERE `cdb_attachments`.`readperm`=’0′ AND `displayorder`>=’0′ AND `filetype`=’image/pjpeg’ GROUP BY tid LIMIT 0,1 “}<a href=”/bbs/viewthread.php?tid=[field:tid /]“><img src=”/bbs/attachments/[field:attachment/]” ALT=”[field:subject/]” width=”100″ height=”80″ border=”0″ /></A>{/dede:sql} 余下的工作就是用css定義你的a標簽和img標簽了dede調用DZ論壇帖子及特定板塊帖子的調用方法論壇最新主題::{dede:loop table=”cdb_threads” sort=”tid” row=”10″}<a href=”/dz/viewthread.php?tid=[field:tid /]“>·[field:subject function="cn_substr('@me',30)" /]([field:lastpost function="date('m-d H:M','@me')" /])</a>{/dede:loop}調特定板塊的主題{dede:loop table=”cdb_threads” if=”fid=5 and displayorder!=-1″ sort=”tid” row=”10″}<a href=”/dz/viewthread.php?tid=[field:tid /]“>·[field:subject function="cn_substr('@me',30)" /]([field:lastpost function="date('m-d H:M','@me')" /])</a>顯示精華帖{dede:loop table=”cdb_threads” if=”fid=5 AND digest>0 and displayorder!=-1 ” sort=”tid” row=”10″}
聲明: 本文由我的SEOUC技術文章主頁發布于:2023-07-19 ,文章Dedecms5.7最全的調用DZ2.5論壇各種數據的方法,DED主要講述最全,標簽,DEDE技術網站建設源碼以及服務器配置搭建相關技術文章。轉載請保留鏈接: http://www.bifwcx.com/article/web_30267.html