2013-12-20 17:45|来自: 腾讯爱好者|我要投稿 |意见反馈 |查看: 7741
为了会员的活跃性,我们很多站长喜欢把主题列表显示作者的头像,便于互动。那么这是怎么实现的呢?跟着小编来一起看看吧!我们先看个效果图:修改路径:template/default/forum/forumdisplay_list.htm搜索代码:<cite> <!--{if $thread['authorid'] && $thread['author']}--> <a href="home.php?mod=space&uid=$thread[authorid]" c="1">$thread[author]</a> <!--{if !empty($verify[$thread['authorid']])}--> $verify[$thread[authorid]]<!--{/if}--> <!--{else}--> $_G[setting][anonymoustext] <!--{/if}--> </cite>替换为:<div style="float:left;width:28px;padding-top:2px;"> <img src="/uc_server/avatar.php?uid=$thread[authorid]&size=small" class="ava_border" width="25px" height="25px" style="border:1px solid #ccc; padding:2px; margin:0px; background-color:#fff;" /> </div> <div style="float:left;padding:2px 0px 0px 6px;"> <cite> <!--{if $thread['authorid'] && $thread['author']}--> <a href="space.php?uid=$thread[authorid]">$thread[author]</a> <!--{else}--> <!--{if $forum['ismoderator']}--> <a href="space.php?uid=$thread[authorid]">{lang anonymous}</a <!--{else}--> {lang anonymous} <!--{/if}--> <!--{/if}--> </cite>OK,后台更新缓存即可!
替换为:
OK,后台更新缓存即可!
GMT+8, 2023-9-29 05:25 , Processed in 0.042707 second(s), 18 queries .