本帖最后由 117384790 于 2011-6-25 12:18 编辑
适用于DZ2.0
演示地址 :http://www.52shanzhai.com/forum-41-1.html
修改方法: template\default\forum\forumdisplay_list.htm 查找:
- <h3 class="ptn" style="width: {$_G[setting][forumpicstyle][thumbwidth]}px;"><a href="forum.php?mod=viewthread&tid=$thread[tid]&{if $_G['gp_archiveid']}archiveid={$_G['gp_archiveid']}&{/if}extra=$extra"$thread[highlight]{if $thread['isgroup'] == 1 || $thread['forumstick']} target="_blank"{else} onclick="atarget(this)"{/if} title="$thread[subject]"><!--{if in_array($thread['displayorder'], array(1, 2, 3, 4))}-->[{lang thread_stick}] <!--{/if}-->$thread[subject]</a></h3>
- <div class="cl">
- <!--{if $thread['cover']}--><em class="sum y xs0 xi1 xw1" title="$thread[cover] {lang pics}">$thread[cover]</em><!--{/if}-->
- <!--{if $thread['authorid'] && $thread['author']}-->
- <a href="home.php?mod=space&uid=$thread[authorid]">$thread[author]</a><!--{if !empty($verify[$thread['authorid']])}--> $verify[$thread[authorid]]<!--{/if}-->
- <!--{else}-->
- $_G[setting][anonymoustext]
- <!--{/if}-->
- </div>
- <div class="cl">
- <em class="y xs0"><a href="forum.php?mod=viewthread&tid=$thread[tid]&extra=$extra" class="xi2" title="$thread[replies] {lang reply}">$thread[replies]</a> / <em title="{if $thread['isgroup'] != 1}$thread[views]{else}{$groupnames[$thread[tid]][views]}{/if} {lang show}"><!--{if $thread['isgroup'] != 1}-->$thread[views]<!--{else}-->{$groupnames[$thread[tid]][views]}<!--{/if}--></em></em>
- <em class="xs0{if $thread['istoday']} xi1{/if}">$thread[dateline]</em>
- </div>
复制代码替换: - <div class="nam" >
- <!--{if $thread['authorid'] && $thread['author']}-->
- <div class="avt"><a href="home.php?mod=space&uid=$_G[uid]"><!--{avatar($_G[uid],small)}--></a></div>
- <!--{else}-->
- $_G[setting][anonymoustext]
- <!--{/if}-->
- </div>
- <div style="float:right">
- <!--图片贴标题--> <h3 class="ptn " style="width:{$nam}px;"><a href="forum.php?mod=viewthread&tid=$thread[tid]&{if $_G['gp_archiveid']}archiveid={$_G['gp_archiveid']}&{/if}extra=$extra"$thread[highlight]{if $thread['isgroup'] == 1 || $thread['forumstick']} target="_blank"{else} onclick="atarget(this)"{/if} title="$thread[subject]"><!--{if in_array($thread['displayorder'], array(1, 2, 3, 4))}-->[{lang thread_stick}] <!--{/if}-->$thread[subject]</a></h3>
- <div class="cl">
- 用户:<a href="home.php?mod=space&uid=$thread[authorid]">$thread[author]</a>
- <!--认证图标--> <!--{if !empty($verify[$thread['authorid']])}--> $verify[$thread[authorid]] <!--{/if}-->
- <!--{if $thread['cover']}--><em class="sum y xs0 xi1 xw1" title="$thread[cover] {lang pics}">$thread[cover]</em><!--{/if}-->
- </div>
- <!--图片贴时间--><div class="cl" style="width:100%">
- <em class="y xs0"><a href="forum.php?mod=viewthread&tid=$thread[tid]&extra=$extra" class="xi2" title="$thread[replies] {lang reply}">$thread[replies]</a> / <em title="{if $thread['isgroup'] != 1}$thread[views]{else}{$groupnames[$thread[tid]][views]}{/if} {lang show}"><!--{if $thread['isgroup'] != 1}-->$thread[views]<!--{else}-->{$groupnames[$thread[tid]][views]}<!--{/if}--></em></em>
- <em class="xs0{if $thread['istoday']} xi1{/if}">$thread[dateline]</em>
- </div>
- </div>
复制代码
template\default\common\ 下 common.css 或者 extend_common.css 文件 最下面添加: - .shanzhai li .nam{float:left; padding:10px 5px 5px 5px;}
- .shanzhai li .avt a img{position:relative;z-index:1px;padding:5px;width:50px;height:50px;background:url({STYLEIMGDIR}/comiis_bkicobg.gif) no-repeat 0 0;border:0px solid;border-color:#F2F2F2 #CDCDCD #CDCDCD #F2F2F2;}
复制代码
comiis_bkicobg.gif 图片放入 static\image\common 中
|