资源分享
WEB源码
游戏源码
棋牌源码
移动源码
论坛
发现
任务
客服工单
发作品
登录
discuz 帖子列表页获取文章图片
cbk
1 小时前
1 阅读
所属分类: WEB交流
discuz 帖子列表页获取文章图片 getforumimg($zhanzhuai_imgs['aid'], 0, 140, 140) 140是缩略图大小。
<!--{if $thread['attachment'] == 2}-->
<!--{eval $zhanzhuai_img = substr($thread['tid'], -1); $zhanzhuai_img_jh = DB::fetch_all("SELECT * FROM ".DB::table('forum_attachment_'.$zhanzhuai_img.'')." WHERE `tid`= $thread[tid] AND isimage = '1' ORDER BY `dateline` ASC limit 0 , 2");}-->
<!--{if is_array($threadlist_data[$thread['tid']]['attachment'])}-->
<!--{eval $attach_on = 0;}-->
<!--{loop $zhanzhuai_img_jh $zhanzhuai_imgs}-->
<!--{eval $attach_on++; if($attach_on > 2) break;}-->
<!--{eval $piclists = getforumimg($zhanzhuai_imgs['aid'], 0, 140, 140);}-->
<div class="kmimg_box imgs_{$attach_on}">
<a href="forum.php?mod=viewthread&tid={$thread['tid']}" class="kmimg" target="_blank"><img src="$piclists "></a>
</div>
<!--{/loop}-->
<!--{/if}-->
<!--{/if}-->
复制代码
评论
B
Color
Smilies
登录
后才能评论
发表回复
快速填写
Powered by
cbk!
1.0
© 2001-2027
藏宝库It社区 Team.
(
冀ICP备14008649号
)
快速回复
返回顶部
返回列表