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: 25318
    Brajesh Singh on in reply to: Have an idea for the circle.. #19581

    Hi Tangape,
    No, this is not available.

    For the Circle, you will need someone to do a custom job for it as it need storing/editing/displaying and I am unable to assist you a few lines(It will take more lines).

    2. For your usernames, you can write a function like this

    
    function buddydev_custom_get_user_ids( $user_names ) {
    
    	$ids = array_map( 'bp_core_get_userlink_by_username', explode( ',', $user_names ) );
    
    	return array_filter( $ids );
    }
    
    

    and then use it like

    
    
    $user_ids = join(',', buddydev_custom_get_user_ids( 'aaa,bbb,ccc,ddd,eee' ) );
    
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25318

    Hi,
    The jQuery code above will not work with the current BP Nouveau theme. If you are using legacy, please do let me know.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25318

    Thank you 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 25318
    Brajesh Singh on in reply to: [Resolved] Unable to create Project inside a Group #19570

    If it is happening for group admin, I can certainly help with it. I will check tonight and update you.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25318
    Brajesh Singh on in reply to: [Resolved] Unable to create Project inside a Group #19567

    Hi Daniel,
    I am sorry, I can not sell code for other’s plugin.

    I can modify it for you but I see a lot of limitation for me.

    1. The permissions for editing/deleting tasks need to be more fine grained and I am not much familiar with this plugin, so doing it fine grained will not be feasible(I am unable to spend much time on the plugin).

    If you want to allow all members to edit/delete tasks(I don’t think it as a good idea), please do let me know and I can share the modified file quickly.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25318

    Hi Thorsten,

    I am sorry the plugin does not handle role to role or member type to member type restrictions yet. We do plan to add it(and also per role restriction) sometimes early next year.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25318

    Hi Damian,
    Thank you for using MediaPress.

    You can use something like this

    
    
    function mpp_custom_gallery_view_restriction() {
    
    	if ( is_super_admin() || bp_is_my_profile() || ! mpp_is_single_gallery() || ! function_exists( 'pmpro_getMembershipLevelForUser' ) ) {
    		return;
    	}
    
    	$level = pmpro_getMembershipLevelForUser( get_current_user_id() );
    
    	// do your check here and
    
    	if ( ! $level ) {
    		// restrict.
    		bp_core_redirect( home_url( '/' ) );
    	}
    
    }
    
    add_action( 'bp_template_redirect', 'mpp_custom_gallery_view_restriction' );
    

    Please modify it according to your need.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25318
    Brajesh Singh on in reply to: [Resolved] Is buddyBlog (in)compatible with WP 5.0+? #19560

    Hi Richard,
    No worries. Thank you for sharing the details.

    I am glad it was not an issue 🙂

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25318
    Brajesh Singh on in reply to: BP messages are all time stamped with 01:00 #19558

    Hi Carsten,
    I am sorry, It is very specific to theme and I am unable to help you with it.

    Please try switching theme and see if it persists.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25318
    Brajesh Singh on in reply to: [Resolved] php 7.2 support? #19557

    Sure 🙂