Home >Backend Development >PHP Tutorial >How to implement posts with pictures in destoon calling discuz forum, destoondiscuz_PHP tutorial
In destoon development, sometimes we need to call the forum posts, but how to call the posts with pictures. This article will show an example of how to call the discuz forum posts with pictures:
The tag code is as follows:
<!--{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 href="bbs/forum.php?mod=viewthread&tid={$t[tid]}" rel="external nofollow" rel="external nofollow" rel="external nofollow" target=_blank>{$t[subject]}</A> <br /> <A href="bbs/forum.php?mod=viewthread&tid={$t[tid]}" 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}
The method to call a new forum post is as follows:
<!--{php $tags=tag("table=pre_forum_thread&prefix=&length=36&order=tid desc&pagesize=9&target=_blank&template=null");}--> {loop $tags $t} <A href="bbs/forum.php?mod=viewthread&tid={$t[tid]}" rel="external nofollow" rel="external nofollow" rel="external nofollow" target=_blank>{$t[subject]}</A> {/loop}
I hope the method described in this article will be helpful to everyone in destoon development.
How many pictures do you call the section? Try uploading a few pictures and change the calling time, which is the update time. If it doesn't work, close the N-frame plug-in on the homepage and then reopen it. If it doesn't work, uninstall and reinstall it. Try,
Data calling in the tool requires some programming knowledge