手机版列表界面调用封面
模板名称\touch\forum\forumdisplay.htm
在
- <!--{loop $_G['forum_threadlist'] $key $thread}-->
- .....
- <!--{/loop}-->
复制代码 中间
需要显示的地方加入代码:
- <!--{if $thread['cover']}-->
- {eval $covername = 'threadcover/'.substr(md5($thread[tid]), 0, 2).'/'.substr(md5($thread[tid]), 2, 2).'/'.$thread[tid].'.jpg';
-
- $coverpath = ($cover < 0 ? $_G['setting']['ftp']['attachurl'] : $_G['setting']['attachurl']).'forum/'.$covername;
- }
- <img src="{eval echo $coverpath;}" alt="$thread[subject]" width="90px" />
-
- <!--{/if}-->
复制代码
|