这段代码调用的是帖子第一张图片的缩略图,我想调用手动设为封面的缩略图,要怎么改 New
2024-2-11 07:21 来自 浅生 发布 @ Discuz! X3.5专区
- <div class="all-work-list"> <!--{if $photo}--> <div class="work-list-box"> <!--{loop $photo $thread}--> <!--{eval $table='forum_attachment_'.substr($thread, -1);}--> <!--{eval $pic = DB::fetch_first("SELECT aid,tid FROM ".DB::table($table)." WHERE tid = '$thread' AND isimage != '0' "); }--> <!--{eval $photo = DB::fetch_all("SELECT aid FROM %t WHERE tid= %d AND isimage != '0' ", array("$table","$thread"), 'aid'); $pic_num = count($photo);}--> <div class="card-box"> <div class="card-img" style="position: relative;"> <a href="forum.php?mod=viewthread&tid=$thread" class="card-img-hover" title="$thread" target="_blank"> <img style="width:210px; height:310px;" src="{eval echo(getforumimg($thread,0,400,600))}" title="$thread"> </a> <div class="readperm-price" style="position:absolute; right:50px; top:10px; z-index:2; font-size:12px;"> <!--{if $thread}--><em class="readperm" title="阅读权限 $thread" style="background-color:rgba(225,192,116,0.5); border-radius:5px; color:#000; padding:2px 5px;"><!--权限 <em style="color:#F00;">$thread</em>--><img style="display: inline-block; vertical-align: middle;" src="{IMGDIR}/folder_lock.gif" /></em><!--{/if}--><!--阅读权限={lang readperm}--> <!--{if $thread > 0}--><em class="price" title="售价" style="background-color:rgba(236,0,74,1); border-radius:5px; color:#FFF; padding:2px 5px; margin-left:2px;"><em style="color:#FFF;">$thread {$_G[$_G}{$_G[$_G}</em></em><!--{/if}--><!--售价={lang price}-->
- 最近查阅:
免责声明:
DZ插件网AI平台旨在开源共享精神,请勿发布敏感信息,任何违法信息我们将移交公安机关;
上一篇: 各位老师看过来 New