Replies
- Brajesh Singh on August 27, 2019 at 7:00 pm in reply to: [Resolved] Conflict with Ocean WP? Activity feed won't upload after update #25021
Hi Kir,
I am sorry for the trouble. We noted the issue 3 days ago and fixed it. It was a bug on our side.
https://github.com/buddydev/mediapress/commit/2ee09eb8d69a3e27220e7c4b134efe32bcc7d932I will push a release by tomorrow as need to cleanup a few things.
Thank you
Brajesh Hi K,
Thank you for the question.Please see
https://buddydev.com/mediapress/code-snippets/renaming-wall-gallery-title-for-mediapress/#example-4- Brajesh Singh on August 27, 2019 at 9:41 am in reply to: How to limit the number of post a user can publish per day to one #25012
Hi Tosin,
I am sorry. This involves the plugins which we do not use or don’t have any affiliation.That’s why we are unable to support you. We can support any plugin but that takes time and within our free support, we are unable to do that.
I suggested asking the plugin developer as they have interest in supporting their plugins. That will save you time and cost.
For any 3rd party code(except BuddyPress, bbPress which we support for free here), Please feel free to use our custom services.
https://buddydev.com/services/
Regards
Brajesh - Brajesh Singh on August 27, 2019 at 9:37 am in reply to: [Resolved] Member Type, Login Peronalized Redirection Does Not Work #25011
Hi,
I haven’t been able to add compatibility with your theme yet. Hoping that today I can.Thank you
Brajesh Hi Carsten,
I am sorry but I could not understand thisNow hyphenation and separation of words turns out as a problem, any simple code to solve this as well?
Please help me understand the question and I will assist.
Regards
Brajesh- Brajesh Singh on August 26, 2019 at 11:04 pm in reply to: Only one Gallery per user and auto create gallery during registration #24999
Hi,
Please add the following code too./** * Redirect from members/user/mediapress/ to their single gallery. */ function mpp_custom_redirect_to_single_gallery() { if ( ! function_exists( 'mpp_is_user_gallery_component' ) || ! mpp_is_user_gallery_component() ) { return; } // we are on some internal page, no need to redirect. if ( bp_current_action() ) { return; } // find out the gallery permalink and redirect. $gallery_id = get_user_meta( bp_displayed_user_id(), '_mpp_predefined_gallery_photo_1', true ); if ( ! $gallery_id ) { return; } $permalink = mpp_get_gallery_permalink( $gallery_id ); if ( $permalink ) { bp_core_redirect(); } } add_action( 'bp_template_redirect', 'mpp_custom_redirect_to_single_gallery' );It should work in conjunction with our previous code.
Please give it a try and let me know(I haven’t tried it yet).
For create gallery, I will be assisting you later.
regards
Brajesh - 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