Title: BP Group Documents
Author: lenasterg
Published: <strong>2013 年 8 月 30 日</strong>
Last modified: 2025 年 7 月 10 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://s.w.org/plugins/geopattern-icon/bp-group-documents.svg)

# BP Group Documents

 由 [lenasterg](https://profiles.wordpress.org/lenasterg/) 開發

[下載](https://downloads.wordpress.org/plugin/bp-group-documents.2.1.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/bp-group-documents/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/bp-group-documents/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/bp-group-documents/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/bp-group-documents/#developers)

 [技術支援](https://wordpress.org/support/plugin/bp-group-documents/)

## 外掛說明

BP Group Documents creates a page within each BuddyPress group to upload and any
type of file or document. This allows members of BuddyPress groups to upload and
store files and documents that are relevant to the group.

Documents can be edited and deleted either by the document owner or by the group
administrator.
 Categories can be used to organize documents. Activity is logged
in the main activity stream, and is also tied to the user and group activity streams.
The site administrator can set filters on file extensions, set display options. 
Group members and moderators can receive email notifications at their option. The
group administrator can decide if all members or only admins/moderators can upload
documents (Since v0.5) User verification for Downloads: when a document is downloaded,
a redirect page checks is the user is member of the group (in case of a private 
or hidden groups) and only then the user can download the file.(Since v0.5) For 
private networks, see the FAQ “I have a members only network. How to disable file
download for non members?” .

4 Widgets: “User’s groups documents”, “Recent Uploads” , “Popular Downloads”, can
be used to show activity at a glance. If the theme support different sidebars for
group pages, the BP_Group_Documents_CurrentGroup_Widget can be used to show current
group’s documents.

Contributions by Lena Stergatou, with additional bug fixes and improvements by Keeble
Smith (http://keeblesmith.com) and Anton Andreasson work for BP 1.7.

Original plugin author was Peter Anselmo.

PLEASE: If you have any issues or it doesn’t work for you, please report in support
forum. It doesn’t help anyone to mark “broken” without asking around. Thanks!

### Notes

Roadmap.txt – contains ideas proposed and the (approximate) order of implementation

History.txt – contains all the changes since version .1

License.txt – contains the licensing details for this component.

## 螢幕擷圖

 * [[
 * Admin settings page
 * [[
 * Documents settings page on group creation
 * [[
 * Upload document form
 * [[
 * Document list tab
 * [[
 * Ties into site activity stream (for public groups only)
 * [[
 * Group admin document’s settings tab, allow category’s edit, addition
 * [[
 * User options for email notifications
 * [[
 * Widget Recent Documents from your groups and Widget Popular Group Documents
 * [[
 * Message when non member of a private or hidden group tries to access a group 
   document

## 安裝方式

Make sure WordPress and BuddyPress are installed and active.

Copy the plugin folder buddypress-group-documents/ into /wp-content/plugins/

Browse to the plugin administration screen and activate the plugin.

There will now be a “Group Documents” menu item under the “Settings” menu. Here 
you will find a list of all file extensions allowed for uploaded files along with
other settings.

## 常見問題集

### I get mb_convert_case error

If you run a windows server and you get errors about mb_convert_case function which
is a default php function (see http://php.net/manual/en/function.mb-convert-case.
php), you must uncomment the line with php_mbstring.dll in your php.ini.

### Can I link to the add file form

If you are a plugin developer and want to use the upload file form you can link 
to /group_slug/bpgroupdocuments_slug/add to access the upload document form

### I have a members only network. How to disable file download for non members?

Add the following function into your /wp-content/wp-plugins/bp-custom.php file

    ```
    /*
     * Download file only in the user is logged in
     */

    function bp_only_logged_in_can_download( $error ) {
    // If we have a only logged-in users site
        if ( ! is_user_logged_in() ) {
        $error = array(
            'message' => esc_html__( 'You must log in to access the page you requested.', 'bp-group-documents' ),
            'redirect' => bp_root_url()
        );
        }
        return $error;
    }

    add_filter( 'bp_group_documents_download_access', 'bp_only_logged_in_can_download' );
    ```

### I want to hide the files icon from the tab

Add to your Customizer ‘Custom CSS’ panel the following:
 li#nav-documents-groups-
li, li#nav-documents-personal-li a { background: none; }

## 使用者評論

![](https://secure.gravatar.com/avatar/6eb99ecc430a8751b73b629c941427e34825d9dbd29d44bae580b94792db187c?
s=60&d=retro&r=g)

### 󠀁[It’s a very helpful plugin.](https://wordpress.org/support/topic/its-a-very-helpful-plugin-2/)󠁿

 [kjapanese](https://profiles.wordpress.org/kjapanese/) 2022 年 5 月 25 日

The best plug-in that can’t be replaced! I want to continue using it. Thank you 
very much for developing it.

![](https://secure.gravatar.com/avatar/81d4a97738418ed3720bf4ffbfb8bf74c74a5c9e9abc773b0c608c47d74c394c?
s=60&d=retro&r=g)

### 󠀁[perfect](https://wordpress.org/support/topic/perfect-7091/)󠁿

 [annkima](https://profiles.wordpress.org/annkima/) 2020 年 4 月 15 日

works like a charm

![](https://secure.gravatar.com/avatar/446f2b42ac7791972ac98559e4df64614c15b3b5d02c65840203d99eecdca685?
s=60&d=retro&r=g)

### 󠀁[Clean and functional](https://wordpress.org/support/topic/clean-and-functional-5/)󠁿

 [ophilippeo](https://profiles.wordpress.org/ophilippeo/) 2019 年 11 月 22 日

Keep it up!

![](https://secure.gravatar.com/avatar/2f2668f8a579b8959a15beafebc538f9ac52248938e7532289149cfbc103a72e?
s=60&d=retro&r=g)

### 󠀁[This is the plugin every buddypress user should have](https://wordpress.org/support/topic/this-is-the-plugin-every-buddypress-user-should-have/)󠁿

 [Mwale Kalenga](https://profiles.wordpress.org/mwalek/) 2018 年 6 月 10 日

Great functionality, and good notifications!

![](https://secure.gravatar.com/avatar/2e19d3fe4d8fbc5a20a3b0e6bc3aa5cdaebdd6c79b91cbbd6d0ab63af13b1021?
s=60&d=retro&r=g)

### 󠀁[beautifull!](https://wordpress.org/support/topic/beautifull-9/)󠁿

 [Jakob Helmer](https://profiles.wordpress.org/jakobuz/) 2017 年 5 月 21 日

works great! keep it up!

![](https://secure.gravatar.com/avatar/ff1eaa9610c6871f6ff9a6a342cee8d5d0d441b50da8032077cefd238c2fe3a5?
s=60&d=retro&r=g)

### 󠀁[Works Great!](https://wordpress.org/support/topic/works-great-3412/)󠁿

 [skhanna55](https://profiles.wordpress.org/skhanna55/) 2016 年 12 月 25 日

This document is almost exactly what I was looking for. It simply lets you upload
your documents and lists them for display/download. Simple, clean, and works perfectly
with BuddyPress. The only thing I’d like to see which it doesn’t do is a simple 
1 file/line listing, so that it’s easier to display larger collections of documents.

 [ 閱讀全部 15 則使用者評論 ](https://wordpress.org/support/plugin/bp-group-documents/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈BP Group Documents〉的開發相關工作。

參與者

 *   [ lenasterg ](https://profiles.wordpress.org/lenasterg/)

〈BP Group Documents〉外掛目前已有 9 個本地化語言版本。 感謝[全部譯者](https://translate.wordpress.org/projects/wp-plugins/bp-group-documents/contributors)
為這個外掛做出的貢獻。

[將〈BP Group Documents〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/bp-group-documents)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/bp-group-documents/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/bp-group-documents/)，或透過
[RSS](https://plugins.trac.wordpress.org/log/bp-group-documents/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/bp-group-documents/)。

## 變更記錄

#### Version 2.1 (10 July 2025)

 * Bug fix: A user can edit and delete his/her uploaded files

#### Version 2.0 (21 February 2025)

 * BuddyPress 12+ compatible, tested up to BuddyPress 14.3.3
 * Fix bugs related to category edit and delete
 * Translators comments added
 * Delete old deprecated functions

#### Version 1.25 (1 December 2023)

 * Accessibility fix: Add alt attribute in widgets icons

#### Version 1.24 (31 August 2023)

 * Fix a bug in the widgets

#### Version 1.23 (31 August 2023)

 * Fix some PHP 8.1+ warnings and speed improvements

#### Version 1.22 (28 July 2023)

 * Fix for valid for file extensions, props @boonebgorges

#### Version 1.21 (11 May 2023)

 * New settings options added for ‘Display File Owner’, ‘Display File Date’
 * Tested with WordPress 6.2.0 and BuddyPress 11.0

#### Version 1.20.1 (3/02/2023)

 * Fix a PHP warning when in a subsite

#### Version 1.20 (27/01/2023)

 * New functionality: If Activity Plus Reloaded for BuddyPress plugin is installed,
   it adds an icon for documents upload next to ‘Activity Plus Reloaded for BuddyPress
   plugin’ icons.

#### Version 1.14 (11/11/2022)

 * Tested with WordPress 6.1 and BuddyPress 10.6.0
 * Code standards fixes
 * Changed some strings
 * Various bug fixes

#### Version 1.13 (3/10/2022)

 * Compatible with PHP 8.x
 * Tested with WordPress 6.0.2 and BuddyPress 10.4.0

#### Version 1.12.3 (9/4/2019)

 * Fix some PHP 7.x warnings
 * Fix BuddyPress warning, thanks to @venutius
 * Fix a css issue reported in wordpress.org support forum

#### Version 1.12.2 (29/06/2018)

 * Replace constant WP_PLUGIN_URL with plugins_url()
 * Replace constant WP_CONTENT_URL with content_url()
 * Fix some deprecated warnings

#### Version 1.12.1 (6/10/2017)

 * Typo fix for template folder

#### Version 1.12 (2/10/2017)

 * Allow main plugin markup to be overridden with theme template. Props @boonebgorges

#### Version 1.11 (29/3/2017)

 * Security fixes
 * Introduce new action: ‘bp_group_documents_data_failed_save’

#### Version 1.10 (24/3/2017)

 * Fix bug caused from 1.9.7 version
 * Security fixes

#### Version 1.9.7 (15/3/2017)

 * New feature: Display an “Add new” button on top of the documents list when the
   documents are more than 4.
 * Fix bug on download docx, xlsx
 * Fix bug on delete document’s category

#### Version 1.9.6 (15/3/2017)

 * Fix typos in group documents admin page

#### Version 1.9.5 (14/3/2017)

 * Fix some error notices in widgets

#### Version 1.9.4 (5/6/2015)

 * Fix for widgets, pros @thebrandonallen
 * Add icon for ppsx
 * Fix for Strict Standards setup

#### Version 1.9.3.1 (21/4/2015)

 * Minor fix

#### Version 1.9.3 (6/4/2015)

 * Fix BP_Group_Documents_CurrentGroup_Widget for hidden groups
 * Updated Italian language file, thanks to Daniele Mezzetti

#### Version 1.9.2 (9/3/2015)

 * Fix download count for non-login users
 * Fix warning caused by setcookie
 * Fix a typo
 * Add ods as default valid file extension

#### Version 1.9.1 (16/1/2015)

 * Add link for “Add new document” on BP_Group_Documents_CurrentGroup_Widget
 * Add new filter bp_group_documents_download_access. Thanks to @kallekillen for
   the idea.

#### Version 1.9 (8/12/2014)

 * Category link added in documents list.
 * Escaping fix. Strip slashes on the way out, so that file titles and descriptions
   don’t have so many unnecessary backslashes. Thanks to @jreeve for patch.

#### Version 1.8 (September 1, 2014)

 * Fix Sort – “Order by” & Filter – “Category” which was not working with Pagination.
   Thanks to @wp4yd for reporting.

#### Version 1.7 (April 22, 2014)

 * Add new widget: BP_Group_Documents_CurrentGroup_Widget. If the theme support 
   different sidebars for group pages, it can be used to show current group’s documents.
 * Fix some minor issues in widgets
 * Fix Document upload notification bug, props to @jreeve

#### Version 1.6 (March 17, 2014)

 * Language files update

#### Version 1.5 (December 4, 2013)

 * New feature: Into the Administration screen of the Activity component, the admin
   can filter activity for New group files and Edited group files. Based on @imath‘
   s https://codex.buddypress.org/plugindev/add-custom-filters-to-loops-and-enjoy-
   them-within-your-plugin/
 * Now supports custom tranlation files placed into WP_LANG_DIR . ‘/bp-group-documents/’.
   $domain . ‘-‘ . $locale . ‘.mo’)

#### Version 1.4 (October 31, 2013)

 * Fix a bug which marked some themes as Broken in some installations.

#### Version 1.3 (October 25, 2013)

 * Fix a bug which causes Fatal error about the get_home_path() function in some
   installations.

#### Version 1.2.3 (October 18, 2013)

 * Fix a bug on editing categories when the group slug is not the default “groups.
   Thanks to @jomsky for reporting and patching it.
 * Dutch translation, thanks to @sanderbontje

#### Version 1.2.2 (October 4, 2013)

 * MAJOR security bug fixes. (Thanks to @tomdxw for reporting and patch them)
 * Update bp-group-documents.pot file
 * Fix super admin’s rights for all group documents
 * Fix wrong placed error messagew
 * Remove depreceted functions
 * Remove administrators FTP ability, in favor of security

#### Version 1.2.1 (September 17, 2013)

 * Bug fix: https://wordpress.org/support/topic/bugfix-for-broken-icon-link, thanks
   to @sanderbontje
 * Bug fix: https://wordpress.org/support/topic/error-message-if-you-edit-groups
   thanks to @valuser for reporting
 * Bug fix: https://wordpress.org/support/topic/widget-functionality thanks to @kcurlsjr
   for reporting

#### Version 1.2 (September 3,2013)

 * Added Swedish translation. Thanks goes to nat0n (https://wordpress.org/support/
   profile/nat0n)

#### Version 1.1 (September 3,2013)

 * Fix some broken links by changing the plugin directory name with BP_GROUP_DOCUMENTS_DIR
   constant

#### Version 1.0 (August 28,2013)

 * Update readme.txt
 * Add screenshots

See history.txt for older version changelog
 Apologies for the frequent updates,
this plugin is under active development!

## 中繼資料

 *  版本 **2.1**
 *  最後更新 **11 個月前**
 *  啟用安裝數 **600+**
 *  WordPress 版本需求 ** 4.6 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.7.5**
 *  語言
 * [Dutch](https://nl.wordpress.org/plugins/bp-group-documents/)、[English (US)](https://wordpress.org/plugins/bp-group-documents/)、
   [French (France)](https://fr.wordpress.org/plugins/bp-group-documents/)、[German](https://de.wordpress.org/plugins/bp-group-documents/)、
   [Greek](https://el.wordpress.org/plugins/bp-group-documents/)、[Italian](https://it.wordpress.org/plugins/bp-group-documents/)、
   [Russian](https://ru.wordpress.org/plugins/bp-group-documents/)、[Spanish (Chile)](https://cl.wordpress.org/plugins/bp-group-documents/)、
   [Spanish (Spain)](https://es.wordpress.org/plugins/bp-group-documents/)、及 [Swedish](https://sv.wordpress.org/plugins/bp-group-documents/).
 *  [將這個外掛本地化為你的母語版本](https://translate.wordpress.org/projects/wp-plugins/bp-group-documents)
 * 標籤:
 * [buddypress](https://tw.wordpress.org/plugins/tags/buddypress/)[file](https://tw.wordpress.org/plugins/tags/file/)
   [storage](https://tw.wordpress.org/plugins/tags/storage/)[widget](https://tw.wordpress.org/plugins/tags/widget/)
 *  [進階檢視](https://tw.wordpress.org/plugins/bp-group-documents/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  15 個 5 星使用者評論     ](https://wordpress.org/support/plugin/bp-group-documents/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/bp-group-documents/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/bp-group-documents/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/bp-group-documents/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/bp-group-documents/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/bp-group-documents/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/bp-group-documents/reviews/)

## 參與者

 *   [ lenasterg ](https://profiles.wordpress.org/lenasterg/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/bp-group-documents/)