Tagged: create gallery upload
Hello Carlo,
Thank you for posting here. Have you tried the following plugin:
https://github.com/mediapress/mpp-global-shared-gallery/archive/refs/heads/master.zip
It allows the gallery to be shared so that any other site user can upload content to the shared gallery.
Please let me know if helps or not.
Regards
RaviHi Carlo,
Is this question about MediaPress?Are you using it with BuddyPress? Is it used for profile or group?(I am assuming group).
Do you want to restrict group gallery creation/upload by admins and moderators?
Please let us know and we will assist.
Regards
Brajeshhi!
– Is this question about MediaPress?
Yes– Are you using it with BuddyPress? Is it used for profile or group?(I am assuming group).
I create a group, i want administrator only can create galleries and upload media, rest of users only can downloadThanks a lot!
Hello Carlo,
Please try the following code in your active theme functions.php file or bp-custom.php file
add_filter( 'mpp_user_can_create_gallery', function( $can_create, $component, $component_id ) { if ( 'groups' != $component ) { return $can_create; } if ( groups_is_user_admin( get_current_user_id(), $component_id ) ) { return true; } return false; }, 10, 3 ); add_filter( 'mpp_user_can_upload', function ( $can_upload, $component, $component_id ) { if ( 'groups' != $component ) { return $can_upload; } if ( groups_is_user_admin( get_current_user_id(), $component_id ) ) { return true; } return false; }, 10, 3 );
Please let me know if it helps or not.
Regards
Ravi
The topic ‘ [Resolved] Upload content only users or modeators’ is closed to new replies.