本帖最后由 tolj 于 2013-6-17 06:53 编辑
漂亮的图标 仿之前原模版=官方模版 谢谢,请勿说神话团队是修改的,是从官方模版,模仿出来的谢谢支持!!
仿清新版,增加二级导航
增加完美N格,图片圆角化,会员在线美化(代码来自1314学习网)
评分美化(来自另外的模版)
默认签名档(无限给力)
板块图标自动加ALT
附带DIY数据
应用中心:https://addon.dismall.com/?ac=item&id=imyth_myth.template 好吧暂未审核完成!!支持一下吧~~
本地安装包:
图片包: 请放在/static/image/common/
教程:
去除圆角化
打开extend_common.css
到最后删除以下代码- img{
- border-radius: 9px;
- -webkit-border-radius: 9px;
- -moz-border-radius: 9px;
- }
复制代码 删除N格
论坛template—default—forum—discuz.htm(如果是自定义模板请找到对应目录
),用右键点击,”打开方式“选择”记事本“,修改如下代码:
找到删除上面的- <!-- Start www.imyth.pw Hot -->
- <div class="ndsns_hot">
- <style type="text/css">
- .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">
- 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">
- <h3 class="ndhot_t_left"><span>最新图片</span></h3>
- <ul class="ndhot_t_right">
- <li><a id="hot1" onmouseover="showTab('hot',1,7)" class="ndsns_hov" >本周热门</a></li>
- <li><a id="hot2" onmouseover="showTab('hot',2,7)">最新主题</a></li>
- <li><a id="hot3" onmouseover="showTab('hot',3,7)">最新回复</a></li>
- <li><a id="hot4" onmouseover="showTab('hot',4,7)">热门主题</a></li>
- <li><a id="hot5" onmouseover="showTab('hot',5,7)">精华主题</a></li>
- <li><a id="hot6" onmouseover="showTab('hot',6,7)">置顶帖子</a></li>
- <li><a id="hot7" onmouseover="showTab('hot',7,7)">会员排行</a></li>
- </ul>
- </div>
- <div class="ndsns_hot_con">
- <div class="ndhot_con_left"><!--[diy=ndsns01]-->
- <div id="ndsns01" class="area"></div>
- <!--[/diy]--></div>
- <div class="ndhot_con_right">
- <div id="con_hot_1">
- <!--[diy=ndsns02]-->
- <div id="ndsns02" class="area"></div>
- <!--[/diy]-->
- </div>
- <div id="con_hot_2" class="ndsns_hid">
- <!--[diy=ndsns03]-->
- <div id="ndsns03" class="area"></div>
- <!--[/diy]-->
- </div>
- <div id="con_hot_3" class="ndsns_hid">
- <!--[diy=ndsns04]-->
- <div id="ndsns04" class="area"></div>
- <!--[/diy]-->
- </div>
- <div id="con_hot_4" class="ndsns_hid">
- <!--[diy=ndsns05]-->
- <div id="ndsns05" class="area"></div>
- <!--[/diy]-->
- </div>
- <div id="con_hot_5" class="ndsns_hid">
- <!--[diy=ndsns06]-->
- <div id="ndsns06" class="area"></div>
- <!--[/diy]-->
- </div>
- <div id="con_hot_6" class="ndsns_hid">
- <!--[diy=ndsns07]-->
- <div id="ndsns07" class="area"></div>
- <!--[/diy]-->
- </div>
- <div id="con_hot_7" class="ndsns_hid">
- <div class="con_hot_spe">
- <!--[diy=ndsns08]-->
- <div id="ndsns08" class="area"></div>
- <!--[/diy]-->
- </div>
- <div class="con_hot_spe">
- <!--[diy=ndsns09]-->
- <div id="ndsns09" class="area"></div>
- <!--[/diy]-->
- </div>
- <div class="con_hot_spe">
- <!--[diy=ndsns10]-->
- <div id="ndsns10" class="area"></div>
- <!--[/diy]-->
- </div>
- </div>
- </div>
- </div>
- </div>
- <!--// End www.imyth.pw.net Hot -->
复制代码 去除在线美化
首先打开discuz.htm文件
然后寻找- <dl id="onlinelist" class="bm_c" style="padding: 0;">
- <!--{if $detailstatus}-->
- <dd class="ptm pbm">
- <ul class="cl">
- <!--{if $whosonline}-->
- <!--{loop $whosonline $key $online}-->
- <a id="online_{$key}" class="tooltip link" onmouseover="showMenu({'ctrlid':this.id, 'pos':'12'});">
- <img src="/uc_server/avatar.php?uid=$online[uid]&size=small" width="30px" height="30px" style="border: 1px solid #CCC; padding: 2px; background-color: #FFF; margin-bottom: 5px; margin-left: 5px; "/>
- </a>
- <div id="online_{$key}_menu" class="tip_black tip_5" style="display: none;">
- <div class="tip_horn"></div>
- <div class="tip_c tipa">
- <!--{if $online['uid']}-->
- <a href="home.php?uid=$online[uid]">$online[username]</a>
- <!--{else}-->
- $online[username]
- <!--{/if}-->
- </div>
- </div>
- <!--{/loop}-->
- <!--{else}-->
- <li style="width: auto">{lang online_only_guests}</li>
- <!--{/if}-->
- </ul>
- </dd>
- <!--{/if}-->
- </dl>
复制代码 将他换成- <dl id="onlinelist" class="bm_c" style="padding: 0;">
- <!--{if $detailstatus}-->
- <dd class="ptm pbm">
- <ul class="cl">
- <!--{if $whosonline}-->
- <!--{loop $whosonline $key $online}-->
- <a id="online_{$key}" class="tooltip link" onmouseover="showMenu({'ctrlid':this.id, 'pos':'12'});">
- <img src="/uc_server/avatar.php?uid=$online[uid]&size=small" width="30px" height="30px" style="border: 1px solid #CCC; padding: 2px; background-color: #FFF; margin-bottom: 5px; margin-left: 5px; "/>
- </a>
- <div id="online_{$key}_menu" class="tip_black tip_5" style="display: none;">
- <div class="tip_horn"></div>
- <div class="tip_c tipa">
- <!--{if $online['uid']}-->
- <a href="home.php?uid=$online[uid]">$online[username]</a>
- <!--{else}-->
- $online[username]
- <!--{/if}-->
- </div>
- </div>
- <!--{/loop}-->
- <!--{else}-->
- <li style="width: auto">{lang online_only_guests}</li>
- <!--{/if}-->
- </ul>
- </dd>
- <!--{/if}-->
- </dl>
复制代码 接着,打开extend_common.css文件。
在删除代码:- .tip_black { position: absolute; padding: 4px 7px; background: #282828; margin-left: 5px; }
- .tip_5 { margin-top: -20px; }
- .tip_5 .tip_horn { float: left; bottom: -6px; background: url({IMGDIR}/tip_black_bottom.png); }
- .tipa a { color: #FFF; }
复制代码 打下广告:神话社区 www.imyth.pw
|