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

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

  • Keymaster
    (BuddyDev Team)
    Posts: 25287

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

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

  • Keymaster
    (BuddyDev Team)
    Posts: 25287

    Thank you. It worked finally.

    It seems the theme css is conflicting. we are not adding any css just using Default WordPress media model and it should have worked.

    If you can provide me a temporary normal(subscriber) user account, I can check and help you with the conflicting css.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25287

    Hi Richard,

    I mean in the video I saw that Users were uploading under a Gallery(It was the activity stream under the gallery media listing?)

    That seems a bit strange to me since we don’t have that function out of the box. The activity feed under single gallery don’t have upload buttons.

    PS:- You had fixed the things correctly. I am referring to another thing.

  • Keymaster
    (BuddyDev Team)
    Posts: 25287

    Hi Herve,

    Here is an example code

    
    
    /**
     * Custom filter for members list for Herve.
     *
     * @param array $args bp_has_members() args.
     *
     * @return array
     */
    function buddydev_filter_members_list_herve( $args ) {
    
    	if ( ! is_user_logged_in() ) {
    		return $args;
    	}
    
    	$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 $args;
    	}
    
    	$xprofile_query = isset( $args['xprofile_query'] ) ? $args['xprofile_query'] : array();
    
    	$xprofile_query[] = array(
    		'field'   => 'I am', // I sugget using field id for more efficiency.
    		'value'   => $searching_for,
    		'compare' => '=',
    	);
    
    	$args['xprofile_query'] = $xprofile_query;
    
    	return $args;
    }
    
    add_filter( 'bp_after_has_members_parse_args', 'buddydev_filter_members_list_herve' );
    
    

    Please feel free to modify and adapt it as you please.

    Best regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25287

    You are welcome.

  • Keymaster
    (BuddyDev Team)
    Posts: 25287

    We have 2 plugins for the same.

    Here is one
    https://github.com/mediapress/mpp-light-gallery

    We don’t have documents available for it yet and that’s why it is not available on our site. It will be in next few days or week.

    For now, When you activate it, Please visit relevant Tab on the MediaPress setting and Select Light Gallery view to use slider.

    Regards
    Brajesh