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

 找回密码
 立即注册
搜索

[修改] 仿化龙巷搜索导航For DX 1.5

[复制链接]
hongjun521 发表于 2011-1-10 20:12:43 | 显示全部楼层 |阅读模式
插件发布
插件名称: 仿化龙巷搜索导航For DX1.5
插件来源:
适用版本: Discuz! X1.5
语言编码: GBK简体 
最后更新时间:
插件作者:
插件简介: 仿化龙巷搜索导航
本帖最后由 hongjun521 于 2011-1-10 20:26 编辑



今天两位论坛的朋友求我安装,看到论坛的朋友好友需要的,特整理发布出来。

默认风格和非默认风格差别不是很大

默认风格:(非默认风格在二楼)

1、备份/template/default/common/ 下的common.css和pubsearchform.htm两个文件

2、打来common.css在最后添加:

  1. /*搜索部分*/
  2. .search_content {
  3.         width: 960px;
  4.         height: 83px;
  5.         margin: 0 auto;
  6.         background: url({IMGDIR}/search_bg.gif) no-repeat;
  7. }
  8. .search_content a:hover{
  9.         text-decoration:underline;
  10. }

  11. .search_left{
  12.         float: left;
  13.         width: 480px;
  14.         padding: 0 10px 0 0;
  15.         height: 66px;
  16.         background: url({IMGDIR}/search_left_border.gif) right 0 no-repeat;
  17. }
  18. .search_frame {
  19.         float: left;
  20.         display:inline;
  21.         width: 461px;
  22.         height: 28px;
  23.         margin: 0 0 0 18px;
  24.         background: url({IMGDIR}/search_frame.gif) no-repeat;
  25. }

  26. .search_frame input.text {
  27.         float: left;
  28.         width: 290px;
  29.         _width: 289px;
  30.         height: 14px;
  31.         margin: 4px 0 0 36px;
  32.         padding: 3px 2px;
  33.         border: 0;
  34.         color: #999999;
  35. }
  36. .s_select {
  37.         float:left;
  38.         margin:3px 1px 0 10px;
  39.         width:50px;
  40. }
  41. .s_select h6 {
  42.         background:url({IMGDIR}/down.png) no-repeat scroll 36px center transparent;
  43.         color:#6662666;
  44.         font-weight: 400;
  45.         cursor:pointer;
  46.         display:block;
  47.         height:24px;
  48.         line-height:24px;
  49.         padding:0 15px 0 8px;
  50. }
  51. .s_select ul {
  52.         background:none repeat scroll 0 0 #FFFFFF;
  53.         border:1px solid #DDDDDD;
  54.         display:none;
  55.         line-height:22px;
  56.         margin:23px 0 0 0;
  57.         position:absolute;
  58.         width:47px;
  59.         z-index: 2;
  60. }
  61. .s_select ul li {
  62.         cursor:pointer;
  63.         padding:0 10px;
  64.         _padding: 0 8px;
  65. }
  66. .s_select ul li:hover {
  67.         background:#E6F2FE;
  68. }
  69. .btn_search {
  70.         float: left;
  71.         width: 60px;
  72.         height: 25px;
  73.         overflow: hidden;
  74.         cursor:pointer;
  75.         border: none;
  76.         margin: 1px 0 0 8px;
  77.         background:url({IMGDIR}/search.gif) no-repeat;
  78. }
  79. /*热搜*/
  80. .hot_search {
  81.         float: left;
  82.         display:inline;
  83.         font-size: 12px;
  84.         margin: 10px 0 0 22px;
  85.         color: #cccccc;
  86. }
  87. .hot_search span.hot {
  88.         font-weight: bold;
  89.         color: #333333;
  90. }
  91. .hot_search a {
  92.         color: #005eac;
  93.         margin: 0 3px;
  94. }
  95. /*搜索右侧*/
  96. .search_right {
  97.         float: left;
  98.         width: 470px;
  99. }
  100. /*论坛通道*/
  101. .pindao_bg{
  102.         float: left;
  103.         width: 20px;
  104.         height: 65px;
  105.         margin: 0 12px;
  106.         _margin: 0 12px 0 6px;
  107.         background: url({IMGDIR}/pindao_bg.gif) no-repeat;
  108.         overflow: hidden;
  109.         font-size: 12px;
  110.         color:#ffffff;
  111.         font-weight:bold;
  112. }
  113. .pindao_bg span {
  114.         word-wrap:break-word;
  115.         position:relative;
  116.         line-height: 1.2em;
  117.         left: 4px;
  118.         top: 5px;
  119. }

  120. .pindao_left {
  121.         float: left;
  122.         width: 225px;
  123.         height: 66px;
  124.         margin: 0 10px 0 0;
  125.         background:url({IMGDIR}/search_left_border.gif) right 0 no-repeat;
  126. }
  127. .search_right ul {
  128.         float: left;
  129.         width: 100%;
  130.         display:block;
  131.         line-height: 1.8em;
  132. }
  133. .search_right ul li {
  134.         float:left;
  135.         display: inline;
  136.         font-size: 12px;
  137. }
  138. .search_right ul li a {
  139.         color:#666666;
  140.         margin: 0 7px;
  141.         *margin: 0 4px;
  142. }
  143. .search_right ul li span {
  144.         color:#0066cc;
  145.         font-weight:bold;
  146. }
  147. .pindao_right {
  148.         float: left;
  149.         width: 190px;
  150. }
复制代码
3、覆盖附件中的pubsearchform.htm

4、上传附件image中的图片到/static/image/common/中(如果遇到重复文件,请备份源文件)。

5、更新缓存!

回复

使用道具 举报

 楼主| hongjun521 发表于 2011-1-10 20:13:05 | 显示全部楼层
本帖最后由 hongjun521 于 2011-1-10 20:18 编辑

非默认风格:

1、修改\template\你的风格目录\common中的extend_common.css,在最下面添加:

  1. /*搜索部分*/
  2. .search_content {
  3.         width: 960px;
  4.         height: 83px;
  5.         margin: 0 auto;
  6.         background: url({STYLEIMGDIR}/search_bg.gif) no-repeat;
  7. }
  8. .search_content a:hover{
  9.         text-decoration:underline;
  10. }

  11. .search_left{
  12.         float: left;
  13.         width: 480px;
  14.         padding: 0 10px 0 0;
  15.         height: 66px;
  16.         background: url({STYLEIMGDIR}/search_left_border.gif) right 0 no-repeat;
  17. }
  18. .search_frame {
  19.         float: left;
  20.         display:inline;
  21.         width: 461px;
  22.         height: 28px;
  23.         margin: 0 0 0 18px;
  24.         background: url({STYLEIMGDIR}/search_frame.gif) no-repeat;
  25. }

  26. .search_frame input.text {
  27.         float: left;
  28.         width: 290px;
  29.         _width: 289px;
  30.         height: 14px;
  31.         margin: 4px 0 0 36px;
  32.         padding: 3px 2px;
  33.         border: 0;
  34.         color: #999999;
  35. }
  36. .s_select {
  37.         float:left;
  38.         margin:3px 1px 0 10px;
  39.         width:50px;
  40. }
  41. .s_select h6 {
  42.         background:url({STYLEIMGDIR}/down.png) no-repeat scroll 36px center transparent;
  43.         color:#6662666;
  44.         font-weight: 400;
  45.         cursor:pointer;
  46.         display:block;
  47.         height:24px;
  48.         line-height:24px;
  49.         padding:0 15px 0 8px;
  50. }
  51. .s_select ul {
  52.         background:none repeat scroll 0 0 #FFFFFF;
  53.         border:1px solid #DDDDDD;
  54.         display:none;
  55.         line-height:22px;
  56.         margin:23px 0 0 0;
  57.         position:absolute;
  58.         width:47px;
  59.         z-index: 2;
  60. }
  61. .s_select ul li {
  62.         cursor:pointer;
  63.         padding:0 10px;
  64.         _padding: 0 8px;
  65. }
  66. .s_select ul li:hover {
  67.         background:#E6F2FE;
  68. }
  69. .btn_search {
  70.         float: left;
  71.         width: 60px;
  72.         height: 25px;
  73.         overflow: hidden;
  74.         cursor:pointer;
  75.         border: none;
  76.         margin: 1px 0 0 8px;
  77.         background:url({STYLEIMGDIR}/search.gif) no-repeat;
  78. }
  79. /*热搜*/
  80. .hot_search {
  81.         float: left;
  82.         display:inline;
  83.         font-size: 12px;
  84.         margin: 10px 0 0 22px;
  85.         color: #cccccc;
  86. }
  87. .hot_search span.hot {
  88.         font-weight: bold;
  89.         color: #333333;
  90. }
  91. .hot_search a {
  92.         color: #005eac;
  93.         margin: 0 3px;
  94. }
  95. /*搜索右侧*/
  96. .search_right {
  97.         float: left;
  98.         width: 470px;
  99. }
  100. /*论坛通道*/
  101. .pindao_bg{
  102.         float: left;
  103.         width: 20px;
  104.         height: 65px;
  105.         margin: 0 12px;
  106.         _margin: 0 12px 0 6px;
  107.         background: url({STYLEIMGDIR}/pindao_bg.gif) no-repeat;
  108.         overflow: hidden;
  109.         font-size: 12px;
  110.         color:#ffffff;
  111.         font-weight:bold;
  112. }
  113. .pindao_bg span {
  114.         word-wrap:break-word;
  115.         position:relative;
  116.         line-height: 1.2em;
  117.         left: 4px;
  118.         top: 5px;
  119. }

  120. .pindao_left {
  121.         float: left;
  122.         width: 225px;
  123.         height: 66px;
  124.         margin: 0 10px 0 0;
  125.         background:url({STYLEIMGDIR}/search_left_border.gif) right 0 no-repeat;
  126. }
  127. .search_right ul {
  128.         float: left;
  129.         width: 100%;
  130.         display:block;
  131.         line-height: 1.8em;
  132. }
  133. .search_right ul li {
  134.         float:left;
  135.         display: inline;
  136.         font-size: 12px;
  137. }
  138. .search_right ul li a {
  139.         color:#666666;
  140.         margin: 0 7px;
  141.         *margin: 0 4px;
  142. }
  143. .search_right ul li span {
  144.         color:#0066cc;
  145.         font-weight:bold;
  146. }
  147. .pindao_right {
  148.         float: left;
  149.         width: 190px;
  150. }
复制代码
2、将一楼附件中的pubsearchform.htm上传到\template\你的风格目录\common中

3、将一楼附件的图片上传到\template\你风格目录\image中

4、更新缓存!
回复

使用道具 举报

ms1029 发表于 2011-1-10 20:47:40 | 显示全部楼层
回复

使用道具 举报

lmprinter 发表于 2011-1-10 22:38:47 | 显示全部楼层
不错。支持下         
回复

使用道具 举报

飞武网络 发表于 2011-1-11 00:28:36 | 显示全部楼层
的确不错!
回复

使用道具 举报

hyslian 发表于 2011-1-11 04:43:13 | 显示全部楼层
(EM:131:) 3Q  http://www.0762sq.cn/
回复

使用道具 举报

fuckgao 发表于 2011-1-11 08:30:16 | 显示全部楼层
不错,支持一下
回复

使用道具 举报

hanetliu 发表于 2011-1-11 09:21:27 | 显示全部楼层
(EM:166:)
回复

使用道具 举报

太極無名 发表于 2011-1-11 09:44:59 | 显示全部楼层
(EM:131:)
回复

使用道具 举报

soonewcn 发表于 2011-1-11 10:09:54 | 显示全部楼层
这个很实用,收藏了!仿化龙巷搜索导航For DX1.5
http://bbs.soonew.cn/forum-viewthread-tid-1340-fromuid-1.html
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-9-7 06:39 , Processed in 0.127050 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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