Replies
- Brajesh Singh on February 26, 2016 at 9:47 pm in reply to: Please select gallery – get rid of and use default album automatically #2752
Hi Jem,
Thank you for asking. Since you are using the code from the linked topic, It is easy.In that thread, I had stored the gallery_id in a meta like this
update_user_meta( $user_id, '_mpp_predefined_gallery_photo_1', $gallery_id ); //you can change the key to anything
So, All we need to do here is reuse this gallery id like this
<?php if ( bp_is_my_profile() ) : $gallery_id = get_user_meta( bp_loggedin_user_id(), '_mpp_predefined_gallery_photo_1', 'true' );//please change the key to the one you re using ?> <?php echo do_shortcode("[mpp-uploader gallery_id=". $gallery_id ." ]");?> <?php endif;?>
Please make sure to use the correct key that you had stored in the usermeta.
Please do let me know if that works fro you or not?
Thank you
Brajesh - Brajesh Singh on February 26, 2016 at 3:50 pm in reply to: [Resolved] BP Xprofile Member Type Field v 1.0.1 gives Strict standards warning #2748
Sorry guys. It was my bad. The current version available for BuddyDev doe not have this issue. I had an older version that gave me same warning( and I should have checked the version).
Thank you both. Marking it as resolved.
- Brajesh Singh on February 26, 2016 at 3:37 pm in reply to: [Resolved] BP Xprofile Member Type Field v 1.0.1 gives Strict standards warning #2747
Looked at it. It seems an issue. An update is on its way.
- Brajesh Singh on February 26, 2016 at 3:16 pm in reply to: [Resolved] User Gallery in Profile for That Specific Profile and User #2746
Hi Jem,
Thank you. I am sorry for the delayed reply.Here is what you may use and you will not need to hide using css.
<?php if ( bp_is_my_profile() ):?> <?php echo do_shortcode( "[mpp-uploader]" ); ?> <?php endif; ?>
Hope that helps.
- This reply was modified 9 years, 7 months ago by
Brajesh Singh. Reason: Correct the typo in code
- This reply was modified 9 years, 7 months ago by
- Brajesh Singh on February 26, 2016 at 9:09 am in reply to: [Resolved] User Gallery in Profile for That Specific Profile and User #2742
Hi Jem,
Welcome to BuddyDev and thank you for asking.
Please use the following php code and it will only list media for displayed users.
<?php $displayed_user_id = bp_displayed_user_id(); //run the shortcode echo do_shortcode( "[mpp-media type='photo' max='10; component='members' component_id={$displayed_user_id}]"); ?>
PS: We will add an option in the shortcode t make it even easier. Please do let me know if that works for you or not?
Thank you
Brajesh - Brajesh Singh on February 25, 2016 at 6:44 pm in reply to: [Resolved] User Galleries in user card in backend #2737
Hi Gregorio,
It is not available at the moment in the admin but we can add this functionality on all galleries screen and link to the profile.We will need a few days to do that though. Will it be fine if we release with this enhancement next week?
Thank you
Brajesh - Brajesh Singh on February 25, 2016 at 6:43 pm in reply to: BuddyPress Confirm Actions + Stripe #2736
Hi Kenny,,
I am sorry, seems like I forgot to mail you the modified code. I am too tired at the moment and leaving but I will send you the code and the message early morning.Thank you
Brajesh - Brajesh Singh on February 25, 2016 at 5:45 am in reply to: [Resolved] BP Autologin on Activation #2732
Thank you Jon 🙂
Appreciate you taking time to reply and confirm.Thank you
Brajesh - Brajesh Singh on February 25, 2016 at 5:44 am in reply to: BuddyBlog – Custom Post Type, Custom Taxonomies, and Permalinks #2731
Hi Devin,
Thank you for asking.1. No, You don’t need to put the code anywhere.
2. Please visit Settings->BuddyBloog and look for the following settingShow single posts on user profile?
Set it to no, and it should redirect to single post instead of user profile. That should fix both the issue.
PS: If it is still giving 404, please visit Settings->Permalink, try to change it to something else and then change back. That will flush the permalink. When we register a post type(in general, It has nothing to do with the BuddyBlog), We need to flush the rules atleast once to make it work.
Please do let me know if that works for you or not?
Thank you
Brajesh - Brajesh Singh on February 23, 2016 at 5:33 pm in reply to: [Resolved] BP Autologin on Activation #2726
Hi Jon, Any update on this?