Discuz教程网

[代码修改] Discuz X2 另类多格二

  [复制链接]
authicon dly 发表于 2011-6-7 12:33:40 | 显示全部楼层 |阅读模式
效果图.jpg

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 文件中的代码:

  1. <!--代码开始2011-6-6-->
  2. <style>
  3. .w990{width:960px;margin:0px auto;overflow:hidden;margin-bottom:8px;clear:both;}
  4. .l{float:left;}
  5. .r{float:right;}
  6. .t10{margin-top:0;}
  7. .b12{padding-bottom:12px;}
  8. .wxx{background:url(static/image/mashanren/headerbg.gif) repeat-x 0px -113px;height:1px;overflow:hidden;clear:both;margin:9px auto;width:365px;}
  9. .cYellow,a.cYellow:link,a.cYellow:visited{color:#f16c00;}
  10. .main1Left{width:564px;overflow:hidden;}
  11. .main1Left .pic{width:564px;height:333px;overflow:hidden;position:relative;background:#f0f0f0;}
  12. .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;}
  13. .main1Left .pic ul li{ float:left; display:inline;width:554px;height:290px; background:#f0f0f0; }
  14. .main1Left .pic img{width:524px;height:290px;border: 0}
  15. .main1Left .txt{width:532px;height:30px;overflow:hidden;position:absolute;top:296px;left:35px;}
  16. .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;}
  17. .main1Left .txt a.sc{background:#fbb72e;}
  18. .Rank{clear:both;width:555px; padding:7px 0px 0px 10px; background:#f0f0f0; overflow:hidden; text-align:left; margin-top:5px;height:77px;}
  19. .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;}
  20. .Rank dd{float:left; margin: 0; padding: 0; margin-right:7px;display:inline;}
  21. .Rank img{width:120px;height:70px;border:1px solid #fff;float:left;}
  22. .Rank dt{float:left; padding-top:4px;width:140px;}
  23. .Rank ul{margin:0;float:left;padding:0px 5px;}
  24. .Rank li{overflow:hidden; width:120px;height:70px;list-style-type: none;}
  25. .bj_1{background:url(static/image/mashanren/lt2.gif) no-repeat 35px -107px;}
  26. .bj_2{background:url(static/image/mashanren/lt2.gif) no-repeat 35px -226px;}
  27. .bj_3{background:url(static/image/mashanren/lt2.gif) no-repeat 20px -454px;}
  28. .bj_4{background:url(static/image/mashanren/lt2.gif) no-repeat 0px -340px;}
  29. .forumNotice{width:565px;height:55px;background:url(static/image/mashanren/lt2.gif) no-repeat;padding-top:23px;clear:both;margin-top:5px;}
  30. .forumNotice ul{padding:0;margin:0;}
  31. .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;}
  32. .forumNotice ul li a{color:#333;font-size:12px;}
  33. .forumNotice li a:hover{color:#aa6d12;}
  34. .main1Right{width:391px;overflow:hidden;background:#f0f0f0;padding:5px;padding-left:0px;}
  35. .newFocus{background:#fff;border:1px solid #d8d8d8;height:493px;}
  36. .newFocus h3{margin:0;background:#fafafa;height:42px;background:#fafafa url(static/image/mashanren/lt2.gif) no-repeat -258px -93px;}
  37. .newFocus p{color:#999;font-size:12px;width:360px;margin:0px auto;text-align:center;height:26px;line-height:26px;}
  38. .newFocus h4{width:350px;overflow:hidden;text-align:center;height:25px;line-height:25px;margin:12px auto 0px;overflow:hidden;}
  39. .newFocus h4 a{color:#e45828;font:bold 16px "Microsoft Yahei";}
  40. .newFocus h4 a:hover{color:#aa6d12;}
  41. .newFocus ul{width:360px;margin:0px auto;padding:0;clear:both;}
  42. .newFocus li{width:360px;height:23px;line-height:23px;overflow:hidden;font-size:12px;}
  43. .newFocus span{float:right;color:#a6a9ab;}
  44. .newFocus a{font-size:14px;}
  45. </style>
  46. <script src="static/image/mashanren/lt_index.js" type="text/javascript"></script>
  47. <script src="static/image/mashanren/jqueryindex.js" type="text/javascript"></script>
  48. <script language="javascript">
  49. jQuery.noConflict();
  50. </script>
  51. <div class="w990 t10">
  52. <div class="main1Left l">
  53. <!--[diy=diy200au]--><div id="diy200au" class="area"></div><!--[/diy]-->
  54. <!--[diy=diy201au]--><div id="diy201au" class="area"></div><!--[/diy]-->  
  55. <!--[diy=diy202au]--><div id="diy202au" class="area"></div><!--[/diy]-->        
  56. </div>   
  57. <div class="main1Right r">
  58. <div class="newFocus">
  59. <H3></H3>
  60. <!--[diy=diy203au]--><div id="diy203au" class="area"></div><!--[/diy]-->   
  61. <div class="wxx">&nbsp;</div>
  62. <!--[diy=diy204au]--><div id="diy204au" class="area"></div><!--[/diy]-->   
  63. <div class="wxx">&nbsp;</div>
  64. <!--[diy=diy205au]--><div id="diy205au" class="area"></div><!--[/diy]-->
  65. </div>
  66. </div>  
  67. </div>
  68. <script src="static/image/mashanren/lifeindex.js" type="text/javascript"></script>
  69. <!--代码结束2011-6-6-->
复制代码


附件下载:
游客,如果您要查看本帖隐藏内容请回复






上一篇:Discuz X2 另类多格一
下一篇:Discuz X2 新浪微博账号互联插件 修****(QQ与新浪账号插件共存)
authicon 逸晓仙 发表于 2011-6-7 13:04:15 | 显示全部楼层
都是精品.................
authicon 丶新叶 发表于 2011-6-7 13:36:12 | 显示全部楼层
挺好看的.支持下...
authicon shiyong281 发表于 2011-6-8 16:50:40 | 显示全部楼层
看看, 还可以啊
authicon toycaners 发表于 2011-6-8 22:02:32 | 显示全部楼层
这个还挺好看啊!!
authicon 情恋五月天 发表于 2011-6-9 15:47:05 | 显示全部楼层
众人众人众人众人众人众人
authicon icenna 发表于 2011-6-19 10:00:03 | 显示全部楼层
不错,我喜欢
authicon 月之海洋 发表于 2011-6-22 19:59:53 | 显示全部楼层
很好 很强大。。谢谢分享
authicon 广东群狼团队 发表于 2011-6-22 20:34:19 | 显示全部楼层
定定定定
authicon Pianissimo 发表于 2011-6-23 00:59:59 | 显示全部楼层
这个还是不错的!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

1314学习网 ( 浙ICP备10214163号 )

GMT+8, 2025-5-2 11:01

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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