调用帖子内容摘要信息 * R/ s" V" }; j+ n4 p2 V1 }
{dede:loop table="cdb_posts" sort="tid" row="3"} ( j( H0 A9 f9 Y9 [# s/ q4 C6 ~<li><a href="/bbs/thread-[field:tid/]-1-1.html" target="_blank">[field:subject function="cn_substr('@me',100)" /]</a> 7 V2 |* g2 g5 T. Z
[field:message function="cn_substr('@me',46)" /]...<a href="/bbs/thread-[field:tid/]-1-1.html" target="_blank">[查看全文]</a> * V! d( X5 o- Q/ t* }6 b</li> . ^4 p2 Y! W$ j' O{/dede:loop} ; H, Q, E+ s8 V ~' Z) Q调用查看次数最多的帖子。 9 F7 }- f5 M$ o
{dede:loop table="cdb_threads" if="fid=4 and displayorder!=-1" sort="views" row="8"} ! Q$ [5 w( K; e7 j/ Z" h/ S<li><a href="/bbs/thread-[field:tid/]-1-1.html" target="_blank">[field:subject function="cn_substr('@me',46)" /]</a> & J$ {4 V# W6 W4 ^& `# }! F[[field:lastpost function="date('m-d','@me')" /]] $ x4 J: T# G+ Y3 V% h# f* F' s2 t) y
</li> ! D8 @+ u: g% h7 r0 S, M) j+ e& e{/dede:loop} ( [* P5 m1 i I# L# i" a调用回复次数最多的帖子。 1 K& e8 c: J' O1 k{dede:loop table="cdb_threads" if="fid=4 and displayorder!=-1" sort="replies" row="8"} 6 G7 O, p3 `+ h9 p/ ~<li><a href="/bbs/thread-[field:tid/]-1-1.html" target="_blank">[field:subject function="cn_substr('@me',46)" /]</a> ( W4 X/ i) ] b2 R7 t
[[field:lastpost function="date('m-d','@me')" /]] 8 r" V7 S' q$ |- A8 h( n</li> " u+ A! G) R2 j
{/dede:loop} 2 X& w$ T& b( L8 Y5 r
调用精华帖子 帖子分为1级精华2级精华3级精华。精华越高排在最前面 : j; U) }& D# W4 D
{dede:loop table="cdb_threads" if="fid=4 and displayorder!=-1" sort="digest" row="8"} 8 N3 b- E6 _$ e: V1 K% M! r<li><a href="/bbs/thread-[field:tid/]-1-1.html" target="_blank">[field:subject function="cn_substr('@me',26)" /]</a> 5 B) d3 v+ ~- w5 j# e- S7 O, ~
[[field:lastpost function="date('m-d','@me')" /]] 4 R+ y5 X" t# M, g/ q( Q$ E% @</li> 7 q+ V9 r% h K) p4 `1 L% _( t: ^- \
{/dede:loop} - G) L2 X. W$ f, p5 h% Q, L
调用帖子内容摘要信息 $ V0 Z) s1 ]- m+ ?) B) h
x4 K f/ W- m# p( i. ~
first=1 只显示第一楼主题的信息。first=0 就是只显示回复信息 fid=4就是板块的id tid就是主题的id sort="tid" 按主题倒序排序 2 t7 f3 C) ?. [0 j# S
5 b1 c% K: H V$ c2 s) P
{dede:loop table="cdb_posts" if="first=1 and fid=4" sort="tid" row="3"} ' T7 j4 u& j; `4 i
<li><a href="/bbs/thread-[field:tid/]-1-1.html" target="_blank">[field:subject function="cn_substr('@me',46)" /]</a> ) D, n$ ^' m; d) s, B[field:message function="cn_substr('@me',60)" /]...<a href="/bbs/thread-[field:tid/]-1-1.html" target="_blank">[查看全文]</a> + q) D- ]$ R- h1 \% i</li> 1 U5 D$ y* x# M& X, s8 _
{/dede:loop} 2 `& G/ p. ~- ]2 L( S$ ~% C
幻灯片调用DZ论坛图片显示 . r! E5 _( G4 y; S- _, x: g }% t<script language='javascript'> . S* {* r# \. x$ a
linkarr = new Array(); * V, k# |- @, a3 V- ?3 l* E
picarr = new Array(); " d; \2 M* ]# ]. t
textarr = new Array(); / }4 O5 t6 r% y# Q/ ?7 U/ J7 b
var swf_width=280; ' R- w! T* ^$ \$ H
var swf_height=192; 9 m3 [8 p3 p4 o
var files = ""; 0 g0 ^8 W, s) B" m/ \) A8 y8 Z5 _/ Svar links = ""; , b" v+ [5 \" o4 w3 @& o! B: lvar texts = ""; * e1 V! y7 r& j; H# d$ V8 p( Q* ^; b//这里设置调用标记 8 K; S) Y- i; ]) H& ?, n7 [" C% @. P
{dede:sql sql="SELECT`cdb_attachments`.`aid`, `cdb_attachments`.`attachment`,`cdb_threads`.`tid`, `cdb_threads`.`fid`, 0 H% z! _; {* L) _( ?8 v5 [. |1 }4 B+ t7 ^7 r% O {- [' N
`cdb_threads`.`subject` FROM `cdb_attachments` LEFT JOIN `cdb_threads` ON `cdb_threads`.`tid`=`cdb_attachments`.`tid` WHERE : U0 q5 @) Z9 i- F7 R+ Y% z
5 B4 A" @7 t* I3 z: c6 n`cdb_attachments`.`readperm`='0' AND `displayorder`>='0' AND `filetype`='image/pjpeg' GROUP BY tid LIMIT 0,1 "} / c6 i1 W; y% y/ }% G