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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

Disczu x2 论坛首页版块横排显示版块简介和最后发表帖子

[复制链接]
baychang 发表于 2012-5-7 11:09:55 | 显示全部楼层 |阅读模式
DIY模块素材
模块类型: 论坛类
展示风格: 纯代码
是否原创:
  1. <dl{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="margin-left: {$forum[extra][iconwidth]}px;"{/if}>
  2. <dt><a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}{if $forum[extra][namecolor]} style="color: {$forum[extra][namecolor]};"{/if}>$forum[name]</a><!--{if $forum[todayposts] && !$forum['redirect']}--><em class="xw0 xi1" title="{lang forum_todayposts}"> ($forum[todayposts])</em><!--{/if}-->    <!--{if empty($forum[redirect])}--><em style="font-weight:normal;">{lang forum_threads}: $forum[threads]</em>, <em style="font-weight:normal">{lang forum_posts}: $forum[posts]</em><!--{/if}--> </dt>
  3. <!--{if $forum[description]}--><dd><!--{echo cutstr($forum[description], 48)}--></dd><!--{/if}-->
  4. <dd>
  5. <!--{if $forum['permission'] == 1}-->
  6. {lang private_forum}
  7. <!--{else}-->
  8. <!--{if $forum['redirect']}-->
  9. <a href="$forumurl" class="xi2">{lang url_link}</a>
  10. <!--{elseif is_array($forum['lastpost'])}-->
  11. <!--{if $cat['forumcolumns'] < 4}-->
  12. <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($forum[lastpost][subject], 30)}--></a>
  13. <!--{else}-->

  14. <!--{/if}-->
  15. <!--{else}-->
  16. {lang never}
  17. <!--{/if}-->
  18. <!--{/if}-->
  19. </dd>
  20. </dl>
复制代码
以上是 修改 discuz.htm  之后的代码,

修改后效果图如下:




效果演示 网址:
http://bbs.jmnews.cn/forum.php

本帖子中包含更多资源

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

x
 楼主| baychang 发表于 2012-5-7 11:22:25 | 显示全部楼层
在上 一个 大字版的 效果图
觉得 这个漂亮一点

呵呵~~~

本帖子中包含更多资源

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

x
回复

使用道具 举报

iKangKang 发表于 2012-5-10 15:34:10 | 显示全部楼层
如果不是横排呢?如何美化?
回复

使用道具 举报

yhclub848 发表于 2012-5-16 14:11:08 | 显示全部楼层
欢迎鉴定,蘑菇洞游戏论坛:http://bbs.mogudong.com/
回复

使用道具 举报

中梅 发表于 2012-7-10 01:13:22 | 显示全部楼层
谢谢分享,楼主辛苦了!
回复

使用道具 举报

运籽 发表于 2012-8-16 06:29:22 | 显示全部楼层
{:soso_e117:}不知道 代码要添加到什么地方
回复

使用道具 举报

童年心梦 发表于 2012-8-16 16:20:25 | 显示全部楼层
本帖最后由 童年心梦 于 2012-8-16 16:23 编辑
运籽 发表于 2012-8-16 06:29
不知道 代码要添加到什么地方


/www.你的网址.com/template/default/forum/ 这里面有个文件,下来修改!
回复

使用道具 举报

iamwhoiwillbe 发表于 2012-9-25 13:45:38 | 显示全部楼层
如果我在每个版块下显示N个帖子,而不是一个最新的帖子 要怎么办呢?
回复

使用道具 举报

taff2828 发表于 2012-10-17 17:10:02 | 显示全部楼层
童年心梦 发表于 2012-8-16 16:20
/www.你的网址.com/template/default/forum/ 这里面有个文件,下来修改!

修改哪一段呢?
回复

使用道具 举报

wandejian 发表于 2012-10-19 17:02:01 | 显示全部楼层
不错  以后会用上
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-9-28 15:25 , Processed in 0.190231 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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