灵动标签应用之“调用DZ,PW论坛帖子”
[ 帝国cms教程 // 2014-03-20 ]
帝国cms用灵动标签调用discuz和phpwind的最新贴子代码如下:
调用Discuz最新贴子:cdb_是discuz的表前缀
<table width="100%" border="0" cellspacing="1" cellpadding="3"> [e:loop={"select tid,subject from cdb_threads order by tid desc limit 10",10,24,0}] <tr><td><a href="/bbshref="http://www.softhome.cc/viewthread.php?tid=<?=$bqr[tid]?>" target="_blank"> <?=$bqr[subject]?></a></td></tr>[/e:loop]</table>
调用PHPwind最新贴子:pw_是phpwind的表前缀
<table width="100%" border="0" cellspacing="1" cellpadding="3"> [e:loop={"select tid,subject from pw_threads order by tid desc limit 10",10,24,0}] <tr><td><a href="/bbs/read.php?tid=<?=$bqr[tid]?>" target="_blank"> <?=$bqr[subject]?></a></td></tr>[/e:loop]</table>