WordPress.org

Plugin Directory

BP Group Documents

BP Group Documents creates a page within each BuddyPress group to upload and any type of file or document.

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' => __( 'You must log in to access the page you requested.', 'buddypress' ),
        'redirect' => bp_root_domain()
    );
    }
    return $error;
    //end added on 16/1/2015
}

add_filter( 'bp_group_documents_download_access', 'bp_only_logged_in_can_download' );

Requires: WP 3.5, BuddyPress 1.7 or higher
Compatible up to: 4.1.1 BuddyPress 2.2
Last Updated: 2015-4-21
Active Installs: 3,000+

Ratings

5 out of 5 stars

Support

1 of 12 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1
100,1,1
100,1,1
100,1,1 33,3,1
100,1,1