【原创】兔源码教您如何修改DZ帖子列表图文瀑布流封面展示得更美观-Discuz教程下载

【原创】兔源码教您如何修改DZ帖子列表图文瀑布流封面展示得更美观

开通本站Svip会员,全站资源免费下
【原创】源码教您如何修改dz帖子列表图文瀑布流封面展示得更美观

修改前:
1.png
修改后:
2.png
1、进入网站后台——论坛——选择需要开启图片列表模式的版块——开启图片列表模式
2、进入服务器根目录打开——template——default 或 当前使用模板——forum——forumdisplay_list文件
3、搜索代码
  1. <!-- end of table "forum_G[fid]" branch 2/3 -->
复制代码

4、将代码
  1.                                                 <ul id="waterfall" class="ml waterfall cl">
  2.                                                         <!--{loop $_G['forum_threadlist'] $key $thread}-->
  3.                                                         <!--{if $_G['hiddenexists'] && $thread['hidden']}-->
  4.                                                                 <!--{eval continue;}-->
  5.                                                         <!--{/if}-->
  6.                                                         <!--{if !$thread['forumstick'] && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
  7.                                                                 <!--{if $thread['related_group'] == 0 && $thread['closed'] > 1}-->
  8.                                                                         <!--{eval $thread[tid]=$thread[closed];}-->
  9.                                                                 <!--{/if}-->
  10.                                                         <!--{/if}-->
  11.                                                         <!--{eval $waterfallwidth = $_G[setting][forumpicstyle][thumbwidth] + 24; }-->
  12.                                                         <li style="width:{$waterfallwidth}px">
  13.                                                                 <!--{if !$_GET['archiveid'] && $_G['forum']['ismoderator']}-->
  14.                                                                         <div style="position:absolute;margin:1px;padding:2px;background:#FFF">
  15.                                                                         <!--{if $thread['fid'] == $_G[fid]}-->
  16.                                                                                 <!--{if $thread['displayorder'] <= 3 || $_G['adminid'] == 1}-->
  17.                                                                                         <input onclick="tmodclick(this)" type="checkbox" name="moderate[]" value="$thread[tid]" />
  18.                                                                                 <!--{else}-->
  19.                                                                                         <input type="checkbox" disabled="disabled" />
  20.                                                                                 <!--{/if}-->
  21.                                                                         <!--{else}-->
  22.                                                                                 <input type="checkbox" disabled="disabled" />
  23.                                                                         <!--{/if}-->
  24.                                                                         </div>
  25.                                                                 <!--{/if}-->
  26.                                                                 <div class="c cl">
  27.                                                                         <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">
  28.                                                                                 <!--{if $thread['cover']}-->
  29.                                                                                         <img src="$thread[coverpath]" alt="$thread[subject]" width="{$_G[setting][forumpicstyle][thumbwidth]}" />
  30.                                                                                 <!--{else}-->
  31.                                                                                         <span class="nopic" style="width:{$_G[setting][forumpicstyle][thumbwidth]}px; height:{$_G[setting][forumpicstyle][thumbwidth]}px;"></span>
  32.                                                                                 <!--{/if}-->
  33.                                                                         </a>
  34.                                                                 </div>
  35.                                                                 <h3 class="xw0">
  36.                                                                         <!--{hook/forumdisplay_thread $key}-->
  37.                                                                         <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>
  38.                                                                 </h3>
  39.                                                                 <div class="auth cl">
  40.                                                                         <cite class="xg1 y">
  41.                                                                                 {lang like}: <!--{if $thread[recommends]}-->$thread[recommends]<!--{else}-->0<!--{/if}-->
  42.                                                                                  &nbsp; {lang reply}: <a href="forum.php?mod=viewthread&tid=$thread[tid]&extra=$extra" title="$thread[replies] {lang reply}">$thread[replies]</a>
  43.                                                                         </cite>
  44.                                                                         <!--{hook/forumdisplay_author $key}-->
  45.                                                                         <!--{if $thread['authorid'] && $thread['author']}-->
  46.                                                                                 <a href="home.php?mod=space&uid=$thread[authorid]">$thread[author]</a><!--{if !empty($verify[$thread['authorid']])}--> $verify[$thread[authorid]]<!--{/if}-->
  47.                                                                         <!--{else}-->
  48.                                                                                 $_G[setting][anonymoustext]
  49.                                                                         <!--{/if}-->
  50.                                                                 </div>
  51.                                                         </li>
  52.                                                         <!--{/loop}-->
  53.                                                 </ul>
复制代码
修改为
亲爱的游客您好,请 登录 后进行 回复

5、将如下CSS加入到template——default 或 当前使用模板——common.css 文件最底部
亲爱的游客您好,请 登录 后进行 回复
6、进入后台——界面——主题列表页——主题封面宽度设为213,主题封面高度设为137
7、工具——更新缓存,即可看到效果

懒人文件:
亲爱的游客您好,请 登录 后进行 回复

全部评论 1

开通本站Svip会员,全站资源免费下
回复看隐藏
您需要登录后才可以回帖 立即登录
登录
0
1
0
返回顶部