AL8 Forum
   登錄註冊幫助


標題: 【插件發布】單貼多附件上傳繁體
 RINGOYAU
 0000081
Rank: 4Rank: 4Rank: 4Rank: 4

頭銜: Lord

帖子: 387

精華: 7

積分: 29620 點

現金: 923 元

存款: 37634 元

閱讀權限: 25

註冊: 2004-1-9

狀態: 離線
 
發表於 2004-7-11 12:27  資料  個人空間  短消息  加為好友 
【插件發布】單貼多附件上傳繁體

==========================================
插件名稱:單貼多附件上傳
適應版本:Discuz 2.0
程式版本:1.00
最後更新:2004-07-06  17:00
程式製作:FFYY
修改程式:admin/settings.php,include/cache.php,include/newthread.php,include/newreply,include/editpost.php,include/post.php,viewthread.php,attachment.php,templates.lang.php
修改模版:post_newthread.htm,post_newreply.htm,post_editpost.htm,viewthread.htm
效率影響:queries +0,Processed +?
難易程度:難
程式演示:http://ffyy.mmoclan.com/forum/forumdisplay.php?fid=5
程式截圖:有
功能描述:1.後臺設置單次最大上傳附件個數
          2.發貼、回復可上傳多附件
          3.編輯可保留、刪除舊附件,上傳新附件
          4.圖片和flash動畫顯示方式未變,其他格式附件以表格方式顯示,見附圖。
==========================================

這個插件可能有bugs,請到
http://old.freediscuz.net/phpbbs ... age=1&tid=18871

告之



 附件: 您所在的用戶組無法下載或查看附件



 AL8 Forum © All rights reserved.
頂部
 tankyforum
 0000960
Rank: 2Rank: 2

頭銜: Member

帖子: 88

精華: 0

積分: 4315 點

現金: 251 元

存款: 156 元

閱讀權限: 15

註冊: 2004-3-28

來自: tankyfo ...

狀態: 離線
 
發表於 2004-7-19 01:52  資料  個人空間  主頁 短消息  加為好友 
Parse error: parse error in /hda/wwwroot/tankyforum.com/www/discuz/viewthread.php on line 372


點算




http://tankyforum.com
 AL8 Forum © All rights reserved.
頂部
 alan888
 0000001
Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9

頭銜: Administrator

自述: skywalker

帖子: 21876

精華: 195

積分: 558085 點

現金: 78355948 元

存款: 144392954 元

閱讀權限: 120

註冊: 2003-11-13

來自: Hong Kong

狀態: 離線
 
發表於 2004-7-19 02:26  資料  個人空間  主頁 短消息  加為好友 
這個插件可能有bugs,請到
http://www.freediscuz.net/phpbbs ... age=1&tid=18871




 AL8 Forum © All rights reserved.
頂部
 tankyforum
 0000960
Rank: 2Rank: 2

頭銜: Member

帖子: 88

精華: 0

積分: 4315 點

現金: 251 元

存款: 156 元

閱讀權限: 15

註冊: 2004-3-28

來自: tankyfo ...

狀態: 離線
 
發表於 2004-7-19 02:39  資料  個人空間  主頁 短消息  加為好友 
QUOTE:
引用由 alan888 於 2004-7-19 02:26 AM 發出的帖子, 內容為
這個插件可能有bugs,請到
http://www.freediscuz.net/phpbbs ... age=1&tid=18871



呢個得左

但我用唔到 反盜鏈

Parse error: parse error in /hda/wwwroot/tankyforum.com/www/discuz/attachment.php on line 73




http://tankyforum.com
 AL8 Forum © All rights reserved.
頂部
 stephenkings
 0002231
Rank: 1

頭銜: Newbie

帖子: 34

精華: 0

積分: 49 點

現金: 2 元

存款: 0 元

閱讀權限: 10

註冊: 2004-5-22

狀態: 離線
 
發表於 2004-8-20 14:27  資料  個人空間  短消息  加為好友 
111111111111111111111111




 AL8 Forum © All rights reserved.
頂部
 stephenkings
 0002231
Rank: 1

頭銜: Newbie

帖子: 34

精華: 0

積分: 49 點

現金: 2 元

存款: 0 元

閱讀權限: 10

註冊: 2004-5-22

狀態: 離線
 
發表於 2004-8-20 14:27  資料  個人空間  短消息  加為好友 
謝謝!!!




 AL8 Forum © All rights reserved.
頂部
 yws
 0001940
Rank: 4Rank: 4Rank: 4Rank: 4
點擊查看 yws 的詳細資料

頭銜: Lord

帖子: 463

精華: 0

積分: 5208 點

現金: 657 元

存款: 63000 元

閱讀權限: 25

註冊: 2004-5-12

狀態: 離線
 
發表於 2004-8-31 20:29  資料  個人空間  短消息  加為好友 
QUOTE:
引用由 alan888 於 2004-7-19 02:26 AM 發出的帖子, 內容為
這個插件可能有bugs,請到
http://www.freediscuz.net/phpbbs ... age=1&tid=18871


但係簡體字wor..




 AL8 Forum © All rights reserved.
頂部
 2486
 0005146
 此發帖者已被禁止訪問

頭銜: Banned

帖子: 27

精華: 0

積分: 747 點

現金: 151 元

存款: 10 元

閱讀權限: 0

註冊: 2004-8-7

狀態: 離線
 
發表於 2004-9-20 16:06  資料  個人空間  短消息  加為好友 
*** 作者被禁止或刪除 內容自動屏蔽 ***
 ah_wing
 0007167
Rank: 1

頭銜: Newbie

帖子: 8

精華: 0

積分: 240 點

現金: 6 元

存款: 0 元

閱讀權限: 10

註冊: 2004-9-10

狀態: 離線
 
發表於 2004-9-20 16:34  資料  個人空間  短消息  加為好友 
thanks




 AL8 Forum © All rights reserved.
頂部
 Joana
 0008983
Rank: 1

頭銜: Newbie

帖子: 2

精華: 0

積分: 79 點

現金: 0 元

存款: 0 元

閱讀權限: 10

註冊: 2004-10-2

狀態: 離線
 
發表於 2004-10-3 00:41  資料  個人空間  短消息  加為好友 
咁究竟呢個有無bugs??




 AL8 Forum © All rights reserved.
頂部
 楊亦寶
 0008842
Rank: 3Rank: 3Rank: 3
點擊查看 楊亦寶 的詳細資料

頭銜: Conqueror

帖子: 250

精華: 0

積分: 6329 點

現金: 13 元

存款: 0 元

閱讀權限: 20

註冊: 2004-9-30

狀態: 離線
 
發表於 2004-10-11 18:53  資料  個人空間  短消息  加為好友 
好難啵咁改..............




 AL8 Forum © All rights reserved.
頂部
 逍遙悠
 0001148
Rank: 3Rank: 3Rank: 3

頭銜: Conqueror

帖子: 158

精華: 0

積分: 6050 點

現金: 62 元

存款: 748 元

閱讀權限: 20

註冊: 2004-4-11

狀態: 離線
 
發表於 2004-10-12 05:22  資料  個人空間  短消息  加為好友  添加 逍遙悠 為MSN好友 通過MSN和 逍遙悠 交談
很想來安裝看看  但是前不夠了阿.........




 AL8 Forum © All rights reserved.
頂部
 paullee121
 0010147
Rank: 1

頭銜: Newbie

帖子: 1

精華: 0

積分: 30 點

現金: 90 元

存款: 0 元

閱讀權限: 10

註冊: 2004-10-20

狀態: 離線
 
發表於 2004-10-20 23:49  資料  個人空間  短消息  加為好友 
Thanks for your sharing... I need this hack, really.... Nice program and say thank you very much, again...




 AL8 Forum © All rights reserved.
頂部
 goddess
 0009083
Rank: 1

頭銜: Newbie

帖子: 16

精華: 0

積分: 280 點

現金: 32 元

存款: 285 元

閱讀權限: 10

註冊: 2004-10-4

狀態: 離線
 
發表於 2004-11-3 15:27  資料  個人空間  主頁 短消息  加為好友 
www.freediscuz.net停左站~~~dv_vb




森!!靈醫務所
http://goddesstony.no-ip.com:81
 AL8 Forum © All rights reserved.
頂部
 Key
 0010060
Rank: 3Rank: 3Rank: 3

頭銜: Conqueror

帖子: 141

精華: 0

積分: 3867 點

現金: 242 元

存款: 0 元

閱讀權限: 20

註冊: 2004-10-18

狀態: 離線
 
發表於 2004-11-3 21:13  資料  個人空間  短消息  加為好友 
好想用
又驚有bugs




 AL8 Forum © All rights reserved.
頂部
 Virus
 0011455
Rank: 1

頭銜: Newbie

帖子: 38

精華: 0

積分: 530 點

現金: 157 元

存款: 319 元

閱讀權限: 10

註冊: 2004-11-13

狀態: 離線
 
發表於 2004-11-25 17:23  資料  個人空間  短消息  加為好友 
好多file要考...不過多謝先~




 AL8 Forum © All rights reserved.
頂部
 cobobo
 0004723
Rank: 3Rank: 3Rank: 3

頭銜: Conqueror

帖子: 171

精華: 2

積分: 5400 點

現金: 19 元

存款: 0 元

閱讀權限: 20

註冊: 2004-7-27

狀態: 離線
 
發表於 2004-12-4 17:55  資料  個人空間  短消息  加為好友 
小弟單貼多附件插件大致上是成功了…
可是小弟有發現二個小問題…
就是下載次數…和下載名單…二個數字都是"0"耶…
且沒辦法顯示出下載者。
有下載過…數字都沒有增加…
請問各位大大…應該從哪裡下手更改呢…
先謝謝各位大大^^"




 AL8 Forum © All rights reserved.
頂部
 cobobo
 0004723
Rank: 3Rank: 3Rank: 3

頭銜: Conqueror

帖子: 171

精華: 2

積分: 5400 點

現金: 19 元

存款: 0 元

閱讀權限: 20

註冊: 2004-7-27

狀態: 離線
 
發表於 2004-12-6 18:06  資料  個人空間  短消息  加為好友 
下載次數的問題小弟已經解決了^^"
可是我有安裝過--附件下載名單,這個插件…
有去sql資料庫看過,"dl_users"這個數據有存在sql資料庫中…
可是卻沒辦法顯示出下載者
因為單帖多附件上傳這個插件,有更改過新的參數…
如…
QUOTE:
<a name="pid$post[pid]"></a>

                                <!--{if $postatt[creditsrequire]}-->, {lang creditsrequire_attach} {lang credit_title} $postatt[creditsrequire] {lang credit_unit}<!--{/if}--></span><br>

                                                        </td></tr></table></td></tr></table>
<br>
<!--{if $showdlusers == 'yes' && $postatt['aid']}-->
                              <fieldset><legend align="center"><strong>下 載 名 單 ( $postatt[downloads] )</strong></legend><center>$postatt[dl_users]</center></fieldset>
                              <br><!--{/if}-->

紅色字的地方參數已經不一樣了…

修改viewthread.php
                在头部添加
require_once $discuz_root.'./include/attachment.php';


查找
$querypost = $db->query("SELECT p.*, a.aid AS aaid, a.creditsrequire, a.filetype, a.filename, a.attachment, a.filesize, a.downloads, m.uid, m.username, m.gender, m.status, m.regdate, m.lastvisit, m.postnum, m.credit, m.email, m.site, m.icq, m.oicq, m.yahoo, m.msn, m.location, m.avatar, m.signature, m.customstatus, m.showemail
                                        FROM $table_posts p LEFT JOIN $table_members m ON m.username=p.author LEFT JOIN $table_attachments a ON p.aid<>'0' AND p.aid=a.aid WHERE p.tid='$tid' ORDER BY dateline LIMIT $start_limit, $ppp");


替换为
$querypost = $db->query("SELECT p.*,m.uid, m.username, m.gender, m.status, m.regdate, m.lastvisit, m.postnum, m.credit, m.email, m.site, m.icq, m.oicq, m.yahoo, m.msn, m.location, m.avatar, m.signature, m.customstatus, m.showemail, m.bank, m.money
                                        FROM $table_posts p LEFT JOIN $table_members m ON m.username=p.author  WHERE p.tid='$tid' ORDER BY dateline LIMIT $start_limit, $ppp");


查找(中间要找的内容省略,由你去找匹配的if括号
if($post['aaid']) {
                        ……
                }
                $postlist[] = $post;


替换为
if($post['aid']) {
                        $aids= unserialize(stripslashes($post['aid']));
                        if(is_array($aids)){
                                foreach($aids as $postatt){
                                        $extension = strtolower(substr(strrchr($postatt['filename'], "."), 1));
                                        $postatt['attachicon'] = attachicon($extension."\t".$postatt['filetype']);
                                        //&#36148;子&#20080;&#21334;funciton ========start
                                        $postatt['attachtype'] = attachtype($extension."\t".$postatt['filetype']);
                                           $postatt['attachext'] = $extension;
                                           $postatt['attachsize'] = sizecount($postatt['filesize']);
                                           //&#36148;子&#20080;&#21334;funciton ========end
                                           if($attachimgpost && ($extension == 'jpg' || $extension == 'jpeg' || $extension == 'jpe' || $extension == 'gif' || $extension == 'png' || $extension == 'bmp')) {
                                                $postatt['attachimg'] = 1;
                                        } elseif($attachimgpost && $extension == 'swf') {
                                                $postatt['attachimg'] = 2;
                                        } else {
                                                $postatt['attachimg'] = 0;
                                                /*$post['attachsize'] = sizecount($post['filesize']);&#20080;&#21334;帖hack使原&#30721;&#36825;行&#21024;除*/
                                        }
                                        $post['postatts'][]=$postatt;                                       
                                }
                                                                $post['attnumber']=count($aids);
                        }
                }
                $postlist[] = $post;


請問各位大大…應該從哪裡下手更改呢…
先謝謝各位大大^^"

[ Last edited by cobobo on 2004-12-6 at 18:16 ]




 AL8 Forum © All rights reserved.
頂部
 ◎terry◎
 0011340
Rank: 3Rank: 3Rank: 3

頭銜: Conqueror

帖子: 108

精華: 0

積分: 930 點

現金: 563 元

存款: 4044 元

閱讀權限: 20

註冊: 2004-11-10

狀態: 離線
 
發表於 2004-12-7 21:44  資料  個人空間  短消息  加為好友  ICQ 狀態
thxxxxxxxxxxxx




 AL8 Forum © All rights reserved.
頂部
 vm6
 0012477
Rank: 1

頭銜: Newbie

帖子: 10

精華: 0

積分: 250 點

現金: 1 元

存款: 0 元

閱讀權限: 10

註冊: 2004-12-2

狀態: 離線
 
發表於 2004-12-16 00:44  資料  個人空間  短消息  加為好友  添加 vm6 為MSN好友 通過MSN和 vm6 交談 ICQ 狀態
^^
謝謝




 AL8 Forum © All rights reserved.
頂部