【原创】兔源码教您如何修改dz帖子列表图文瀑布流封面展示得更美观
修改前:
修改后:
1、进入网站后台——论坛——选择需要开启图片列表模式的版块——开启图片列表模式
2、进入服务器根目录打开——template——default 或 当前使用模板——forum——forumdisplay_list文件
3、搜索代码- <!-- end of table "forum_G[fid]" branch 2/3 -->
复制代码
4、将代码- <ul id="waterfall" class="ml waterfall cl">
- <!--{loop $_G['forum_threadlist'] $key $thread}-->
- <!--{if $_G['hiddenexists'] && $thread['hidden']}-->
- <!--{eval continue;}-->
- <!--{/if}-->
- <!--{if !$thread['forumstick'] && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
- <!--{if $thread['related_group'] == 0 && $thread['closed'] > 1}-->
- <!--{eval $thread[tid]=$thread[closed];}-->
- <!--{/if}-->
- <!--{/if}-->
- <!--{eval $waterfallwidth = $_G[setting][forumpicstyle][thumbwidth] + 24; }-->
- <li style="width:{$waterfallwidth}px">
- <!--{if !$_GET['archiveid'] && $_G['forum']['ismoderator']}-->
- <div style="position:absolute;margin:1px;padding:2px;background:#FFF">
- <!--{if $thread['fid'] == $_G[fid]}-->
- <!--{if $thread['displayorder'] <= 3 || $_G['adminid'] == 1}-->
- <input onclick="tmodclick(this)" type="checkbox" name="moderate[]" value="$thread[tid]" />
- <!--{else}-->
- <input type="checkbox" disabled="disabled" />
- <!--{/if}-->
- <!--{else}-->
- <input type="checkbox" disabled="disabled" />
- <!--{/if}-->
- </div>
- <!--{/if}-->
- <div class="c cl">
- <a href="forum.php?mod=viewthread&tid=$thread[tid]&{if $_GET['archiveid']}archiveid={$_GET['archiveid']}&{/if}extra=$extra" {if $thread['isgroup'] == 1 || $thread['forumstick'] || CURMODULE == 'guide'} target="_blank"{else} onclick="atarget(this)"{/if} title="$thread[subject]" class="z">
- <!--{if $thread['cover']}-->
- <img src="$thread[coverpath]" alt="$thread[subject]" width="{$_G[setting][forumpicstyle][thumbwidth]}" />
- <!--{else}-->
- <span class="nopic" style="width:{$_G[setting][forumpicstyle][thumbwidth]}px; height:{$_G[setting][forumpicstyle][thumbwidth]}px;"></span>
- <!--{/if}-->
- </a>
- </div>
- <h3 class="xw0">
- <!--{hook/forumdisplay_thread $key}-->
- <a href="forum.php?mod=viewthread&tid=$thread[tid]&{if $_GET['archiveid']}archiveid={$_GET['archiveid']}&{/if}extra=$extra"$thread[highlight]{if $thread['isgroup'] == 1 || $thread['forumstick']} target="_blank"{else} onclick="atarget(this)"{/if} title="$thread[subject]">$thread[subject]</a>
- </h3>
- <div class="auth cl">
- <cite class="xg1 y">
- {lang like}: <!--{if $thread[recommends]}-->$thread[recommends]<!--{else}-->0<!--{/if}-->
- {lang reply}: <a href="forum.php?mod=viewthread&tid=$thread[tid]&extra=$extra" title="$thread[replies] {lang reply}">$thread[replies]</a>
- </cite>
- <!--{hook/forumdisplay_author $key}-->
- <!--{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>
- </li>
- <!--{/loop}-->
- </ul>
复制代码 修改为!qinai!游客!yincang_youke!
5、将如下CSS加入到template——default 或 当前使用模板——common.css 文件最底部!qinai!游客!yincang_youke! 6、进入后台——界面——主题列表页——主题封面宽度设为213,主题封面高度设为137
7、工具——更新缓存,即可看到效果
懒人文件:!qinai!游客!yincang_youke! |