Using WP(4.7) with buddypress(2.7.4) & mediapress(1.0.7)
Active Plugins:
– bbPress 2.5.12
https://bbpress.org
– BuddyPress 2.7.4
https://buddypress.org/
– Custom Admin Page by BestWebSoft 0.1.1
http://bestwebsoft.com/products/wordpress/plugins/custom-admin-page/
– MediaPress 1.0.7
https://buddydev.com/mediapress/
– Members 1.1.2
http://themehybrid.com/plugins/members
– New User Approve 1.7.4
http://www.picklewagon.com/wordpress/new-user-approve/
– PHP Event Calendar 1.5.9
http://phpeventcalendar.com/
– Shortcode Widget 1.2
http://wordpress.org/extend/plugins/shortcode-widget/
– Sidebar Manager Light 1.12
http://otwthemes.com/?utm_source=wp.org&utm_medium=admin&utm_content=site&utm_campaign=sml
– Simple Ajax Shoutbox 2.2.0
https://wordpress.org/plugins/simple-ajax-shoutbox/
– SysInfo 1.1.0
http://wordpress.org/extend/plugins/sysinfo/
– WoWpi – the World of Warcraft API Armory plugin 2.3.4
https://wordpress.org/plugins/wowpi/
– WP Custom Widget area 1.2.5
http://kishorkhambu.com.np/plugins/
– WP Email Users 1.3.10
http://www.techspawn.com
– WP ULike 2.4
http://preview.alimir.ir/developer/wp-ulike/
Having trouble getting the sitewide gallery permissions working the way I want them, I only have the sitewide gallery enabled but it seems only I can upload to it since im the Super-admin, how can I enable normal users to upload. I want all registered members to be able to upload. I have already enabled the ‘can_upload’ permission for all members both in wordpress and buddypress.
Commenting permissions are working though…
But I don’t want to use the ‘user’ or ‘group’ galleries…
I did try in bp-custom.php
[code]
`function mpp_custom_user_can_upload_photo() {
return current_user_can( ‘upload_files’ );
}
function mpp_custom_upload_permission( $can_do, $component, $component_id, $gallery ) {
if ( empty( $gallery ) ) {
return $can_do;//do not change the permission
}
$type = $gallery->type;
if ( $type == ‘photo’ && ! mpp_custom_user_can_upload_photo() ) {
$can_do = false;
}
return $can_do;
}
add_filter( ‘mpp_user_can_upload’, ‘mpp_custom_upload_permission’, 10, 4 );
[/code]
but doesn’t seem to work. The code is modified from another topic ‘Role Based Permissions