新手上路

- 金币
- 14
- 钻石
- 0 颗
- 注册时间
- 2011-7-28
- 最后登录
- 2013-8-26
落水鱼
发表于 2012-4-13 14:15:01
|
显示全部楼层
|阅读模式
本帖最后由 落水鱼 于 2012-4-13 16:22 编辑
非常喜欢YEEI现在各种风格的首页N格,今天就自己尝试了一下,把N格给剥离出来!提供给喜欢的人使用!
首先声明:版权由yeei(www.yeei.cn[/url])版权所有,我只是剥离N格而已!
先看演示网址:http://www.jiyuanren.com/forum.php
如果不喜欢呢,就可以直接跳过了!
方法:
1、上传图片文件(默认模板目录:/static/image/common/)
把附件下载,然后解压,把img 文件夹传到你的文件目录(看清楚,img文件夹不是文件夹的内容)
2、CSS添加N格css样式
- .frame{ border:none; padding:0px; margin:0px}.move-span { border:none; background:none; padding:0px; margin:0px}.yeei_sw{padding:0;margin-top:-1px;*margin-top:-16px; border-left:1px solid #D9D9D9; border-right:1px solid #D9D9D9; border-top: 1px solid #D9D9D9;}.yeei_sw1{height:107px; overflow:hidden;border-bottom:1px solid #D9D9D9;}.yeei_sw1l{ margin-right:320px;_margin-right:323px;padding:10px 10px 0 15px;background:#fff url({IMGDIR}/img/show_1_bg.gif) repeat-x 0 0px;position: relative}.yeei_sw1l .hot{background:url({IMGDIR}/img/new.png) no-repeat right 0;position: absolute;right:0px;top:1px; width:48px; height:47px;_background:none}.yeei_sw1l .m { margin-top:0px; padding-right:5px;*padding-right:0px}.yeei_sw1l .m img{ border:1px solid #E0E0E0; background:#fff; padding:1px}.yeei_sw1l dt{ font-size:16px; padding-bottom:3px; padding-top:1px;font-family:'Hiragino Sans GB','Microsoft YaHei','宋体',Helvetica,Arial,sans-serif;}.yeei_sw1l dd{ color:#666;margin-bottom:5px}.yeei_sw1l .b{ color:#888;}.yeei_sw1l .b a{ color:#77828E; margin-right:6px}.yeei_sw1r{float:right;height:98px; width:313px;_width:316px; overflow:hidden; padding-left:7px; padding-top:8px;background:url({IMGDIR}/img/show_2_bg.gif) no-repeat 0 0;}.yeei_sw1r .chart{ background:none;width:300px; padding-bottom:10px; padding-left:6px;background: url({IMGDIR}/img/bottom_b.gif) repeat-x 0 bottom;}.yeei_sw1r .yeei_wb{ padding-left:7px; padding-top:2px;}.yeei_sw1r a{cursor: pointer;}.yeei_sw1r a:hover{text-decoration: none;}.yeei_wb dt { height:19px;overflow:hidden;padding-bottom:9px;font-family:'宋体',Helvetica,Arial,sans-serif; font-weight: 700;background:url({IMGDIR}/img/wb.gif) no-repeat -54px 4px; padding-left:17px}.yeei_wb .n { float: left; color:#666; width:220px; overflow:hidden; background:#FFFFF0; border:1px solid #EDD180; height:23px; line-height:23px; padding:0 6px;}.yeei_wb .n b{ color:#F08800; font-weight:none}.yeei_wb .m { float: left; margin:0px; height:54px; width:54px; margin-right:7px;}.yeei_wb .m img{ border:1px solid #85898C; padding:1px;}.yeei_wb span{float:left; margin-top:2px;margin-right:10px; font-size:14px}.yeei_wb .ting{width:66px;height:19px;display: block;background:url({IMGDIR}/img/wb.gif) no-repeat 0 bottom; float:left}.yeei_sw2{height:195px;overflow:hidden;border-bottom:1px solid #D9D9D9}.yeei_sw2l{margin-right:318px;height:195px;border-right:1px solid #D9D9D9}.yeei_sw2r{ float:right;width:313px; overflow:hidden; padding-left:5px; padding-top:5px;}.yeei_sw2l .title{background: url({IMGDIR}/img/tab_bg.gif) repeat-x 0 0; height:40px;}.yeei_sw2l .titletext{font-size:12px;font-weight:normal;}.yeei_sw2l .tb a{padding:0px; background: url({IMGDIR}/img/tab_a.gif) no-repeat 0 -40px!important; margin-right:5px; color:#444; border:none;text-align:center;width:85px; height:40px}.yeei_sw2l .tb-c{ padding:10px; border:none}.yeei_sw2l .tb .a a {background:url({IMGDIR}/img/tab_a.gif) no-repeat 0 0!important;font-weight: 700; color:#333;}.yeei_sw2l .module ul li{width:50%;*width:49%;border-bottom:1px dotted #ddd; float:left; margin-bottom:3px; padding:0 0px 3px 0; }.yeei_sw2l .module ul li span{background:url({IMGDIR}/img/li.gif) no-repeat 5px 6px; padding-left:15px;}.yeei_sw2l .module ul li em{ font-size:11px; margin-right:10px;}.yeei_sw2l .module ul li a:hover{color:#225F8F;text-decoration: none;}
复制代码
3、模板中添加N格代码(默认模板文件是:/template/default/forum/discuz.htm)位置:可以直接插入到- <!--{subtemplate common/header}-->
复制代码
下面就可以!如果感觉不合适,自己调整!
- <!--yeei_sw start--><div class="yeei_sw"><div class="yeei_sw1"><div class="yeei_sw1r"> <!--{if empty($gid)}--> <div id="chart" class="bm bw0 cl"> <p class="chart z">{lang index_today}: <em>$todayposts</em><span class="pipe">|</span>{lang index_yesterday}: <em>$postdata[0]</em><span class="pipe">|</span>{lang index_posts}: <em>$posts</em><span class="pipe">|</span>{lang index_members}: <em>$_G['cache']['userstats']['totalmembers']</em></p></div> <!--{/if}-->
- <div class="yeei_wb">
- <!--[diy=yeei2]--><div id="yeei2" class="area"></div><!--[/diy]--></div></div><div class="yeei_sw1l"><div class="hot"></div><!--[diy=yeei1]--><div id="yeei1" class="area"></div><!--[/diy]-->
- </div>
- </div><div class="yeei_sw2"><div class="yeei_sw2r">
- <!--[diy=yeei4]--><div id="yeei4" class="area"></div><!--[/diy]--></div><div class="yeei_sw2l"><!--[diy=yeei3]--><div id="yeei3" class="area"></div><!--[/diy]--></div>
- </div>
- </div><!--yeei_sw end-->
复制代码
4、打开论坛首页,管理账号登陆,DIY中导入forum_discuz.xml文件!
然后更新缓存 就可以了!
PS:我的论坛是2.0版本的,2.5版本的,没有测试!
dz官方帖地址:[url=http://www.discuz.net/thread-2762936-1-1.html]http://www.discuz.net/thread-2762936-1-1.html
|
评分
-
查看全部评分
|