unuigbee
Forum Replies Created
-
Forum: Plugins
In reply to: [MediaPress] Avatar Issues – same avatar appearing in lightboxI haven’t touched the template files at all.
Here is a screenshot: https://img42.com/mPqSq
Forum: Plugins
In reply to: [MediaPress] Members in groups can't delete their own galleryI’m using this code you gave me to restrict members from uploading media to other members gallery.
function mpp_custom_restrict_group_upload( $can_do, $component, $component_id, $gallery ) { if ( $component != 'groups' ) { return $can_do; } //we only care about group upload $gallery = mpp_get_gallery( $gallery ); if ( ! $gallery || $gallery->user_id != get_current_user_id() ) { return false;//do not allow if gallery is not given } return true;//the user had created this gallery } add_filter( 'mpp_user_can_upload', 'mpp_custom_restrict_group_upload', 11, 4 );
I’ll try remove this code and see if it makes a difference.
Only the admin can delete a gallery. The user can’t delete their own gallery.
Forum: Plugins
In reply to: [MediaPress] Avatar Issues – same avatar appearing in lightboxI’m using the latest version 1.02. The Avatars are still the same.
I managed to solve this by hooking into BuddyPress
bp_core_activated_user
action hook and adding a vendor role from this hook. So a vendor role is added when user activates their account from the activation link that is sent by BuddPress via email to the registered user.Add this to the theme’s functions.php or you can add it as a must-use plugin
function my_bp_core_activated_user( $user_id, $key, $user ) { $user = get_user_by('id', $user_id); $user->add_role('vendor'); }; add_action( 'bp_core_activated_user', 'my_bp_core_activated_user', 10, 3 );
Did you happen to figure how to automate this process? I found this useful link that could help: I plan on using this to automate this process.
Forum: Plugins
In reply to: [MediaPress] Filter a group gallery by userNo problem
Forum: Plugins
In reply to: [MediaPress] Filter a group gallery by userHi
Excellent work. I’m loving the new features.
Forum: Plugins
In reply to: [MediaPress] Filter a group gallery by userExcellent can’t wait for the new update.
Forum: Plugins
In reply to: [MediaPress] Group members can upload in each other's galleriesThank you the code worked flawlessly. Have a good day.