destoon调用discuz论坛中带图片帖子的实现方法


本文整理自网络,侵删。

在destoon开发中有时候我们需要调用论坛的帖子,但是带有图片的帖子该怎么调用出来呢,本文就来实例展示一个可以调用discuz论坛带图片的帖子的方法:

标签代码如下:

<!--{php $tags=tag("table=pre_forum_thread i,pre_forum_threadimage t&prefix=&condition=i.tid=t.tid&length=36&order=i.tid desc&pagesize=9&target=_blank&template=null");}-->
{loop $tags $t}
<A  rel="external nofollow" rel="external nofollow" rel="external nofollow" target=_blank>{$t[subject]}</A> <br />
<A  rel="external nofollow" rel="external nofollow" rel="external nofollow" target=_blank><img src="bbs/data/attachment/forum/{$t[attachment]}" width="50" height="50" /></A>
{/loop}

调用论坛新帖子的方法如下:

<!--{php $tags=tag("table=pre_forum_thread&prefix=&length=36&order=tid desc&pagesize=9&target=_blank&template=null");}-->
{loop $tags $t}
<A  rel="external nofollow" rel="external nofollow" rel="external nofollow" target=_blank>{$t[subject]}</A> 
{/loop}

希望本文所述方法对大家destoon开发有所帮助。

更多关于Discuz论坛内容来自木庄网络博客


标签:Discuz论坛

相关阅读 >>

discuz!7.0道具中心功能详解

phpcms和帝国cms二次开发优缺点分析及站长如何适合自己的cms 推荐

php+apache实现网址伪静态

可兼容ie的获取及设置cookie的jquery.cookie函数方法

Discuz论坛更换域名,详细文件修改步骤

discuz登录后总是显示未登录状态费怎么办

使用python 爬虫抓站的一些技巧总结

dedecms教程之loop循环标签的使用详解

详解discuz! 7.0 数据调用功能图文教程

千万级记录的Discuz论坛导致mysql cpu 100%的优化笔记

更多相关阅读请进入《Discuz论坛》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...