Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[修改] 右下角站长推荐仿凤凰论坛凤坛简报样式 for X1.5[已发布]

  [复制链接]
imgen 发表于 2010-12-7 11:42:50 | 显示全部楼层 |阅读模式
插件发布
插件名称: 右下角站长推荐仿凤凰论坛凤坛简报样式 for X1.5
插件来源:
适用版本: Discuz! X1.5
语言编码: GBK简体 
最后更新时间:
插件作者: 健叔
插件简介: 将系统自带的右下角站长推荐的样式替换成凤凰网论坛的凤坛简报样式,适用于X1.5,chrome、IE下测试完美无错。本程序只是对官方程序进行美化,所以并不会影响论坛任何功能。
本帖最后由 imgen 于 2010-12-11 13:46 编辑

原样式:


美化后:演示:韩寒非官方网站 http://www.twocold.org/


无图版:(自动适应宽度)

修改方法:(修改前记得备份相应文件)

1、打开:template\default\common\common.css

查找:
  1. /* 热点:站长推荐内容,在页面右下角弹出 */
  2. .focus { position: fixed; right: 10px; bottom: 10px; z-index: 300; overflow: hidden; width: 270px; border: 1px solid; border-color: #CCC #999 #999 #CCC; background: {WRAPBG}; }
  3.         * html .focus { position: absolute; top: expression(offsetParent.scrollTop+document.documentElement.clientHeight-this.offsetHeight); }
  4.         .focus .flb { margin: 0; padding: 6px 10px; background: url({IMGDIR}/thead.png) repeat-x 0 0; }
  5.                 .focus .flb em { font-size: 12px; color: {LINK}; }
  6.         .focus .detail { padding: 10px; text-align: left; }
  7.                 .focus .detail h4 { margin-bottom: 5px; }
  8.                 .focus .detail img { float: left; margin-right: 8px; width: 58px; }
  9.                 .focus .detail a { color: #06C; }
  10.         .focus .moreinfo { float: right; display: inline; margin-right: 10px; padding: 6px 15px 6px 0; background: url({IMGDIR}/arw_r.gif) no-repeat 100% 50%; }
复制代码
替换为:
  1. /* 热点:站长推荐内容,在页面右下角弹出 */
  2. .focus { position: fixed; right: 10px; bottom: 10px; z-index: 300; overflow: hidden; width: 300px; height:180px;}
  3.         * html .focus { position:absolute ; top: expression(offsetParent.scrollTop+document.documentElement.clientHeight-this.offsetHeight); }
  4.         .focus .flb { padding:0;margin:0;height:27px;line-height:27px;background: url({IMGDIR}/focustit.gif) repeat-x 0 0; color:#711018;font-size: 18px;}
  5.                 .focus .flb em {padding-left:10px;color:#711018}
  6.                 .focus .flb em img {padding-right:5px;}
  7.                 .focus .flb span { padding-top:4px;padding-right:10px; float:right;  }
  8.         .focus .detail { padding:10px; text-align:left; border:1px solid #e4e4e5; background:{WRAPBG}; width:278px; position:absolute; }
  9.                 .focus .detail h4 { margin-bottom: 5px; font-size:14px; height:18px; overflow:hidden; }
  10.                 .focus .detail .tipsimg { float: left; margin-right:5px}
  11.                 .focus .detail .tipsimg img { padding:1px; border:1px solid #ccc; width: 112px;height:92px; }
  12.                 .focus .detail .tipscon { float:right; width:155px; height:105px; overflow:hidden; }
  13.                 .focus .detail a { color: #e61056; }
复制代码
2、打开:template\default\common\footer.htm

查找:
  1.                 <div class="focus" id="sitefocus">
  2.                         <h3 class="flb">
  3.                                 <em><!--{if $_G['cache']['focus']['title']}-->{$_G['cache']['focus']['title']}<!--{else}-->{lang focus_hottopics}<!--{/if}--></em>
  4.                                 <span><a href="javascript:;" onclick="setcookie('nofocus_$focusid', 1, 86400);$('sitefocus').style.display='none'" class="flbc" title="{lang close}">{lang close}</a></span>
  5.                         </h3>
  6.                         <hr class="l" />
  7.                         <div class="detail">
  8.                                 <h4><a href="{$focus['url']}" target="_blank">$focus['subject']</a></h4>
  9.                                 <p>
  10.                                         <!--{if $focus[image]}-->
  11.                                         <a href="{$focus['url']}" target="_blank"><img src="{$focus['image']}" onload="thumbImg(this, 1)" _width="58" _height="58" /></a>
  12.                                         <!--{/if}-->
  13.                                         $focus['summary']
  14.                                 </p>
  15.                         </div>
  16.                         <hr class="l" />
  17.                         <a href="{$focus['url']}" class="moreinfo" target="_blank">{lang focus_show}</a>
  18.                 </div>
复制代码
替换为:(有用户反映修改后无法关闭站长推荐,原因是因为我发帖子时候DZ自动过滤了下面代码中的onclick="setcookie('nofocus_$focusid', 1, 86400);$('sitefocus').style.display='none'" 请您查找您的footer.htm中有没有前面这段代码,如果没有请重新用下面的代码替换即可。
  1.                 <div class="focus" id="sitefocus">
  2.                         <h3 class="flb">
  3.                                 <em><img src="{IMGDIR}/focuslogo.gif" align="absmiddle"><!--{if $_G['cache']['focus']['title']}-->{$_G['cache']['focus']['title']}<!--{else}-->{lang focus_hottopics}<!--{/if}--></em>
  4.                                 <span><a href="javascript:;" onclick="setcookie('nofocus_$focusid', 1, 86400);$('sitefocus').style.display='none'" class="flbc" title="{lang close}">{lang close}</a></span>
  5.                         </h3>
  6.                         <hr class="l" />
  7.                         <div class="detail">
  8.                                 <h4><a href="{$focus['url']}" target="_blank">$focus['subject']</a></h4>
  9.                                 <!--{if $focus[image]}-->
  10.                                 <div class="tipsimg">
  11.                                         <a href="{$focus['url']}" target="_blank"><img src="{$focus['image']}" onload="thumbImg(this, 1)" _width="112" _height="92" /></a>
  12.                                 </div>
  13.                                 <div class="tipscon">
  14.                                         <p>$focus['summary'] <a href="{$focus['url']}" target="_blank">{lang focus_show}</a></p>
  15.                                 </div>
  16.                                 <!--{else}-->
  17.                                 <p>
  18.                                         $focus['summary'] <a href="{$focus['url']}" target="_blank">{lang focus_show}</a>
  19.                                 </p>
  20.                                 <!--{/if}-->
  21.                         </div>
  22.                 </div>
复制代码
3、上传附件中的图片到论坛static\image\common目录(直接上传,不会有覆盖


提问一:我想让这个站长推荐每次都弹出,而不是关闭后刷新就不弹出怎么办?
回答:
打开:template\default\common\footer.htm
找到
  1. setcookie('nofocus_$focusid', 1, 86400);
复制代码
删除即可
或者不删除直接修改86400这个数值即可,86400表示关闭后86400秒内不在弹出。

提问二:如何修改“站长推荐”这几个字呢?
回答:后台-扩展-站长推荐-设置

更多美化:
仿官方最新登录美化for DiscuzX1.5
https://discuz.dismall.com/thread-1998659-1-1.html



本帖子中包含更多资源

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

x

评分

2

查看全部评分

sthy 发表于 2010-12-7 11:45:02 | 显示全部楼层
支持发布!顶了
回复

使用道具 举报

体无完肤 发表于 2010-12-7 11:47:28 | 显示全部楼层
回复 imgen 的帖子

为啥截图是DRC??
回复

使用道具 举报

dzjzn 发表于 2010-12-7 11:47:43 | 显示全部楼层
我需要
回复

使用道具 举报

 楼主| imgen 发表于 2010-12-7 11:48:48 | 显示全部楼层
回复 体无完肤 的帖子

因为我的已经改了 而我又刚好在DRC逛呢 所以就顺便截了个图 你不介意吧?
回复

使用道具 举报

体无完肤 发表于 2010-12-7 11:49:43 | 显示全部楼层
回复 imgen 的帖子

不介意~  
回复

使用道具 举报

sthy 发表于 2010-12-7 11:52:46 | 显示全部楼层
回复

使用道具 举报

sthy 发表于 2010-12-7 11:53:09 | 显示全部楼层
我也在7DRC逛呢
回复

使用道具 举报

hongjun521 发表于 2010-12-7 12:02:10 | 显示全部楼层
支持放出
回复

使用道具 举报

厦门7788 发表于 2010-12-7 12:03:32 | 显示全部楼层
严重支持一下
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-6-18 09:51 , Processed in 0.836652 second(s), 22 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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