[問題]如何加裝檔案上傳(附加檔案)的功能(重新發問)??

phpBB 2 MOD Support
無論是官方或非官方認證之外掛,安裝與使用問題討論。
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群

米酒
星球普通子民
星球普通子民
文章: 10
註冊時間: 2003-07-23 17:23

[問題]如何加裝檔案上傳(附加檔案)的功能(重新發問)??

文章 米酒 »

版本:phpbb 2.05
os:WINDOWS xp
原始版本並沒有這項功能,可能是要加裝mod???
如果是要加裝mod,不知要如何加裝??
看了jimmychu兄的說明,檔案也下載了,也了解到如何設定,但卻不知道從那裏修改??
http://phpbb-tw.net/phpbb/viewtopic.php?t=14224
請諸位先進能予解說
翻到stevesammi 兄的主題,依據install.txt的說明修改所有的檔案,為何還是無此功能??基本組能裏也沒該設定
另下載MOD解壓後,產生attach_mod的目錄,裡面的檔案請問要如何置換??

Sorry 前次發錯版,重新發問,謝謝
米酒
星球普通子民
星球普通子民
文章: 10
註冊時間: 2003-07-23 17:23

文章 米酒 »

依據install.txt修改後,整個站完全掛掉了,錯誤訊息\r

Fatal error: Cannot redeclare attach_sql_query() (previously declared in c:\appserv\www\phpbb\attach_mod\includes\functions_includes.php:31) in c:\appserv\www\phpbb\attach_mod\includes\functions_includes.php on line 31

請問這個錯誤出在那裏??
頭像
johnkk
星球公民
星球公民
文章: 234
註冊時間: 2003-02-21 19:15
來自: 來自蝸牛鎮
聯繫:

文章 johnkk »

你是不是沒設資料庫呀!!
還是你資料庫沒設對...
查查看~~資料庫內~~是不是沒有attach 的 tabl呀!!
對Red Hat Linux還是一位新手..
但決不會因為難而放棄的
越是難搞越有興趣~^.^~

歡迎參觀我的網站
http://www.snailtown.idv.tw/
圖檔

●架設主機作業系統:Linux
●網站連結: http://www.snailtown.idv.tw/
●您的上網方式:ADSL
●您安裝的程式:Apache + php + MySql
●您的 phpBB2 版本:2.015
米酒
星球普通子民
星球普通子民
文章: 10
註冊時間: 2003-07-23 17:23

文章 米酒 »

從MYSQL看到有關attach的資料庫計有
phpbb_attach_quota
phpbb_attachments
phpbb_attachments_config
phpbb_attachments_desc
是不是還要設其他的資料庫\r
我從安裝(執行mod_table_inst.php)所顯示的訊息都是正常\r
但修改其他的PHP檔後,就出現以上的訊息,整個站就掛了,經檢查修改的PHP檔也都正確\r
現在就真的不知道錯在那裏了!!!!
米酒
星球普通子民
星球普通子民
文章: 10
註冊時間: 2003-07-23 17:23

文章 米酒 »

解決了,問了幾天,除johnkk兄的回覆,也未見其他人協助,不知是沒人安裝這個mod,還是大家看不懂我的問題!! :evil:
不過卻也因此找到一個三分鐘安裝這個mod的方法,當然前題是尚未安裝其他外掛 :mrgreen:
方法在下一篇,此篇純粹有點發牢騷 :cry:
米酒
星球普通子民
星球普通子民
文章: 10
註冊時間: 2003-07-23 17:23

[教學]三分鐘安裝檔案下載的mod

文章 米酒 »

嚴重警告:必須沒有安裝其他mod才能使用
Mod Title: File Attachment Mod v2
Mod Version: 2.3.8
NO.1
先下載檔案,並解壓縮(廢話)
網站位置:http://www.opentools.de/board/viewtopic ... 262&page=4

NO.2
將整個目錄及檔案COPY到PHPBB的目錄下(資料夾名稱:attach_mod)

NO3.
製作一個批次檔(FILE.BAT),放到PHPBB的目錄下,(該拷貝那些資料,請看attach_mod\docs\install.doc)
不想看的就將下列這些copy到你的bat檔
-------開始------------------

copy attach_mod
oot\download.php download.php
copy attach_mod
oot\uacp.php uacp.php
copy attach_mod
oot\admin\admin_attach_cp.php admin\admin_attach_cp.php
copy attach_mod
oot\admin\admin_attachments.php admin\admin_attachments.php
copy attach_mod
oot\admin\admin_extensions.php admin\admin_extensions.php
copy attach_mod
oot\attach_mod\attach_rules.php attach_mod\attach_rules.php
copy attach_mod
oot\attach_mod\attachment_mod.php attach_mod\attachment_mod.php
copy attach_mod
oot\attach_mod\displaying.php attach_mod\displaying.php
copy attach_mod
oot\attach_mod\index.htm attach_mod\index.htm
copy attach_mod
oot\attach_mod\pm_attachments.php attach_mod\pm_attachments.php
copy attach_mod
oot\attach_mod\posting_attachments.php attach_mod\posting_attachments.php
copy attach_mod
oot\attach_mod\includes\constants.php attach_mod\includes\constants.php
copy attach_mod
oot\attach_mod\includes\functions_admin.php attach_mod\includes\functions_admin.php
copy attach_mod
oot\attach_mod\includes\functions_attach.php attach_mod\includes\functions_attach.php
copy attach_mod
oot\attach_mod\includes\functions_delete.php attach_mod\includes\functions_delete.php
copy attach_mod
oot\attach_mod\includes\functions_filetypes.php attach_mod\includes\functions_filetypes.php
copy attach_mod
oot\attach_mod\includes\functions_includes.php attach_mod\includes\functions_includes.php
copy attach_mod
oot\attach_mod\includes\functions_selects.php attach_mod\includes\functions_selects.php
copy attach_mod
oot\attach_mod\includes\functions_thumbs.php attach_mod\includes\functions_thumbs.php
copy attach_mod
oot\attach_mod\includes\index.htm attach_mod\includes\index.htm
copy attach_mod
oot\files\index.php files\index.php
copy attach_mod
oot\images\icon_clip.gif images\icon_clip.gif
copy attach_mod
oot\images\icon_disk.gif images\icon_disk.gif
copy attach_mod
oot\images\icon_disk_gray.gif images\icon_disk_gray.gif
copy attach_mod
oot\templates\subSilver\add_attachment_body.tpl templates\subSilver\add_attachment_body.tpl
copy attach_mod
oot\templates\subSilver\posted_attachments_body.tpl templates\subSilver\posted_attachments_body.tpl
copy attach_mod
oot\templates\subSilver\posting_attach_body.tpl templates\subSilver\posting_attach_body.tpl
copy attach_mod
oot\templates\subSilver\posting_attach_rules.tpl templates\subSilver\posting_attach_rules.tpl
copy attach_mod
oot\templates\subSilver\uacp_body.tpl templates\subSilver\uacp_body.tpl
copy attach_mod
oot\templates\subSilver\viewtopic_attach_body.tpl templates\subSilver\viewtopic_attach_body.tpl
copy attach_mod
oot\templates\subSilver\admin\attach_cat_body.tpl templates\subSilver\admin\attach_cat_body.tpl
copy attach_mod
oot\templates\subSilver\admin\attach_cp_attachments.tpl templates\subSilver\admin\attach_cp_attachments.tpl
copy attach_mod
oot\templates\subSilver\admin\attach_cp_body.tpl templates\subSilver\admin\attach_cp_body.tpl
copy attach_mod
oot\templates\subSilver\admin\attach_cp_search.tpl templates\subSilver\admin\attach_cp_search.tpl
copy attach_mod
oot\templates\subSilver\admin\attach_cp_user.tpl templates\subSilver\admin\attach_cp_user.tpl
copy attach_mod
oot\templates\subSilver\admin\attach_extension_groups.tpl templates\subSilver\admin\attach_extension_groups.tpl
copy attach_mod
oot\templates\subSilver\admin\attach_extensions.tpl templates\subSilver\admin\attach_extensions.tpl
copy attach_mod
oot\templates\subSilver\admin\attach_forbidden_extensions.tpl templates\subSilver\admin\attach_forbidden_extensions.tpl
copy attach_mod
oot\templates\subSilver\admin\attach_manage_body.tpl templates\subSilver\admin\attach_manage_body.tpl
copy attach_mod
oot\templates\subSilver\admin\attach_quota_body.tpl templates\subSilver\admin\attach_quota_body.tpl
copy attach_mod
oot\templates\subSilver\admin\attach_shadow.tpl templates\subSilver\admin\attach_shadow.tpl
copy attach_mod
oot\templates\subSilver\admin\extension_groups_permissions.tpl templates\subSilver\admin\extension_groups_permissions.tpl

-----結束----------
最後由 米酒 於 2003-08-03 00:17 編輯,總共編輯了 1 次。
ethan
星球公民
星球公民
文章: 218
註冊時間: 2002-06-01 09:48
聯繫:

文章 ethan »

米酒 寫:依據install.txt修改後,整個站完全掛掉了,錯誤訊息\r

Fatal error: Cannot redeclare attach_sql_query() (previously declared in c:\appserv\www\phpbb\attach_mod\includes\functions_includes.php:31) in c:\appserv\www\phpbb\attach_mod\includes\functions_includes.php on line 31

請問這個錯誤出在那裏??
redeclare 表示你的 function attach_sql_query() 重複宣告了
米酒
星球普通子民
星球普通子民
文章: 10
註冊時間: 2003-07-23 17:23

文章 米酒 »

NO.4
在attach_mod下在建一個目錄"includes"

no.5
執行你剛剛建的批次檔(FILE.BAT)

no.6
copy :
attach_mod/root/install/mod_table_inst.php
到php目錄下的INSTALL目錄,如果已刪除,請重新建立(以下同)
install/mod_table_inst.php

copy:
attach_mod/root/install/schemas/attach_mysql_schema.sql
attach_mod/root/install/schemas/attach_mysql_basic.sql
到\r
install/schemas/

no.7
執行(建立資料庫)
http://你的網址/phpBB2/install/mod_table_inst.php

NO.8
複製\r
attach_mod\contrib\phpbb_attach\*.*(包含下面的資料夾)
到phpbb的安裝目錄下,全部覆蓋(因為覆蓋,所以你如果有加裝其他mod,將會全部不見)

no.9
刪除attach_mod下的contrib目錄及root\install目錄

NO.10
大功完成,一個檔案都不需動手去改\r
ps.如果要中文,記得要安裝語系檔 :mrgreen:
米酒
星球普通子民
星球普通子民
文章: 10
註冊時間: 2003-07-23 17:23

文章 米酒 »

ethan 寫:
米酒 寫:依據install.txt修改後,整個站完全掛掉了,錯誤訊息\r

Fatal error: Cannot redeclare attach_sql_query() (previously declared in c:\appserv\www\phpbb\attach_mod\includes\functions_includes.php:31) in c:\appserv\www\phpbb\attach_mod\includes\functions_includes.php on line 31

請問這個錯誤出在那裏??
redeclare 表示你的 function attach_sql_query() 重複宣告了
我懷疑是否沒有將所有檔案安裝完成,因為第一次安裝時,我並沒有將attach_mod
整個複製到phpbb的目錄下,只是複製INSTALL.txt的說明那些檔案
第二次,則將整個目錄複製到phpbb的目錄,問題就解決了 :?:
Deltakit
星球普通子民
星球普通子民
文章: 18
註冊時間: 2003-08-02 22:29

文章 Deltakit »

怎樣整FILE.BAT?
米酒
星球普通子民
星球普通子民
文章: 10
註冊時間: 2003-07-23 17:23

文章 米酒 »

Deltakit 寫:怎樣整FILE.BAT?
開啟記事本,將no.3 copy....的內容複製到記事本,存檔,記得副檔名要bat,才能執行
頭像
日京三子
星球普通子民
星球普通子民
文章: 14
註冊時間: 2002-04-16 08:25
來自: 綠野仙蹤
聯繫:

文章 日京三子 »

看完米酒前輩的安裝經過, 真是令人覺得感動.... 因為前輩第一次的錯誤跟我一樣 :cry:


但是, 我在跟著前輩的步驟安裝之後, 錯誤訊息已經不見了; 但是, 我附加檔案的功能卻依然沒有運作 :evil: 在發表文章的時候, 相關的選項按鈕並沒有出現在網頁上頭; 在控制台裡面, 關於attachmod的部份, 有著怪異的畫面(選項中沒有字, 不然就是選項空白)

不知道還有甚麼方法可以檢測呢?
米酒
星球普通子民
星球普通子民
文章: 10
註冊時間: 2003-07-23 17:23

文章 米酒 »

檢查一下是否有以下目錄,
phpbb2/attach_mod/includes/
phpbb2/files/
該目錄的內容如下:
to attach_mod/includes/constants.php
attach_mod/includes/functions_admin.php
attach_mod/includes/functions_attach.php
attach_mod/includes/functions_delete.php
attach_mod/includes/functions_filetypes.php
attach_mod/includes/functions_includes.php
attach_mod/includes/functions_selects.php
attach_mod/includes/functions_thumbs.php
attach_mod/includes/index.htm

files/index.php

另外請參考 jimmychu 兄這篇發表
http://phpbb-tw.net/phpbb/viewtopic.php?t=14224

重點如下:
修改c:\winnt\php.INI
;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
upload_tmp_dir = C:\AppServ\www\phpbb\files <<<<==改成有顏色的字

; Maximum allowed size for uploaded files.
upload_max_filesize = 2M


真的不行,建議你重新安裝,刪除phpbb的目錄,如果沒有資料的話,連mysql的資料檔一併刪除,一定可以的,因為今天我用另一部電腦重裝一次,也是沒問題的[/code]
頭像
godbless
竹貓忠實會員
竹貓忠實會員
文章: 647
註冊時間: 2002-05-17 06:02
來自: 台北市南京東路4段
聯繫:

文章 godbless »

建議你裝PLUS比較快!
所有相關連結都在我的簽名檔裡面!
外掛問題區發問格式就在這裡,請務必一定照著格式來~!
你不照著規則來,就算是也搞不清楚你的問題在哪裡!
新手問問題不是罪惡
罪惡的是自己沒有先做好本分和功課,說話的口氣也不好,再加上態度有好像我們這群人欠你多少似的~~!!
竹貓星球發問規則:
http://phpbb-tw.net/phpbb/viewtopic.php?t=16149
發問比率最高的句子翻譯:
Please ensure both the install/ and contrib/ directories are deleted
請確認install和contrib資料夾已被刪除(奇怪,翻一下英漢字典有這麼困難嗎)
頭像
日京三子
星球普通子民
星球普通子民
文章: 14
註冊時間: 2002-04-16 08:25
來自: 綠野仙蹤
聯繫:

文章 日京三子 »

各位好!


先多謝各位前輩給予的指點, 小弟先在這邊說聲謝謝! 小弟在今天又重新把資料庫刪除重新建立系統, 安裝phpBB的時候, 進入"控制台"是正常無誤的; 但一旦開始安裝attach_mod, 不僅在網頁裡面想要附加檔案時找不到選項, 在控制台裡面會出現General Error An Error Occurred 的錯誤回應. 小弟在想, 軟體應該是沒問題, 因為各位前輩都可以正常安裝l 所以我想會不會是因為我用的平台是Linux , 所以這部份就造成了問題?

不過小弟在原始作者的網頁上翻找了一下, 好像沒有看到相關的訊息回報... 該不會是我系統那裡建制不完全才會有這種怪異現象吧?

有用RedHat 9.0安裝Attach_Mod成功的前輩嘛? :cry:
主題已鎖定

回到「外掛問題討論」