Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[求助] 图片附件显示

[复制链接]
wei.fr 发表于 2010-4-1 22:43:56 | 显示全部楼层 |阅读模式
./templates/default/viewthread_node.htm  中的这段程序是显示图片和附件的

<div class="postattachlist">
       <!--{if $post['imagelist']}-->
        $post['imagelist']
       <!--{/if}-->
       <!--{if $post['attachlist']}-->
        $post[attachlist]
       <!--{/if}-->
</div>

$post['imagelist']  将显示出所有的图片名称和图片,我想知道如果只想显示出第一张或其中的一张,应该怎么改呢?谢谢
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-10-5 10:19 , Processed in 0.137265 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表