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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

对“附件上传个数由会员自己选择”的增补D25sp1 by ejew(更新070921)

[复制链接]
ejew 发表于 2005-7-6 16:01:18 | 显示全部楼层 |阅读模式
插件名称:附件上传个数由会员自己选择
修  改 ejew . 伊佳E网
适  用:D2.5Sp1/D2.5应该也可以
安装程度:简易
上传模板:1个
安装需求:本插件以D2.5SP1正式版050401为基础修改
支  持:http://www.ejew.org
演  示:http://www.ejew.org/bbs/viewthread.php?tid=8183
070921更新:当后台设置用户不能设置附件积分时出错的问题,重新上传附件即可



上传附件于风格模板区

post_newthread.htm

  1. <!--{if $allowpostattach && $multiattach}-->
  2. .........
  3. <!--{/if}-->
复制代码

改成

  1. <!--{if $allowpostattach && $multiattach}-->
  2. {template post_attachmentej}
  3. <!--{/if}-->
复制代码


post_newreply.htm

  1. <!--{if $allowpostattach}-->
  2. ........
  3. <!--{/if}-->
复制代码

改成
  1. <!--{if $allowpostattach}-->
  2. {template post_attachmentej}
  3. <!--{/if}-->
复制代码


post_editpost.htm

  1. <tr>
  2. <td colspan="2" class="header">{lang post_editattach}</td>
  3. </tr>
  4.         <!--{if $postinfo['aid']}-->
  5.                 <tr>
  6.                 <td bgcolor="{ALTBG1}" valign="top">{lang attachment} <span class="smalltxt">({lang lower_than} $maxattachsize_kb kb)</span>:</td>
  7.                 <td bgcolor="{ALTBG2}" class="smalltxt"><b>{lang curr_attachment}</b><br>
  8.                 <!--{loop $postinfo[attach_list] $vkey $attach}-->
  9.                         &nbsp;<!--{echo $vkey+1 }--> : {lang delete}<input type="checkbox" name="deleteaids[]" value="$attach[aid]" >
  10.                         <!--{if $allowsetattachperm}-->&nbsp;{lang require}{lang credit_title} <input type="text" name="origattachperm[{$attach[aid]}]" value="$attach[creditsrequire]" size="5">
  11.                         <!--{/if}-->
  12.                         &nbsp;&nbsp; $attach[attachicon] &nbsp;<a href="attachment.php?aid=$attach[aid]&checkid=$attach[checkid]&download=1" target="_blank">$attach[filename]</a>  ($attach['dateline'],&nbsp;$attach[attachsize])&nbsp;&nbsp;<br>
  13.                 <!--{/loop}-->
  14.                 <hr size="1" noshadow color={BORDERCOLOR}>
  15.                 <span class="bold">{lang attachment_add}</span><br>
  16.                 <!--{loop $multiattach $temp}-->
  17.                         <!--{if $allowsetattachperm}-->&nbsp;{lang require} {lang credit_title} <input type="text" name="attachperm[]" value="0" size="5" >&nbsp;<!--{/if}-->
  18.                         <input type="file" name="attach[]">
  19.                         <!--{if $attachextensions}--><br><br>{lang attachment_allow_exts}: $attachextensions<!--{/if}--><br>
  20.                 <!--{/loop}-->
  21.                         </td></tr>
  22.         <!--{else}-->
  23.                 <!--{loop $multiattach $temp}-->
  24.                 <tr>
  25.                 <td bgcolor="{ALTBG1}">{lang attachment} <span class="smalltxt">({lang lower_than} $maxattachsize_kb kb)</span>:</td>
  26.                 <td bgcolor="{ALTBG2}" class="smalltxt"><input type="hidden" name="attachedit" value="new">
  27.                 <!--{if $allowsetattachperm}-->&nbsp;{lang require} {lang credit_title} <input type="text" name="attachperm[]" value="0" size="5">&nbsp;<!--{/if}-->
  28.                 <input type="file" name="attach[]" size="40">
  29.                 <!--{if $attachextensions}--><br><br>{lang attachment_allow_exts}: $attachextensions<!--{/if}-->
  30.                 </td></tr>
  31.                 <!--{/loop}-->
  32.         <!--{/if}-->
复制代码

均改成
  1. <table border="0" cellspacing="{BORDERWIDTH}" cellpadding="{TABLESPACE}" width="100%">
  2.         <!--{if $postinfo['aid']}-->
  3. <tr>
  4. <td colspan="2" class="header">{lang curr_attachment}</td>
  5. </tr>
  6.                 <tr>
  7.                 <td bgcolor="{ALTBG1}" valign="top">{lang attachment} <span

  8. class="smalltxt">({lang lower_than} $maxattachsize_kb kb)</span>:</td>
  9.                 <td bgcolor="{ALTBG2}" class="smalltxt">
  10.                 <!--{loop $postinfo[attach_list] $vkey $attach}-->
  11.                         &nbsp;<!--{echo $vkey+1 }--> : {lang delete}<input type="checkbox"

  12. name="deleteaids[]" value="$attach[aid]" >
  13.                         <!--{if $allowsetattachperm}-->&nbsp;{lang require}{lang

  14. credit_title} <input type="text" name="origattachperm[{$attach[aid]}]"

  15. value="$attach[creditsrequire]" size="5">
  16.                         <!--{/if}-->
  17.                         &nbsp;&nbsp; $attach[attachicon] &nbsp;<a

  18. href="attachment.php?aid=$attach[aid]&checkid=$attach[checkid]&download=1"

  19. target="_blank">$attach[filename]</a>  

  20. ($attach['dateline'],&nbsp;$attach[attachsize])&nbsp;&nbsp;<br>
  21.                 <!--{/loop}-->
  22. </td></tr>

  23. {template post_attachmentej}

  24.         <!--{else}-->
  25. {template post_attachmentej}
  26.         <!--{/if}-->
复制代码

[ 本帖最后由 ejew 于 2005-8-3 20:08 编辑 ]

本帖子中包含更多资源

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

x
 楼主| ejew 发表于 2005-7-6 16:01:35 | 显示全部楼层
二楼占位

070921更新:当后台设置用户不能设置附件积分时出错的问题,重新上传附件即可

[ 本帖最后由 ejew 于 2005-7-9 21:12 编辑 ]
回复

使用道具 举报

zhuanwang 发表于 2005-7-7 11:47:12 | 显示全部楼层
这个插件也有同样的问题,虽然我在后台设置了除乞丐外任何人都可以发附件,但我用管理员登录可以看到附件浏览框子能发附件,但用别的名字登录就不能发附件了,看不到附件浏览框
回复

使用道具 举报

zhuanwang 发表于 2005-7-7 11:49:39 | 显示全部楼层
请把这个问题解决一下,因为在我的论坛上,附件主要是用来发图的,觉得2.5的发图特不好用,有没有好的插件?
回复

使用道具 举报

 楼主| ejew 发表于 2005-7-7 16:15:48 | 显示全部楼层
没问题啊,我在本地,及其它的空间测试过了,正常,是否后台用户组没有设置好?
回复

使用道具 举报

zhuanwang 发表于 2005-7-8 00:47:20 | 显示全部楼层
后台用户组绝对没问题 但我安装过其他的插件 改过一些代码 不知道是不是这原因 我的QQ9305713 希望楼主能联系一下  如果能解决问题 有酬谢。
回复

使用道具 举报

 楼主| ejew 发表于 2005-7-8 02:14:05 | 显示全部楼层
你不在线哦
回复

使用道具 举报

tomsina 发表于 2005-7-8 06:53:58 | 显示全部楼层
非常感谢
回复

使用道具 举报

zhuanwang 发表于 2005-7-8 13:13:02 | 显示全部楼层
原帖由 ejew 于 2005-7-8 02:14 发表
你不在线哦

我的QQ有时候隐身,现在上线了,或者说一下你的QQ,我加你
回复

使用道具 举报

飞天蛙 发表于 2005-7-9 00:15:28 | 显示全部楼层
到底能不能用啊
关注中
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-5 01:39 , Processed in 0.233411 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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