Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: BP Album+ problem with images path with WP in subfolder


Gianfranco
Participant

@gian-ava

This is the bit that I am sure I need to change:

function bp_album_upload_path(){

if ( bp_core_is_multisite() )

$path = ABSPATH . get_blog_option( BP_ROOT_BLOG, 'upload_path' );

else {

$upload_path = get_option( 'upload_path' );

$upload_path = trim($upload_path);

if ( empty($upload_path) || 'wp-content/uploads' == $upload_path) {

$path = WP_CONTENT_DIR . '/uploads';

} else {

$path = $upload_path;

if ( 0 !== strpos($path, ABSPATH) ) {

// $dir is absolute, $upload_path is (maybe) relative to ABSPATH

$path = path_join( ABSPATH, $path );

}

}

}

$path .= '/album';

return apply_filters( 'bp_album_upload_path', $path );

}

But what in there?

And, is there a way to do it via bp-custom.php, so that I don’t need to change the plugin core file everytime there is an upgrade?

Skip to toolbar