这段代码调用的是帖子第一张图片的缩略图,我想调用手动设为封面的缩略图,要怎么改 New
- <div class="all-work-list"> <!--{if $photo['threadlist']}--> <div class="work-list-box"> <!--{loop $photo['threadlist'] $thread}--> <!--{eval $table='forum_attachment_'.substr($thread['tid'], -1);}--> <!--{eval $pic = DB::fetch_first("SELECT aid,tid FROM ".DB::table($table)." WHERE tid = '$thread[tid]' AND isimage != '0' "); }--> <!--{eval $photo = DB::fetch_all("SELECT aid FROM %t WHERE tid= %d AND isimage != '0' ", array("$table","$thread[tid]"), 'aid'); $pic_num = count($photo);}--> <div class="card-box"> <div class="card-img" readperm']}--><em class="readperm" title="阅读权限 $thread[readperm]" price'] > 0}--><em class="price" title="售价" setting']['creditstransextra'][1]][unit]}{$_G[setting][extcredits][$_G['setting']['creditstransextra'][1]][title]}</em></em><!--{/if}--><!--售价={lang price}--> </div> <div class="bkfenlei" cache']['forums'][$thread[fid]][name]}</a> </div> {if $pic_num > 1} <div class="background:rgba(0,0,0,0.5); color:#fff; display: inline-block; border-radius:20px; font-size: 12px; padding:2px 5px;" $thread[tid]' "); $tagarray_all = $posttag_array = array(); $tagarray_all = explode("\t", $post['tags']); if($tagarray_all) { foreach($tagarray_all as $var) { if($var) { $tag = explode(',', $var); $posttag_array[] = $tag; $tagnames[] = $tag[1]; } } } $post['tags'] = $posttag_array; <!--{/eval}--> <!--{loop $post[tags] $var}--> <!--{eval $color1 = rand(1,255); $color2 = rand(1,255); $color3 = rand(1,255); $color4 = rand(1,255);}--> <li big',1);}" width="30" height="30" alt=""> $thread[author] </a> <span class="time" title="创建时间:<!--{echo date('Y-m-d',$thread[dateline]);}-->"><!--{echo date('Y-m-d',$thread[dateline]);}--></span> </div> </div> <!--{/loop}--> </div> <!--{else}--> <div class="work-null"> <div class="work-null-inner" copycode($('code_Shz'));">复制代码
我知道答案 回答被采纳将会获得1 贡献 已有1人回答