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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[修改] X3.0横排美化效果,DZ网友求助样式 教程分享,精致大方

  [复制链接]
popuppp 发表于 2013-5-15 23:13:11 | 显示全部楼层 |阅读模式
本帖最后由 popuppp 于 2013-11-14 21:48 编辑

演示:驻马店论坛http://bbs.zmd5.com

美化后的显示效果:

图片演示:

\template\default\forum中的discuz.htm  大概在359多行的位置,有多处,修改最后一处
搜索(<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>
复制代码
替换为:
游客,如果您要查看本帖隐藏内容请回复

其中 <font class="xi1" size="+2">$forum[todayposts]</font>是定义‘今日贴数’的显示样式的,如果不需要这样显示,则把它 换成  $forum[todayposts]  


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

懒人版:直接覆盖

本帖子中包含更多资源

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

x

评分

5

查看全部评分

www.bzwh.net 发表于 2013-5-15 23:21:30 | 显示全部楼层
www.bazhong.tv巴中社区来顶
回复

使用道具 举报

潮宅男女 发表于 2013-5-15 23:22:15 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

Power爪 发表于 2013-5-16 03:41:49 | 显示全部楼层
{:soso_e179:}
回复

使用道具 举报

nawanla 发表于 2013-5-16 08:30:21 | 显示全部楼层
速度挺快的你
回复

使用道具 举报

可爱的轩轩 发表于 2013-5-16 10:52:27 | 显示全部楼层
驻马店很长时间没发分享了
回复

使用道具 举报

牛粪 发表于 2013-5-16 11:29:23 | 显示全部楼层
哦哦。。仿我的。。。
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-9-28 11:21 , Processed in 0.267371 second(s), 22 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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