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: 25348
    Brajesh Singh on in reply to: [Resolved] Mediapress gallery upload #7393

    Thank you for confirming. Glad it worked 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 25348
    Brajesh Singh on in reply to: Getting error from plugin #7392

    Hi Tom,
    Thank you.

    The update is available now.

    If you are using BuddyDev dashboard, The update will be available and you can upgrade like any normal plugin.

    https://buddydev.com/plugins/buddydev-dashboard/

    Otherwise you can delete and manually upload the plugin.

    Hope that helps.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25348
    Brajesh Singh on in reply to: Getting error from plugin #7387

    Hi Tom,
    I had a look.
    Most probably somewhere WP_User_Query is being used before bp_include action and that has caused it.

    To fix it, I have modified line 248 from

    
    if ( !  function_exists( 'buddypress' )  ) {
    			return ;
    		}
    

    to

    
    if ( !  function_exists( 'buddypress' ) || ! function_exists( 'bp_profile_visibility_loader' ) ) {
    			return ;
    		}
    

    I am pushing a release, that will fix it. I am sorry for the inconvenience.

  • Keymaster
    (BuddyDev Team)
    Posts: 25348

    Hi,
    My apologies for the inconvenience.

    Can you please post me a screenshot showing how the widget translation is happening on wpml. we have made the title translatable using the po/mo. That should have worked.

    https://github.com/buddydev/bp-featured-members/blob/master/core/class-bp-featured-members-widget.php#L14

    If you can provide me any help, I will be very happy to add it quickly.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25348
    Brajesh Singh on in reply to: Feature: Featured members in different categories #7384

    Hi,
    Thank you for posting.

    I am sorry but if I understand correctly, It is more like you want to create user lists. Since the plugin does not save details about a list name, It won’t be feasible to create multiple lists.

    However it is possible to display multiple lists based on role/member types. If that works for you, Please do let me know, I can add a role selector in the widget.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25348
    Brajesh Singh on in reply to: [Resolved] Mediapress gallery upload #7383

    Hi Jay,
    Can you please try removing space and see if that works. Something like this
    jpg,jpeg,png,gif.

    I am sorry, but we forgot to trim the extensions. Can you please give it a try and let me know.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25348
    Brajesh Singh on in reply to: Mulsite | Child Site Privacy #7382

    Hi there,
    Thank you for posting.

    before I post the code, i want to clarify one thing, except the “Network administrator(SuperAdmin)” all other roles are specific to the site. So a user who is Editor on site 1 may not have the same role on site 2.

    For the code part.

    
    
    /**
     * Redirect users to main site home page if they are logged in and don't have the required role on the sub site
     */
    function buddydev_check_redirect_roles_on_subsite() {
    
    	if ( is_main_site() || ! is_user_logged_in() ) {
    		return ;//no need to do anything on the main site or if the user is not logged in?
    	}
    
    	//this is incorrect way to do things, instead of role, please use the
    	$roles = wp_get_current_user()->roles;
    
    	$allowed_roles = array( 'administrator', 'editor' );
    
    	$found = array_intersect( $allowed_roles, $roles );
    
    	if ( empty( $found ) ) {
    		wp_redirect( network_home_url('/') );
    		exit( 0 );
    	}
    
    }
    
    add_action( 'template_redirect', 'buddydev_check_redirect_roles_on_subsite', 0 );
    
    

    You can put it in your functions.php or if using BuddyPress, you can put it in your bp-custom.php

    Hope that helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25348
    Brajesh Singh on in reply to: Getting error from plugin #7381

    Hi Tom,
    My apologies for the inconvenience.
    Please allow me half an hour to check and get back to you.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25348
    Brajesh Singh on in reply to: Get drop downlist of “certain” pages #7380

    Hi,
    you can use the following code

    
    <?php wp_dropdown_pages( array('include'=> array( 2,3,4 ) ) );?>
    
    

    Please make sure to pass the correct page ids in the inclide array.

    Hope that helps.
    regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25348
    Brajesh Singh on in reply to: A few noticeable bugs #7379

    Thank you Graham.

    This weekend, I looked at the theme a lot and I was not able to reproduce the cover image.

    I am guessing the problem is happening due to caching there(The css is not generating). Since you seem to be on Site Ground, do you have a staging server where we can disable/clear cache and check again? I did not change it on the site as it is live.

    Thank you
    Brajesh