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

 找回密码
 立即注册
搜索

[发布] 免费分享!DZ X2.5横排美化效果,附懒人包 ,精致大方

[复制链接]
追魂令 发表于 2013-2-14 12:43:33 | 显示全部楼层 |阅读模式
美化后效果展示:http://www.ladyzu.com/

图片效果展示:

122502cnrvqn8icqevkgti.jpg

修改方法:

\template\default\forum中的discuz.htm
搜索(<dl  开头  </dl> 结尾的这些代码)
  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}--></dt>
  3. <!--{if empty($forum[redirect])}--><dd><em>{lang forum_threads}: <!--{echo dnumber($forum[threads])}--></em>, <em>{lang forum_posts}: <!--{echo dnumber($forum[posts])}--></em></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'] < 3}-->
  12. <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($forum[lastpost][subject], 30)}--></a> <cite>$forum[lastpost][dateline] <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
  13. <!--{else}-->
  14. <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{lang forum_lastpost}: $forum[lastpost][dateline]</a>
  15. <!--{/if}-->
  16. <!--{else}-->
  17. {lang never}
  18. <!--{/if}-->
  19. <!--{/if}-->
  20. </dd>
  21. <!--{hook/index_forum_extra $forum[fid]}-->
  22. </dl>
复制代码
替换成:

如无新贴,则 帖子数,主题数全部不显示,则替换为
  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" > ({lang index_today}: <font class="xi1" size="+2">$forum[todayposts]</font> / <!--{if empty($forum[redirect])}--><em>{lang forum_threads}: <!--{echo dnumber($forum[threads])}--></em> / <em>{lang forum_posts}: <!--{echo dnumber($forum[posts])}--></em><!--{/if}-->)</em><!--{/if}--></dt>
  3.                                                                                 <!--{if $forum[description]}--><dd class="xg2">$forum[description]</dd><!--{/if}-->
  4.                                                                         <dd>
  5.                                                                      
  6.                                                                               <!--{if $forum['permission'] == 1}-->
  7.                                                                         {lang private_forum}
  8.                                                                 <!--{else}-->
  9.                                                                         <!--{if $forum['redirect']}-->
  10.                                                                                 <a href="$forumurl" class="xi2">{lang url_link}</a>
  11.                                                                         <!--{elseif is_array($forum['lastpost'])}-->
  12.                                                                                 <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($forum[lastpost][subject], 30)}--></a> <cite>$forum[lastpost][dateline] <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
  13.                                                                         <!--{else}-->
  14.                                                                                 {lang never}
  15.                                                                         <!--{/if}-->
  16.                                                                 <!--{/if}-->
  17.                                                                      
  18.                                                                         </dd>
  19.                                                                         <!--{hook/index_forum_extra $forum[fid]}-->
  20.                                                                 </dl>
复制代码
如无新贴,后面的帖子数,主题数依旧显示,则替换为

  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><em class="xw0" > (<!--{if $forum[todayposts] && !$forum['redirect']}-->{lang index_today}: <font class="xi1" size="+2">$forum[todayposts]</font> / <!--{/if}--><em>{lang forum_threads}: <!--{echo dnumber($forum[threads])}--></em> / <em>{lang forum_posts}: <!--{echo dnumber($forum[posts])}--></em>)</em></dt>
  3. <!--{if $forum[description]}--><dd class="xg2">$forum[description]</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. <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($forum[lastpost][subject], 30)}--></a> <cite>$forum[lastpost][dateline] <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
  12. <!--{else}-->
  13. {lang never}
  14. <!--{/if}-->
  15. <!--{/if}-->

  16. </dd>
  17. <!--{hook/index_forum_extra $forum[fid]}-->
  18. </dl>
复制代码
[td]其中 <font class="xi1" size="+2">$forum[todayposts]</font>是定义‘今日贴数’的显示样式的,如果不需要这样显示,则把它 换成  $forum[todayposts]  


$forum[lastpost][subject], 30    这后面的 30  是定义版块简介的字数多少的。[/td]


懒人包下载地址:

discuz.rar (10.91 KB, 下载次数: 379)









回复

使用道具 举报

bbs.ymvip.com 发表于 2013-2-14 16:00:10 | 显示全部楼层
不错的样式,不过好像有人发过了







源码论坛:http://bbs.ymvip.com/
回复

使用道具 举报

 楼主| 追魂令 发表于 2013-2-14 16:17:35 | 显示全部楼层
大家支持一下哦!
回复

使用道具 举报

 楼主| 追魂令 发表于 2013-2-14 19:56:01 | 显示全部楼层
是有人发过哦!但这次发的是优化过的,修改了两处不足
回复

使用道具 举报

 楼主| 追魂令 发表于 2013-2-14 22:46:06 | 显示全部楼层
二次优化。欢迎支持我们!
回复

使用道具 举报

 楼主| 追魂令 发表于 2013-2-15 07:52:38 | 显示全部楼层
大家来支持一下
回复

使用道具 举报

 楼主| 追魂令 发表于 2013-2-15 21:22:34 | 显示全部楼层
大家支持一下吧!
回复

使用道具 举报

 楼主| 追魂令 发表于 2013-2-16 20:58:42 | 显示全部楼层

大家支持一下哦!
回复

使用道具 举报

ilei365 发表于 2013-2-16 21:43:50 | 显示全部楼层
支持个。。。
回复

使用道具 举报

 楼主| 追魂令 发表于 2013-2-17 06:32:33 | 显示全部楼层
大家支持个
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-8-25 08:14 , Processed in 0.128631 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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