Replies
- Brajesh Singh on August 26, 2019 at 10:56 pm in reply to: Is it possible to store the video in vimeo instead of locally? #24996
Hi,
There was an issue with the download permission. Please give it a try now. I have updated the permission to be members only(logged in users). Should work now.PS:- If you find any issue or have suggestion for the plugin, Please open a new topic.
Regards
Brajesh Hi,
Thank you for the suggestion.We did not adopt it earlier as I feed activity privacy is not scalable in BuddyPress(in its current status).
Since this is a useful plugin, we can keep it updated and put a notice about scalability(or try to find a way to scale).
For now, Please use Boon’es version from here
https://github.com/boonebgorges/buddypress-activity-privacy/tree/bp-4x-updatesRegards
Brajesh- Brajesh Singh on August 26, 2019 at 10:48 pm in reply to: How to limit the number of post a user can publish per day to one #24994
Hi Tosin,
This is a 3rd party plugin.
Please connect with the plugin author for assistance with it.Regards
Brajesh - Brajesh Singh on August 26, 2019 at 12:25 pm in reply to: Only one Gallery per user and auto create gallery during registration #24981
Hi,
Welcome to BuddyDev.Thank you for using MediaPress.
Here is the code that you can use to create a gallery when a user activates their account.
/** * Create gallery on user activation. * * @param int $user_id user id. */ function mpp_custom_create_gallery_on_account_activation( $user_id ) { // make sure that user gallery functions are available. if ( ! function_exists( 'mpp_create_gallery' ) ) { return; } $display_name = bp_core_get_user_displayname( $user_id ); // does this user has predefined gallery? // we use this check to avoid same type of gallery again and again for the user(we most probably don't need it). if ( ! get_user_meta( $user_id, '_mpp_predefined_gallery_photo_1', true ) ) { // No, then we need to create it. // repeat it as you want. $gallery_id = mpp_create_gallery( array( 'creator_id' => $user_id, 'title' => $display_name, 'description' => '', // add description if any. 'status' => mpp_get_default_status(), // can use any of the status e.g. 'public' , 'private', 'loggedin', 'friends' etc. 'component' => 'members', // for user. 'component_id' => $user_id, // no need to change. 'type' => 'photo', // can change to "audio", "video", "doc". ) ); // let us keep the id in usermeta to avoid creating it again, right? if ( ! is_wp_error( $gallery_id ) ) { // you can change the key to anything. update_user_meta( $user_id, '_mpp_predefined_gallery_photo_1', $gallery_id ); } } } add_action( 'bp_core_activated_user', 'mpp_custom_create_gallery_on_account_activation' , 2 );Please do not use the shortcode for asking user to upload. Instead, redirect user to their gallery. They can upload from there.
3. Restricting creation. This is a bit tricky in your case. It is very easy to disable gallery creation. In your case, restricting based on number of gallery is a bit tricky.
I will see if I can put some code quickly today. Otherwise, will suggest using a plugin.
Regards
Brajesh - Brajesh Singh on August 26, 2019 at 11:54 am in reply to: How To Use BuddyPress Member Types Pro for Customizing Member Directory #24980
Hi Noha,
Thank you for the patience.
I have pushed the updated today. Please check.Regards
Brajesh - Brajesh Singh on August 26, 2019 at 11:27 am in reply to: Profile Tabs Feedback and Assistance #24979
Hi Mike,
Thank you for using the plugin and you suggestions.1. I will add a back link at bottom to make it easy.
2. Since we are using the post type internally for tabs, the listing screen follows default WordPress way(same way you visit your Dashboard->Posts screen). For now, I am unable to enhance the list filtering experience(can be done in future though).3. For the blogs, I will check and get back to you. It could be a bug. I will get back at the end of the day(PST) with a solution.
4. For member type, I will reply on your topic regarding use of member types.
Thank you
Brajesh - Brajesh Singh on August 26, 2019 at 11:23 am in reply to: [Resolved] Wow! Great plugin. Just one more question #24978
Hi Terry,
Thank you for sharing the details.1st you will need to import the images as WordPress media. Once you have done it, you can use
mpp_update_media_cover_id($media_id, $cover_media_id);to set the cover for $media_id.
Regards
Brajesh Hi Mike,
Thank you for the topic.I have got the exact same request from another member. I will be putting some solution inside the plugin in a day to two.
For “None”, I will post back in the other topic.
Thank you
Brajesh- Brajesh Singh on August 26, 2019 at 10:40 am in reply to: [Resolved] Allow Comments – How I added No as an option #24975
Hi John,
Since checkbox represents Yes/no, we used it.Your implementation is correct too as you have moved from checkbox to radio. Thank you for sharing.
Regards
Brajesh Hi Mike,
Thank you.We are pushing an update this week for sure.
Regards
Brajesh