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

 找回密码
 立即注册
搜索

[修改] 美化DZX1.5的公告栏方法!

  [复制链接]
/tyの守望者 发表于 2010-12-10 05:04:09 | 显示全部楼层 |阅读模式
插件发布
插件名称: 美化DZX1.5的公告栏方法!
插件来源:
适用版本: Discuz! X1.5
语言编码: GBK简体 UTF8简体 BIG5繁体 UTF8繁体 
最后更新时间:
插件作者: 守望者
插件简介: 官方自带的公告栏太单调了,看见有人在求助,索性就发布出来。
本帖最后由 /tyの守望者 于 2011-2-5 22:17 编辑

公告栏演示图.jpg
首先打开 template/default/common/common.css
请将下面代码加入任意地方
  1. /*公告*/
  2. .noticebg{ background:url({STYLEIMGDIR}/gg.png) repeat-x; height:31px; margin:5px 0;border-left:1px solid #E0D8BD!important;border-right:1px solid #E0D8BD!important; overflow:hidden}
  3. .noticebg dl{padding:6px 30px;height:31px;overflow:hidden;background:url({STYLEIMGDIR}/anc.png) 12px 9px no-repeat; color:#94824A;}
  4. .noticebg dl a{padding-right:.5em; color:#94824A;}
复制代码

接下来打开template/default/forum/discuz.htm
查找:
  1. <!--{if empty($gid) && $announcements}-->
  2. <div id="an" class="bm bw0 ">
  3. <dl class="cl">
  4. <dt class="z xw1">{lang announcements}: </dt>
  5. <dd>
  6. <div id="anc" class="xi2"><ul id="ancl">$announcements</ul></div>
  7. </dd>
  8. </dl>
  9. </div>
  10. <script type="text/javascript">announcement();</script>
  11. <!--{/if}-->
复制代码
替换为:
  1. <!--{if empty($gid) && $announcements}-->
  2. <div id="an" class="bm bw0 noticebg">
  3. <dl class="cl">
  4. <dt class="z xw1">{lang announcements}: </dt>
  5. <dd>
  6. <div id="anc" class="xi2"><ul id="ancl">$announcements</ul></div>
  7. </dd>
  8. </dl>
  9. </div>
  10. <script type="text/javascript">announcement();</script>
  11. <!--{/if}-->
复制代码
也就是将<div id="an" class="bm bw0 ">改为<div id="an" class="bm bw0 noticebg">
将下面的附件上传到static/image/common/
公告栏附件图.rar (537 Bytes, 下载次数: 923)

然后去后台更新缓存,完毕!


回复

使用道具 举报

李玉郎 发表于 2010-12-10 05:23:07 | 显示全部楼层
为了支持,专门登录
回复

使用道具 举报

 楼主| /tyの守望者 发表于 2010-12-10 05:24:06 | 显示全部楼层
谢谢,(EM:131:)
回复

使用道具 举报

pcyi 发表于 2010-12-10 06:13:54 | 显示全部楼层
回复

使用道具 举报

sunhaoze 发表于 2010-12-10 07:18:55 | 显示全部楼层
占位顶帖子
回复

使用道具 举报

shuaierzx 发表于 2010-12-10 07:42:12 | 显示全部楼层
回复

使用道具 举报

秋风Q落叶 发表于 2010-12-10 09:29:34 | 显示全部楼层
回复

使用道具 举报

ぷㄗigerzhu 发表于 2010-12-10 09:35:36 | 显示全部楼层
上个图就好了。
回复

使用道具 举报

ntjd 发表于 2010-12-10 09:36:39 | 显示全部楼层
回复

使用道具 举报

dddgm 发表于 2010-12-10 09:52:45 | 显示全部楼层
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-9-6 16:19 , Processed in 0.124056 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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