使用帝国CMS灵动标签调用Discuz信息
帝国CMS灵动标签调用discuz信息的方法如下:首先,在帝国CMS模板中插入以下代码:[!--news.url--]。然后,登录Discuz后台,进入“模块”-“插件管理”,找到“灵动标签插件”,点击“安装”。安装完成后,进入“模块”-“灵动标签”,点击“获取灵动标签数据”,选择需要调用的Discuz板块和内容类型。最后,在帝国CMS模板中替换[!--news.url--]为[!--news.url--]即可实现调用Discuz信息。
新帖(动态地址)
[e:loop={"selecttid,subject,datelinefrompre_forum_threadorderbytiddesclimit10",10,24,0}]<li><span><?=date('Y-m-d',$bqr[dateline])?></span><ahref="/bbs/forum.php?mod=viewthread&tid=<?=$bqr[tid]?>&extra=page%3D1"target="_blank"><?=$bqr[subject]?></a></li>[/e:loop]
精华(动态地址)
[e:loop={"selecttid,subject,dateline,digestfrompre_forum_threadwheredigest!=0orderbytiddesclimit10",10,24,0}]<li><span><?=date('Y-m-d',$bqr[dateline])?></span><ahref="/bbs/forum.php?mod=viewthread&tid=<?=$bqr[tid]?>&extra=page%3D1"target="_blank"><?=$bqr[subject]?></a></li>[/e:loop]
新帖(静态地址)
[e:loop={"selecttid,subject,datelinefrompre_forum_threadorderbytiddesclimit4",10,24,0}]<li><span><?=date('Y-m-d',$bqr[dateline])?></span><ahref="/bbs/thread-<?=$bqr[tid]?>-1-1.html"target="_blank"><?=$bqr[subject]?></a></li>[/e:loop]
精华(静态地址)
[e:loop={"selecttid,subject,dateline,digestfrompre_forum_threadwheredigest!=0orderbytiddesclimit4",10,24,0}]<li><span><?=date('Y-m-d',$bqr[dateline])?></span><ahref="/bbs/thread-<?=$bqr[tid]?>-1-1.html"target="_blank"><?=$bqr[subject]?></a></li>[/e:loop]
热帖 (动态地址)
回复达到20,及更多
[e:loop={"selecttid,subject,dateline,repliesfrompre_forum_threadwherereplies>=20orderbytiddesclimit10",10,24,0}]<li><span><?=date('Y-m-d',$bqr[dateline])?></span><ahref="/bbs/forum.php?mod=viewthread&tid=<?=$bqr[tid]?>&extra=page%3D1"target="_blank"><?=$bqr[subject]?></a></li>[/e:loop]
热帖 (静态地址)
回复达到20,及更多
[e:loop={"selecttid,subject,dateline,repliesfrompre_forum_threadwherereplies>=20orderbytiddesclimit10",10,24,0}]<li><span><?=date('Y-m-d',$bqr[dateline])?></span><ahref="/bbs/thread-<?=$bqr[tid]?>-1-1.html"target="_blank"><?=$bqr[subject]?></a></li>[/e:loop]