找回密码
 马上注册

QQ登录

只需一步,快速开始

查看: 2474|回复: 6

DX2.5论坛漂亮的首页N格!DIY导入绿色插件.

[复制链接]
发表于 2012-3-5 23:32:45 | 显示全部楼层 |阅读模式
  • 吉安交友查询:性别: 年龄: ~ 高级查找
  • dx2.5出来了!修改了X2.5的N格插件。
    有两种方法!都很简单的

    第一种方法是:

    1:找到“template\default\forum\discuz.htm”模板,打开,

    复制以下代码:
    1. <!-- Start ahslu Hot -->


    2. .ndsns_hot { background:#FFF; margin:8px 0; width:958px; border:1px solid #DADADA }
    3. .ndsns_hot_title { background: url(static/image/common/ndsns_hot01.png) repeat-x scroll 0 0 transparent; border-bottom: 3px solid #4284CE; height: 30px; }
    4. .ndhot_t_left { display: inline; float: left; padding-left: 20px; margin-top: 5px; }
    5. .ndhot_t_left span { display:block; background:#4284CE; border: 1px solid #4284CE; color: #FFF; font-size: 12px; height: 24px; line-height: 24px; text-align: center; width: 70px; }
    6. .ndhot_t_right { display: inline; float: right; padding-right: 15px; padding-top: 5px; }
    7. .ndhot_t_right ul { list-style-type: none; margin: 0; padding: 0; }
    8. .ndhot_t_right li { display: inline; float: left; margin-left: 10px; }
    9. .ndhot_t_right li a { color: #035F9A; display: block; font-size: 12px; height: 24px; line-height: 24px; text-align: center; text-decoration: none; width: 65px; }
    10. .ndhot_t_right li a:hover { text-decoration: none; }
    11. .ndhot_t_right li a.ndsns_hov { background: url("static/image/common/ndsns_hot02.png") no-repeat scroll 0 0 transparent; color: #FFFFFF; }
    12. .ndsns_hot_con { padding:2px; overflow:hidden; height:222px;}
    13. .ndhot_con_left { width:330px; height:220px; float:left; overflow:hidden }
    14. .ndhot_con_right { width:620px; float:right;}
    15. .ndhot_con_right .ndsns_hid { display:none; }
    16. .ndhot_con_right ul{ margin-top:7px;}
    17. .ndhot_con_right li { float:left; width:49%; font-size:14px; overflow:hidden; height:30px; line-height:30px; }
    18. .ndhot_con_right li a { color:#666; }
    19. .ndhot_con_right li span a { color:#197CBD; }
    20. .ndhot_con_right li span.spe { font-family:'宋体'; font-weight:bold; }
    21. .ndhot_con_right .con_hot_spe{ width:185px; float:left; padding:7px 10px 0; }
    22. .ndhot_con_right dt { background:url(static/image/common/ndsns_hot03.png) repeat-x 0 0; border: 1px solid #D3D3D3; color: #666; font-size: 12px; line-height: 18px; text-align: center; }
    23. .ndhot_con_right dd{ background:url({static/image/common/ndsns_hot_icon.png) no-repeat scroll 3px 6px; padding-left:16px; height:20px; line-height:20px; border-bottom:1px dashed #069; font-size:12px;}
    24. .ndhot_con_right dd span{ float:right; color:#999;}
    25. .ndhot_con_right dd a{ color:#127BBF; text-decoration:none;}


    26. function showTab(name,cur,n){
    27. for(i=1;i<=n;i++){
    28. var menu=document.getElementById(name+i);
    29. var con=document.getElementById("con_"+name+"_"+i);
    30. menu.className=i==cur?"ndsns_hov":"";
    31. con.className=i==cur?"":"ndsns_hid";
    32. }
    33. }


    34. 焦点图片

    35. 最新主题
    36. 最新回复
    37. 热门帖子
    38. 吉安同乡会
    39. 聚会活动
    40. 新手教程
    41. 活跃会员



    42. <!--[diy=ndsns01]-->

    43. <!--[/diy]-->


    44. <!--[diy=ndsns02]-->

    45. <!--[/diy]-->


    46. <!--[diy=ndsns03]-->

    47. <!--[/diy]-->


    48. <!--[diy=ndsns04]-->

    49. <!--[/diy]-->


    50. <!--[diy=ndsns05]-->

    51. <!--[/diy]-->


    52. <!--[diy=ndsns06]-->

    53. <!--[/diy]-->


    54. <!--[diy=ndsns07]-->

    55. <!--[/diy]-->



    56. <!--[diy=ndsns08]-->

    57. <!--[/diy]-->


    58. <!--[diy=ndsns09]-->

    59. <!--[/diy]-->


    60. <!--[diy=ndsns10]-->

    61. <!--[/diy]-->





    62. <!--// End ahslu Hot -->
    复制代码
    加入到以下代码下面:
    1. <!--{if empty($gid)}-->
    2. <!--{ad/text/wp a_t}-->
    3. <!--{/if}-->



    4. <!--{if empty($gid)}-->

    5. <!--[diy=diy1]--><!--[/diy]-->

    6. <!--{/if}-->
    复制代码
    2:然后将“论坛N格”文件夹的“static”上传到根目录

    3:再导入forum_discuz.xml即可;

    搞定!


    第二种方法是懒人包!

    第一步:将文件里“DX2.5论坛N格”下的文件放到网站根目录下替换!

    第二步:打开首页,用管理员登陆,点顶部"DIY",再点“导入”,将文件夹里的“forum_discuz.xml”导入即可

    注意:以上方法使用于论坛首页模板“discuz.htm”为默认文件,如果你对此模板改动较大,建议自己参考下载包里的“不想覆盖源文件,想手动修改.txt”,复制里面说明的代码到“discuz.htm”模板里,详情说明里面有!
    游客,如果您要查看本帖隐藏内容请回复

    本帖子中包含更多资源

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

    ×
    u507651
    发表于 2012-3-13 17:31:41 | 显示全部楼层
    怎么不能用啊
    错误的?
    u507651
    回复

    使用道具 举报

    发表于 2012-4-8 11:18:52 | 显示全部楼层
    <!-- Start ahslu Hot -->
    <div class="ndsns_hot[/img]
    <style type="text/css[/img]
    .ndsns_hot { background:#FFF; margin:8px 0; width:958px; border:1px solid #DADADA }
    .ndsns_hot_title { background: url(static/image/common/ndsns_hot01.png) repeat-x scroll 0 0 transparent; border-bottom: 3px solid #4284CE; height: 30px; }
    .ndhot_t_left { display: inline; float: left; padding-left: 20px; margin-top: 5px; }
    .ndhot_t_left span { display:block; background:#4284CE; border: 1px solid #4284CE; color: #FFF; font-size: 12px; height: 24px; line-height: 24px; text-align: center; width: 70px; }
    .ndhot_t_right { display: inline; float: right; padding-right: 15px; padding-top: 5px; }
    .ndhot_t_right ul { list-style-type: none; margin: 0; padding: 0; }
    .ndhot_t_right li { display: inline; float: left; margin-left: 10px; }
    .ndhot_t_right li a { color: #035F9A; display: block; font-size: 12px; height: 24px; line-height: 24px; text-align: center; text-decoration: none; width: 65px; }
    .ndhot_t_right li a:hover { text-decoration: none; }
    .ndhot_t_right li a.ndsns_hov { background: url("static/image/common/ndsns_hot02.png") no-repeat scroll 0 0 transparent; color: #FFFFFF; }
    .ndsns_hot_con { padding:2px; overflow:hidden; height:222px;}
    .ndhot_con_left { width:330px; height:220px; float:left; overflow:hidden }
    .ndhot_con_right { width:620px; float:right;}
    .ndhot_con_right .ndsns_hid { display:none; }
    .ndhot_con_right ul{ margin-top:7px;}
    .ndhot_con_right li { float:left; width:49%; font-size:14px; overflow:hidden; height:30px; line-height:30px; }
    .ndhot_con_right li a { color:#666; }
    .ndhot_con_right li span a { color:#197CBD; }
    .ndhot_con_right li span.spe { font-family:'宋体'; font-weight:bold; }
    .ndhot_con_right .con_hot_spe{ width:185px; float:left; padding:7px 10px 0; }
    .ndhot_con_right dt { background:url(static/image/common/ndsns_hot03.png) repeat-x 0 0; border: 1px solid #D3D3D3; color: #666; font-size: 12px; line-height: 18px; text-align: center; }
    .ndhot_con_right dd{ background:url({static/image/common/ndsns_hot_icon.png) no-repeat scroll 3px 6px; padding-left:16px; height:20px; line-height:20px; border-bottom:1px dashed #069; font-size:12px;}
    .ndhot_con_right dd span{ float:right; color:#999;}
    .ndhot_con_right dd a{ color:#127BBF; text-decoration:none;}
    </style>
      <script type="text/javascript[/img]
              function showTab(name,cur,n){
                    for(i=1;i<=n;i++){
                              var menu=document.getElementById(name+i);
                            var con=document.getElementById("con_"+name+"_"+i);
                              menu.className=i==cur?"ndsns_hov":"";
                              con.className=i==cur?"":"ndsns_hid";
                    }
              }
      </script>
      <div class="ndsns_hot_title[/img]
        <h3 class="ndhot_t_left[/img]<span>焦点图片</span></h3>
        <ul class="ndhot_t_right[/img]
          <li><a id="hot1" class="ndsns_hov" >最新主题</a></li>
          <li><a id="hot2[/img]最新回复</a></li>
          <li><a id="hot3[/img]热门帖子</a></li>
          <li><a id="hot4[/img]吉安同乡会</a></li>
          <li><a id="hot5[/img]聚会活动</a></li>
          <li><a id="hot6[/img]新手教程</a></li>
          <li><a id="hot7[/img]活跃会员</a></li>
        </ul>
      </div>
      <div class="ndsns_hot_con[/img]
        <div class="ndhot_con_left[/img]<!--[diy=ndsns01]-->
          <div id="ndsns01" class="area[/img]</div>
          <!--[/diy]--></div>
        <div class="ndhot_con_right[/img]
          <div id="con_hot_1[/img]
            <!--[diy=ndsns02]-->
            <div id="ndsns02" class="area[/img]</div>
            <!--[/diy]-->
          </div>
          <div id="con_hot_2" class="ndsns_hid[/img]
            <!--[diy=ndsns03]-->
            <div id="ndsns03" class="area[/img]</div>
            <!--[/diy]-->
          </div>
          <div id="con_hot_3" class="ndsns_hid[/img]
            <!--[diy=ndsns04]-->
            <div id="ndsns04" class="area[/img]</div>
            <!--[/diy]-->
          </div>
          <div id="con_hot_4" class="ndsns_hid[/img]
            <!--[diy=ndsns05]-->
            <div id="ndsns05" class="area[/img]</div>
            <!--[/diy]-->
          </div>
          <div id="con_hot_5" class="ndsns_hid[/img]
            <!--[diy=ndsns06]-->
            <div id="ndsns06" class="area[/img]</div>
            <!--[/diy]-->
          </div>
          <div id="con_hot_6" class="ndsns_hid[/img]
            <!--[diy=ndsns07]-->
            <div id="ndsns07" class="area[/img]</div>
            <!--[/diy]-->
          </div>
          <div id="con_hot_7" class="ndsns_hid[/img]
            <div class="con_hot_spe[/img]
              <!--[diy=ndsns08]-->
              <div id="ndsns08" class="area[/img]</div>
              <!--[/diy]-->
            </div>
            <div class="con_hot_spe[/img]
              <!--[diy=ndsns09]-->
              <div id="ndsns09" class="area[/img]</div>
              <!--[/diy]-->
            </div>
            <div class="con_hot_spe[/img]
              <!--[diy=ndsns10]-->
              <div id="ndsns10" class="area[/img]</div>
              <!--[/diy]-->
            </div>
          </div>
        </div>
      </div>
    </div>
    <!--// End ahslu Hot -->
    u507651
    回复

    使用道具 举报

    发表于 2012-4-10 22:40:26 | 显示全部楼层
    下载不了{:0_181:}
    u507651
    回复

    使用道具 举报

    发表于 2012-4-11 06:24:20 | 显示全部楼层
    不能加载图片 啊
    u507651
    回复

    使用道具 举报

    d
    0 0
      @ME: 
    发表于 2012-8-15 04:31:51 | 显示全部楼层
    好东东!我要。
    u507651
    回复

    使用道具 举报

    发表于 2013-9-6 11:15:36 | 显示全部楼层
    好好好好好好好好好好好好
    u507651
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 马上注册

    本版积分规则

    QQ|Archiver|手机版|小黑屋|吉安论坛 ( 赣ICP备2021010355号 )值班电话:13410000095 站点地图

    GMT+8, 2024-7-5 03:10 , Processed in 0.095125 second(s), 32 queries .

    Powered by Discuz! X3.5

    © 2001-2024 Discuz! Team.

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