New
PeoplePress is here. Community building for WordPress, reimagined. Fast, modern, and built for the communities you've always wanted to run.
See it live

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25509

    Hi Herve,
    I am sorry for the delayed reply.

    Your best bet is to do a Search and replace on table for the old to new urls( Only the link upto dire ctory part)

    You can use this

    https://github.com/interconnectit/Search-Replace-DB

    It is very easy to use and you can see what changes will happen before actually running.

    Hope that helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25509

    Hi Sam,
    Thank you.

    Before assisting further,can you please check if a slider like this will solve the purpose
    http://sachinchoolur.github.io/lightGallery/

    If yes, Then I can suggest some way.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25509

    Ok. Marking it as resolved. Let us continue the discussion there.

  • Keymaster
    (BuddyDev Team)
    Posts: 25509

    Hi Herve,
    My mistake. I forgot that bp_has_members() won’t use xprofile_query instead it should be specified on BP_User_Query

    Here is the updated code

    
    
    /**
     * Custom filter for members list for Herve.
     *
     * @param BP_User_Query $query query object.
     *
     * @return array
     */
    function buddydev_filter_members_list_herve( $query ) {
    
    	if ( ! is_user_logged_in() ) {
    		return;
    	}
    
    	$user_id = get_current_user_id();
    	// get the value for the field.
    	// Use field id for better performance.
    	$searching_for = xprofile_get_field_data( 'I search', $user_id, 'comma' );
    
    	if ( empty( $searching_for ) ) {
    		return;
    	}
    
    	$xprofile_query = isset( $query->query_vars['xprofile_query'] ) ? $query->query_vars['xprofile_query'] : array();
    
    	$xprofile_query[] = array(
    		'field'   => 'I am', // I sugget using field id for more efficiency.
    		'value'   => $searching_for,
    		'compare' => '=',
    	);
    
    	if ( ! empty( $xprofile_query ) ) {
    		$query->query_vars['xprofile_query'] = $xprofile_query;
    	}
    
    	return $query;
    }
    
    add_action( 'bp_pre_user_query_construct', 'buddydev_filter_members_list_herve', 0 );
    

    Replace the field with actual field is/name and it will work. Please make sure to remove the old code.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25509
    Brajesh Singh on in reply to: [Resolved] MediaPress activity feed not working #13116

    Hi Richard,
    Are you looking for it for the uploads from Gallery->Upload screen or from the activity upload screen.

    If it is for activity upload screen, My question will be what happens when you post the activity with attached media?

    If it is for Gallery upload screen, Please visit Dashboard->settings->BuddyPress and you can enable automatic posting to activity there.

    Best Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25509
    Brajesh Singh on in reply to: My Gallery/Galleries/Album/s title/label #13115

    Hi Richard,
    Agree about the plural. About being configurable, isn’t translating it the same?

    In next update, I will update the string to use plurals instead. For now, Please feel free to translate it.

  • Keymaster
    (BuddyDev Team)
    Posts: 25509

    Can you please use user switching plugin and check it? I am not sure whay will that happen.

  • Keymaster
    (BuddyDev Team)
    Posts: 25509

    Hi Richard,
    The media inherits the privacy of parent gallery unless you specify the privacy manually.

    Please see
    https://github.com/buddydev/mediapress/blob/master/core/ajax/mpp-ajax.php#L289

    Line 289-299.

    We use any custom privacy if given with the request, otherwise we use gallery privacy and if that is also not available, we use the default specified in the admin.

    I am not sure what is happening on your install but your expectations are correct and that is exactly how we are handling it.

    If there is any other information, Please do let me know.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25509

    Hi Sam,
    I am sorry for the delayed reply.

    1. On BuddyPress Signup, Roles to Member Type mapping will not work. The role to member type mapping will work in all other scenario.

    The reason behind this decision is BuddyPress changes role twice on registration and that amkes things very difficult to differentiate.

    2. If the role changing is triggered by WooCommerce and or admin, It will change the member type.

    In case you are using WooCommerce Membership, I have a better solution(We can allow direcly mapping from the memberships to the member type ).

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25509
    Brajesh Singh on in reply to: [Resolved] Enable Debug Info? #13084

    Hi Richard,
    The debug mode is limited to showing the gallery id/media id and privacy on the single attachment page in the admin.

    We plan to allow better debug capabilities for front end in future.

    Thank you
    Brajesh