1、 将文件包下载,并将static文件夹覆盖到你网站的根目录。
2、 如果你diy的是论坛首页forum.php,请备份你的模板文件forum/discuz.htm;
如果你diy的是门户页portal.php,请备份你的模板文件portal/index.htm。
3、 查找模板文件discuz.htm或index.htm代码中的: <style id="diy_style" type="text/css"></style>
4、 将压缩包里面 代码.txt 文件中的代码粘贴到:<style id="diy_style" type="text/css"></style> 的后面。
5、 用管理帐号登录你的网站,进入diy的高级模式。
6、 将压缩包里面的那6个xml文件分别导入。
7、 完全导入后,根据你的需要,配置各个模块的参数。
8、 配置完成后,点击保存,然后更新缓存即可。
附:代码.txt 文件中的代码:
- <!--代码开始2011-6-6-->
- <style>
- .w990{width:960px;margin:0px auto;overflow:hidden;margin-bottom:8px;clear:both;}
- .l{float:left;}
- .r{float:right;}
- .t10{margin-top:0;}
- .b12{padding-bottom:12px;}
- .wxx{background:url(static/image/mashanren/headerbg.gif) repeat-x 0px -113px;height:1px;overflow:hidden;clear:both;margin:9px auto;width:365px;}
- .cYellow,a.cYellow:link,a.cYellow:visited{color:#f16c00;}
- .main1Left{width:564px;overflow:hidden;}
- .main1Left .pic{width:564px;height:333px;overflow:hidden;position:relative;background:#f0f0f0;}
- .main1Left .pic ul{ position:absolute; top:6px; left:7px;background:url(static/image/mashanren/it0.gif) no-repeat 0px 0px;margin: 0; padding: 0;padding-left:28px;}
- .main1Left .pic ul li{ float:left; display:inline;width:554px;height:290px; background:#f0f0f0; }
- .main1Left .pic img{width:524px;height:290px;border: 0}
- .main1Left .txt{width:532px;height:30px;overflow:hidden;position:absolute;top:296px;left:35px;}
- .main1Left .txt a{width:172px;height:32px;display:block;background:#b8b8b8;text-align:center;line-height:32px;outline: 0;font-size:12px;color:#fff;margin-right:4px;float:left;}
- .main1Left .txt a.sc{background:#fbb72e;}
- .Rank{clear:both;width:555px; padding:7px 0px 0px 10px; background:#f0f0f0; overflow:hidden; text-align:left; margin-top:5px;height:77px;}
- .Rank dl{margin:0;padding:0px 5px;overflow:hidden; height:70px;float:left;width:275px;}.Rank dl a{color:#555;font-size:12px;}.Rank dl a:hover{color:#aa6d12;}
- .Rank dd{float:left; margin: 0; padding: 0; margin-right:7px;display:inline;}
- .Rank img{width:120px;height:70px;border:1px solid #fff;float:left;}
- .Rank dt{float:left; padding-top:4px;width:140px;}
- .Rank ul{margin:0;float:left;padding:0px 5px;}
- .Rank li{overflow:hidden; width:120px;height:70px;list-style-type: none;}
- .bj_1{background:url(static/image/mashanren/lt2.gif) no-repeat 35px -107px;}
- .bj_2{background:url(static/image/mashanren/lt2.gif) no-repeat 35px -226px;}
- .bj_3{background:url(static/image/mashanren/lt2.gif) no-repeat 20px -454px;}
- .bj_4{background:url(static/image/mashanren/lt2.gif) no-repeat 0px -340px;}
- .forumNotice{width:565px;height:55px;background:url(static/image/mashanren/lt2.gif) no-repeat;padding-top:23px;clear:both;margin-top:5px;}
- .forumNotice ul{padding:0;margin:0;}
- .forumNotice ul li{width:230px;height:24px;line-height:24px;float:left;margin:0px 20px;overflow:hidden;display:inline;padding-left:10px;background:url(static/image/mashanren/lt2.gif) no-repeat -20px -23px;}
- .forumNotice ul li a{color:#333;font-size:12px;}
- .forumNotice li a:hover{color:#aa6d12;}
- .main1Right{width:391px;overflow:hidden;background:#f0f0f0;padding:5px;padding-left:0px;}
- .newFocus{background:#fff;border:1px solid #d8d8d8;height:493px;}
- .newFocus h3{margin:0;background:#fafafa;height:42px;background:#fafafa url(static/image/mashanren/lt2.gif) no-repeat -258px -93px;}
- .newFocus p{color:#999;font-size:12px;width:360px;margin:0px auto;text-align:center;height:26px;line-height:26px;}
- .newFocus h4{width:350px;overflow:hidden;text-align:center;height:25px;line-height:25px;margin:12px auto 0px;overflow:hidden;}
- .newFocus h4 a{color:#e45828;font:bold 16px "Microsoft Yahei";}
- .newFocus h4 a:hover{color:#aa6d12;}
- .newFocus ul{width:360px;margin:0px auto;padding:0;clear:both;}
- .newFocus li{width:360px;height:23px;line-height:23px;overflow:hidden;font-size:12px;}
- .newFocus span{float:right;color:#a6a9ab;}
- .newFocus a{font-size:14px;}
- </style>
- <script src="static/image/mashanren/lt_index.js" type="text/javascript"></script>
- <script src="static/image/mashanren/jqueryindex.js" type="text/javascript"></script>
- <script language="javascript">
- jQuery.noConflict();
- </script>
- <div class="w990 t10">
- <div class="main1Left l">
- <!--[diy=diy200au]--><div id="diy200au" class="area"></div><!--[/diy]-->
- <!--[diy=diy201au]--><div id="diy201au" class="area"></div><!--[/diy]-->
- <!--[diy=diy202au]--><div id="diy202au" class="area"></div><!--[/diy]-->
- </div>
- <div class="main1Right r">
- <div class="newFocus">
- <H3></H3>
- <!--[diy=diy203au]--><div id="diy203au" class="area"></div><!--[/diy]-->
- <div class="wxx"> </div>
- <!--[diy=diy204au]--><div id="diy204au" class="area"></div><!--[/diy]-->
- <div class="wxx"> </div>
- <!--[diy=diy205au]--><div id="diy205au" class="area"></div><!--[/diy]-->
- </div>
- </div>
- </div>
- <script src="static/image/mashanren/lifeindex.js" type="text/javascript"></script>
- <!--代码结束2011-6-6-->
复制代码
附件下载:
|
上一篇: Discuz X2 另类多格一下一篇: Discuz X2 新浪微博账号互联插件 修****(QQ与新浪账号插件共存)
|