BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25218
    Brajesh Singh on in reply to: [Resolved] member type on registration #2772

    Hi Blade,
    Welcome to BuddyDev.

    Thank you for asking this.
    We will have it available in next 4-5 hours and I will post an update here.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25218

    Hi Devin,
    The only reason it is not following WordPress permalink can be somehow this filter is enabled

    
    buddyblog_show_posts_on_profile
    

    Either there is some remaining code filtering on it or somehow the admin settings for BuddyBlog to show posts on profile is still enabled.

    Please give the settings/code another check and if you don’t find anything/it does not work, Please grant me temporary access to the site. I can debug and find the problem.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25218

    Hi Jasmin,
    Welcome to BuddyDev forums.

    1. Isn’t Recent visitors visible to the logged in user only. This is the default behaviour.

    For avatar, Please put the following code in your bp-custom.php

    
    function devb_custom_settings_for_recent_visitors ( $settings ) {
    
    	$settings['default_avatar_size'] = 64;//64 px
    
    	return $settings;
    }
    add_filter( 'bp_visitors_settings', 'devb_custom_settings_for_recent_visitors' );
    

    Is it changing the avatar size? If not, It may be some css issue and you can point me to the site. That will allow me to provide you some css too.

  • Keymaster
    (BuddyDev Team)
    Posts: 25218
    Brajesh Singh on in reply to: [Resolved] Delete image redirect #2762

    Hi Jem,
    Thank you for confirming.

    I am sorry about the lightbox. It skipped me otherwise we might have added the support in the shortcode. It is still possible to enable it via code. I will experiment a little and post back today if that can be done via code until we add he support in shortcodes.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25218
    Brajesh Singh on in reply to: Mediapress Galleries not showing up on Gallery page #2761

    Hi,
    Please upgrade to 1.0.3. It will fix the issue.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25218

    Hi,
    We have added the pagination support for shortcodes in 1.0.3 which is available now.

    I am sorry but the search form will need you to implement yourself. You can use standard MPP_Gallery_Query with search parameters.

  • Keymaster
    (BuddyDev Team)
    Posts: 25218

    Hi Devin,
    Is there any chance that you are using some custom code related to BuddyBlog in your bp-custom.php or your theme’s functions.php?

  • Keymaster
    (BuddyDev Team)
    Posts: 25218
    Brajesh Singh on in reply to: [Resolved] Delete image redirect #2757

    Hi Jem,
    Thank you for asking.
    I included some functionality in 1.0.3 to allow this. After you upgrade the plugin to 1.0.3, you can use the following code

    
    
    function mpp_custom_redirect_on_media_delete_url() {
    	return wp_get_referer();
    }
    add_filter( 'mpp_media_delete_redirect_url', 'mpp_custom_redirect_on_media_delete_url' );
    
    

    In your bp-custom.php to redirect to the previous page on media delete.

  • Keymaster
    (BuddyDev Team)
    Posts: 25218

    Hi Jem,
    Thank you. Yes, I made a mistake there while typing. It is good to know that you fixed it and it is working for you 🙂

    Marking this topic as resolved.

  • Keymaster
    (BuddyDev Team)
    Posts: 25218

    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