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

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

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

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

    You are welcome.

  • Keymaster
    (BuddyDev Team)
    Posts: 25509

    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

  • Keymaster
    (BuddyDev Team)
    Posts: 25509

    Thank you.

    I am looking forward to it.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25509
    Brajesh Singh on in reply to: [Resolved] Roles tied to storage limit #13073

    Hi Sam,
    Thank you for the suggestion.

    We will update this
    https://buddydev.com/plugins/mpp-flexible-storage-limit/

    To do it based on Role/Member type too.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25509

    Hi PresPhuture,

    I am unable to see that image(domain unreachable). The link seems dead at the moment.

    Can you please provide me a new link?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25509
    Brajesh Singh on in reply to: Lightbox revisited #13071

    Hi Audiomonk,

    Since you are not using out lightbox and using a custom one, We will need some time to help you with. I will ask @ravisharma to look at this and assist you.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25509

    Hi Richard,
    I am not sure of the solution.

    There are two things that I noted:-

    1. You were allowing upload image on the wall of a gallery which is not sported out of the box.

    2. Your point about the message is correct. It should have been more helpful if it said gallery does not exist.

    Thank you
    Brajesh