Shape the future of Social networking with WordPress: Join Project Midnight Sun! The next generation platform for community building with WordPress!

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25360
    Brajesh Singh on in reply to: [Resolved] BuddyPress User Contact Form #33096

    Hi James,
    Thank you for the question.

    It should not be difficult. You may use our services for it if needed. I guess, It will take an hour or less for any developer to achieve it.

    Regards
    Brajesh

    PS:- In future, for pre-sales questions, please create anew topic or use our contact form.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25360

    Thank you.
    I am closing this topic to avoid confusion.

    Here is the link to future discussion

    https://buddydev.com/support/forums/topic/cover-image-cropping-function

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25360
    Brajesh Singh on in reply to: Cover Image cropping Function #33093

    Hi James,
    Thank you for opening a new topic.

    You can remove other code and use the following code to force crop

    
    function buddydev_enable_crop_for_cover_image( $args ) {
    	$args['crop'] = true;
    
    	return $args;
    }
    add_filter( 'bp_after_attachment_cover_image_edit_image_parse_args', 'buddydev_enable_crop_for_cover_image' );
    
    

    This will not show any user interface. What it does is forces BuddyPress to crop images to the registered dimension instead of resizing the image.

    In case you want to set a custom height/width for the cover and not use the default by BuddyPress, you can use the following code too

    
    
    function bd_set_xprofile_cover_image_dimension( $settings = array() ) {
    	$settings['width'] = 800;
    	$settings['height'] = 400;
    
    	return $settings;
    }
    add_filter( 'bp_before_members_cover_image_settings_parse_args', 'bd_set_xprofile_cover_image_dimension', 100, 1 );
    add_filter( 'bp_before_groups_cover_image_settings_parse_args', 'bd_set_xprofile_cover_image_dimension', 100, 1 );
    
    

    Please change the width/height as needed.

    And lastly, you may want to remove the default notice by BuddyPress. to do that, Please add the following code.

    
    
    add_action( 'bp_loaded', function () {
    	remove_action( 'wp_ajax_bp_cover_image_upload', 'bp_attachments_cover_image_ajax_upload' );
    } );
    
    

    Please try uploading an image and cover and check if the image is cropped to correct dimension or not?

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25360

    Hi,
    Please open a new topic here
    https://buddydev.com/support/forums/#new-post

    I am sorry but this topic belong to @hcallens and I am unable to provide support for any discussion which is not related to his original question.

    I will be glad to assist when you open a new topic.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25360
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25360

    You are welcome.
    Please create separate topics for unrelated issues.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25360
    Brajesh Singh on in reply to: Members not showing on subsite #33083

    Hi Chris,
    I am sorry if I was not very clear.

    BuddyPress will not list a user in the directory if it does not have the last activity time recorded for the user. It has nothing to do with the logged in state. I asked to login as it should be recorded as soon as a user logs in.

    In case of multinetwork, in order to be visible on a sub site, the user must satisfy 2 criteria:-
    1. They should be added a user of that sub site “after the activation of BuddyPress Multi Network”
    2. They should have a last activity time recorded for that specific site.

    If the user fulfils these 2 criteria, they will be listed.

    Please check.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25360

    Please put it in wp-content/plugins/bp-custom.php

    https://buddydev.com/docs/buddypress-guides/what-is-bp-custom-php/

    Regards
    Brajesh

    PS:- Please avoid private replies on other member’s topic. If you need to reply in private, Please open a new topic and can reply privately there. That will be between the person providing support and you only.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25360
    Brajesh Singh on in reply to: Can not upload video #33078

    Hi Anders,
    That is correct view. It is the uploaded media attached. Once you post the activity, It will become linked once you post the activity.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25360

    Hi Bratwales,
    Thank you.

    The members are listed on a site if their last activity is recorded on that sub site. Please try logging as the user and visiting that specific sub site. Once they login, It will show them in the directory. This is how BuddyPress/BuddyBoss lists users(based on last active time is set or not).

    Regards
    Brajesh