Maison > php教程 > php手册 > le corps du texte

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

WBOY
Libérer: 2016-06-13 09:26:43
original
1272 Les gens l'ont consulté

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

在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 href="bbs/forum.php&#63;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&#63;mod=viewthread&tid={$t[tid]}" rel="external nofollow" rel="external nofollow" rel="external nofollow" target=_blank><img  src="bbs/data/attachment/forum/{$t[attachment]}"    style="max-width:90%"  style="max-width:90%" / alt="destoon调用discuz论坛中带图片帖子的实现方法,destoondiscuz" ></A>
{/loop}

Copier après la connexion

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

<!--{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&#63;mod=viewthread&tid={$t[tid]}" rel="external nofollow" rel="external nofollow" rel="external nofollow" target=_blank>{$t[subject]}</A> 
{/loop}

Copier après la connexion

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

Discuz! X2 论坛DIY门户模块,怎调用帖子内的图片?

你调用板块的图片有多少,在上传几张试试,调用的时间改改,也就是更新的时间,如果不行,把首页N格的插件关闭,然后再重新开启,如果不行,卸载重新装试试,
 

destoon怎调用DISCUZ某个特定版块的帖子

工具里面数据调用 但是要有一点编程的知识
 

Étiquettes associées:
source:php.cn
Déclaration de ce site Web
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn
Recommandations populaires
Tutoriels populaires
Plus>
Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!