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: 25485

    Hi Rick,
    Thank you for the kind words.

    My suggestion will be to not modify the mnetwork_table.

    Instead, add user to proper blog using a script and they will be synchronized. I am not sure how will you decide which users should go to which blog. If there is any data to decide that, It will be easy.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    Hi Michaël,
    I am glad it is resolved.

    All the best.

    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    Hi Michaël,
    I am sorry, March has been a month when I have been moving for last 2 weeks.

    Will be back to proper work from Saturday(30th march again). We will have this update by 2nd April or before.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485
    Brajesh Singh on in reply to: Mediapress on Comments & Private Message #21712

    Hi Minoo,
    Thank you for the question.

    MediaPress does not support WordPress comments upload or attachment with private message. We do have plan to add support for comment attachment in future.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    Hi Michaël,
    How are you allowing upload on Wall?
    BuddyPress does not have any upload functionality for wall. f you are not using MediaPress, you are most probably using another plugins for adding upload via wall.

    You will need to contact the plugin author in that case.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485
    Brajesh Singh on in reply to: [Resolved] MediaPress with BuddyPress Polls #21687

    Hi Mic,
    We are using the activity type to let BuddyPress delegate us the action string creation for activity( e.g xyz uploaded 5 photo). It helps us create the action dynamically.

    It seems RT Media is adding a meta and then filtering on the action string t add their own(I haven’t checked it and will only be able to do so after 28th as I am travelling right now).

    We can certainly use that strategy in future. It does have the side effect that we will need to filetr for each activity action.

    Since we do not use the activity type for anything critical, we can certainly replace it in future.

    I am proposing that we add 1 meta to activity updates marking it has attached media and then move forward.

    Also, MediaPress was not designed to work alone. The goal was to make it co operate with other plugins in future(it still is). We will resolve this activity issue in next major release.

    For now, you may want to look for code containing “mpp_media_upload”. The change will need to go around there.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    Hi Tosin,
    You are using a pro theme. Please contact theme developers for help as the functionality is provided by them.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    HI Dale,
    This should most probably work

    
    
    /**
     * Change length of activity excerpt.
     *
     * @param int $length length.
     *
     * @return int
     */
    function buddydev_change_activity_excerpt_length( $length ) {
    	return 500;
    }
    
    add_filter( 'bp_activity_excerpt_length', 'buddydev_change_activity_excerpt_length' );
    
    

    Please give it a try and let me know.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    Hi,
    I am sorry but I am not sure of the issue.
    Here is the code I added to your bp-custom.php

    
    
    // For showing members of opposite gender.
    function buddydev_exclude_same_gender_users( $args ) {
    
    	if ( ! is_user_logged_in() ) {
    		return $args;
    	}
    
    	$field_id = 3;// gender field.
    	$data     = maybe_unserialize( BP_XProfile_ProfileData::get_value_byid( $field_id, get_current_user_id() ) );
    
    	if ( empty( $data ) ) {
    		return $args;
    	}
    
    	// we have two choices here.
    	// show opposite gender or show all members who are not of same gender
    	// I am going with opposite gender, feel free to adapt.
    	$search = '';
    	if ( 'Un Homme' == $data ) {
    		$search = 'Une Femme';
    	} elseif ( 'Une Femme' == $data ) {
    		$search = 'Un Homme';
    	}
    
    	if ( empty( $search ) ) {
    		return $args;
    	}
    
    	$args['xprofile_query'] = array(
    		array(
    			'field'   => $field_id, // field id or name.
    			'value'   => $search,
    			'compare' => '=',
    		),
    	);
    
    	return $args;
    }
    
    add_filter( 'bp_after_has_members_parse_args', 'buddydev_exclude_same_gender_users' );
    
    

    It looks into the field 3 3 of the logged in user, then checks for who should be shown.

    Since I do not understand the language, The string values may be incorrect . Can you please check it and tell me if it is correct or not?

    
    if ( 'Un Homme' == $data ) {
    		$search = 'Une Femme';
    	} elseif ( 'Une Femme' == $data ) {
    		$search = 'Un Homme';
    	}
    
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    HI Diana,
    Thank you for the question.

    The patch should be

    
    yourtheme/bpajaxr/default/assets/bpajaxr-style.css
    
    

    We suggest using

    
    yourtheme/bpajaxr/default
    

    The last part is name of the active template style(currently, we only support default but will change in future) to help us localize the change and add more styles in future without breaking backward compatibility.

    Keeping this structure, you can keep your changes local to a specific style. Say, we add a new style “classic” in future, if you maintain this structure, changes for styles in the default won’t affect new.

    Regards
    Brajesh