本帖最后由 zhouc 于 2009-2-11 12:32 编辑
插件版本:1.7
开发日期:2009.02.06
修改日期:2009.02.11@12:20
1.5说明
现在支持帖子内的标签下载弹出
支持图片下载弹出
1.6说明
修复安装过程中的bug
1.7版本说明:避免官方会员反馈的错误。
将在所有楼层支持附件弹开
适用环境:Discuz! 7.0 GBK
通用产品,对应修改即可
插件出品:[DST]风中
支持社区:http://www.17dst.com
版权声明:共享,风中 保留全部权利,支持二次开发,修改后请联系作者
使用说明:为了保护您的权利,请确认您是从17DST获取该插件
=================================================
点击前
点击后
=================================================
1.6升级安装:
如果您的模板只安装过这个插件,则请源文件覆盖,然后全新安装1.7.
手工升级:
1. 修改discuzcode.htm
查找
- <div id="down_open_inpost">
- $attach[attachicon] <span style="white-space: nowrap" id="attach_$attach[aid]" onmouseover="showMenu(this.id, false, 2)"><a href="attachment.php?aid=$attach[aid]&k=$k&t=$timestamp&sid=$sidauth" rel="downPop"><strong>$attach[filename]</strong></a></span> ($attach[attachsize])
- </div>
复制代码 替换为
- $attach[attachicon] <span style="white-space: nowrap" id="attach_$attach[aid]" onmouseover="showMenu(this.id, false, 2)"><a href="attachment.php?aid=$attach[aid]&k=$k&t=$timestamp&sid=$sidauth" rel="downPop"><strong>$attach[filename]</strong></a></span> ($attach[attachsize])
复制代码 2. 修改viewthread_node.htm
查找- <div class="postattachlist" id="down_open">
复制代码 删除3.重新上传附件中的downopen.js
1.7全新安装
不再提供直接覆盖安装办法,修改较容易
1,打开风格目录【如果您不想修改默认目录,请复制修改对应风格。缺少文件从默认目录拷贝文件过去再修改】
1.1 修改header.htm
在- <script type="text/javascript" src="include/js/common.js?{VERHASH}"></script>
复制代码 后面添加- <!--{if CURSCRIPT == 'viewthread'}-->
- <script type="text/javascript" src="include/js/downopen.js"></script>
- <!--{/if}-->
复制代码 1.2 修改discuzcode.htm
查找- <p class="imgtitle">
- <a href="attachment.php?aid=$attach[aid]&k=$k&t=$timestamp&fid=$fid&nothumb=yes&sid=$sidauth" onmouseover="showMenu(this.id,false,2)" id="aid$attach[aid]" class="bold" target="_blank">$attach[filename]</a>
- <em>($attach[attachsize])</em>
- </p>
复制代码 替换为- <p class="imgtitle">
- <a href="attachment.php?aid=$attach[aid]&k=$k&t=$timestamp&fid=$fid&nothumb=yes&sid=$sidauth" onmouseover="showMenu(this.id,false,2)" id="aid$attach[aid]" class="bold" rel="downPop" >$attach[filename]</a>
- <em>($attach[attachsize])</em>
- </p>
复制代码 查找
- <dl class="t_attachlist">
- <dt>
- $attach[attachicon]
- </dt>
- <dd>
- <p class="attachname">
- <a href="attachment.php?aid=$attach[aid]&k=$k&t=$timestamp&fid=$fid&sid=$sidauth" onmouseover="showMenu(this.id,false,2)" id="aid$attach[aid]" target="_blank" title="">$attach[filename]</a> ($attach[attachsize])
复制代码 替换为
- <dl class="t_attachlist">
- <dt>
- $attach[attachicon]
- </dt>
- <dd>
- <p class="attachname">
- <a href="attachment.php?aid=$attach[aid]&k=$k&t=$timestamp&fid=$fid&sid=$sidauth" onmouseover="showMenu(this.id,false,2)" id="aid$attach[aid]" rel="downPop" title="">$attach[filename]</a> ($attach[attachsize])
复制代码 查找- $attach[attachicon] <span style="white-space: nowrap" id="attach_$attach[aid]" onmouseover="showMenu(this.id, false, 2)"><a href="attachment.php?aid=$attach[aid]&k=$k&t=$timestamp&sid=$sidauth" target="_blank"><strong>$attach[filename]</strong></a></span> ($attach[attachsize])
复制代码 替换为
- $attach[attachicon] <span style="white-space: nowrap" id="attach_$attach[aid]" onmouseover="showMenu(this.id, false, 2)"><a href="attachment.php?aid=$attach[aid]&k=$k&t=$timestamp&sid=$sidauth" rel="downPop"><strong>$attach[filename]</strong></a></span> ($attach[attachsize])
复制代码 1.3 修改css_common.htm
在文件末尾添加- /*download openpop*/
- #down_block {
- BORDER-RIGHT: #a4cfff 10px solid; BORDER-TOP: #a4cfff 10px solid; Z-INDEX: 100000; BACKGROUND: #fdfdff; LEFT: 50%; MARGIN-LEFT: -190px; OVERFLOW: hidden; BORDER-LEFT: #a4cfff 10px solid; WIDTH: 380px; BORDER-BOTTOM: #a4cfff 10px solid; POSITION: absolute; TOP: 150px; HEIGHT: 280px
- }
- #down_block IMG.pop_ad {
- DISPLAY: block; MARGIN: 10px auto
- }
- #down_block H2 {
- FONT-WEIGHT: 600; FONT-SIZE: 14px; MARGIN: 10px; OVERFLOW: hidden; COLOR: #0066ff; WHITE-SPACE: nowrap
- }
- #down_block P {
- MARGIN: 10px; TEXT-ALIGN: left
- }
- #down_block P IMG {
- MARGIN-RIGHT: 20px
- }
- #down_block A.down_pop_close {
- DISPLAY: block; RIGHT: 10px; BACKGROUND: url({IMGDIR}/close.gif) no-repeat 0 0; OVERFLOW: hidden; WIDTH: 12px; BOTTOM: 15px; TEXT-INDENT: -9999px; POSITION: absolute; HEIGHT: 12px
- }
- #down_block A.down_pop_close:hover {background-position: 0 -12px;}
复制代码 2,下载附件上传到服务器
3,后续修改办法,请到原帖中
http://www.17dst.com/viewthread.php?tid=7349&page=1&extra= |