Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[求助] 默认模板改的版块瀑布流,怎么在图片下方加入帖子内容摘要

[复制链接]
suiningdog 发表于 2013-1-21 11:06:54 | 显示全部楼层 |阅读模式
问题描述
适用版本: Discuz! X2.5
浏览器: IE6 IE8 IE9 360 IE10 firefox 
使用模板: 官方模板
BUG地址: http://www.suiningdog.com/forum-44-1.html

这个是我论坛的样式
想做到下面这种,图片下方有内容摘要的

  1. <li style="width:{$waterfallwidth}px;">
  2.                                                                 <!--{if !$_GET['archiveid'] && $_G['forum']['ismoderator']}-->
  3.                                                                         <div style="position:absolute;margin:1px;padding:2px;background:#FFF">
  4.                                                                         <!--{if $thread['fid'] == $_G[fid]}-->
  5.                                                                                 <!--{if $thread['displayorder'] <= 3 || $_G['adminid'] == 1}-->
  6.                                                                                         <input onclick="tmodclick(this)" type="checkbox" name="moderate[]" value="$thread[tid]" />
  7.                                                                                 <!--{else}-->
  8.                                                                                         <input type="checkbox" disabled="disabled" />
  9.                                                                                 <!--{/if}-->
  10.                                                                         <!--{else}-->
  11.                                                                                 <input type="checkbox" disabled="disabled" />
  12.                                                                         <!--{/if}-->
  13.                                                                         </div>
  14.                                                                 <!--{/if}-->
  15.                                                                 <div class="c cl">
  16.                                                                         <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">
  17.                                                                                 <!--{if $thread['cover']}-->
  18.                                                                                         <img src="$thread[coverpath]" alt="$thread[subject]" width="{$_G[setting][forumpicstyle][thumbwidth]}" />
  19.                                                                                 <!--{else}-->
  20.                                                                                         <span class="nopic" style="width:{$_G[setting][forumpicstyle][thumbwidth]}px; height:{$_G[setting][forumpicstyle][thumbwidth]}px;"></span>
  21.                                                                                 <!--{/if}-->
  22.                                                                         </a>
  23.                                                                 </div>
  24.                                                                 <h3 class="xw0">
  25.                                                                         <!--{hook/forumdisplay_thread $key}-->
  26.                                                                         <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>
  27.                                                                 </h3>
  28.                                                                 <div class="auth cl">
  29.                                                                         <cite class="xg1 y">
  30.                                                                                 {echo '喜欢'}: <!--{if $thread[recommends]}-->$thread[recommends]<!--{else}-->0<!--{/if}-->
  31.                                                                                    {lang reply}: <a href="forum.php?mod=viewthread&tid=$thread[tid]&extra=$extra" title="$thread[replies] {lang reply}">$thread[replies]</a>
  32.                                                                         </cite>

  33.                                                                         <!--{hook/forumdisplay_author $key}-->
  34.                                                                         <!--{if $thread['authorid'] && $thread['author']}-->
  35.                                                                                 <a href="home.php?mod=space&uid=$thread[authorid]">$thread[author]</a><!--{if !empty($verify[$thread['authorid']])}--> $verify[$thread[authorid]]<!--{/if}-->
  36.                                                                         <!--{else}-->
  37.                                                                                 $_G[setting][anonymoustext]
  38.                                                                         <!--{/if}-->
  39.                                                                         <p>{$thread[dateline]}</p>
  40.                                                                        
  41.                                                                 </div>

  42.                                                         </li>
复制代码

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
 楼主| suiningdog 发表于 2013-1-22 23:11:07 | 显示全部楼层
模块区没人啊?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-3-6 20:52 , Processed in 0.028070 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表