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: 25468
    Brajesh Singh on in reply to: [Resolved] Media in comments #7397

    Hi Ben,
    I am sorry I haven’t worked on it yet. I will certainly be doing it this week.

    Thank you for notifying me the login issue, is it happening in any specific browser or all the browser?

    Regards
    Brajesh

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

    I am sorry if it was not very clear.

    As you mentioned you wanted the code to show dropdown and a submit form, the above code will show a dropdown wherever you put it.

    You can put it inside any form and add the submit button. You will have to handle the form action yourself though.
    Hope that clarifies.

  • Keymaster
    (BuddyDev Team)
    Posts: 25468
    Brajesh Singh on in reply to: MediaPress set Profile Photo #7395

    Hi Jay,
    I am sorry for the trouble.

    is there any chance that you are on PHP version less that 5.3?

    The function is part of PHP and should be available by default on PHP 5.3+

    http://php.net/manual/en/function.mime-content-type.php

    For lower that PHP 5.3, you may need to enable the Fileinfo extension

    http://php.net/manual/en/book.fileinfo.php

    Please do note that behaviour of MediaPress and its extension is not tested on PHp version lower than 5.3

    Thank you
    Brajesh

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

    Thank you for confirming. Glad it worked 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 25468
    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: 25468
    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: 25468

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