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: 25377
    Brajesh Singh on in reply to: Different Member Types, Different Display Names #39278

    Hi,
    I am sorry for the delay.

    You will need assistance from BuddyBoss support. I am unable to find time to assist you with BuddyBoss and other other plguins.

    The above code is for BuddyPress.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25377
    Brajesh Singh on in reply to: One Click Spam Marker – Show for Editor role #39277

    Hi Darren,
    Thank you for the patience.

    Please upgrade to 1.1.2 and add the following code to your theme’s functions.php

    
    /**
     * Delegate mark spammer capability to editor.
     */
    add_filter( 'bp_ocms_can_moderate_users', function ( $can, $user_id ) {
    
    	if ( user_can( $user_id, 'edit_others_posts' ) ) {
    		$can = true;
    	}
    
    	return $can;
    }, 10, 2 );
    

    That will allow editors to mark users as spammer.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25377

    Hi Tosin,
    the code is working perfectly from me. I tried the following code(create a copy of Subscriber role and named volunteer)
    You ca see the role in Dashboard->Members-> 2nd column of the list

    
    /**
     * Change user role on first login
     */
    function buddydev_change_user_role_on_first_login( $user_login, $user ) {
    
    	if ( ! function_exists( 'buddypress' ) || user_can( $user->ID, 'manage_options' ) ) {
    		return;
    	}
    
    	// check for user's last activity.
    	$last_activity = bp_get_user_last_activity( $user->ID );
    
    	if ( empty( $last_activity ) ) {
    		$role = 'volunteer'; // please change with your desired role.
    		$user->set_role( $role );
    
    	}
    }
    
    add_action( 'wp_login', 'buddydev_change_user_role_on_first_login', - 1, 2 );
    
    

    I tried following use case.

    1. Registered a user via Dahsboard->User->New and logged, it changed correctly.
    2. Registered from front end using Auto Login and Auto Activation plugin, worked.
    3. Disabled Auto Activation plugin, registered a new account, activated using the key and logged, it worked too.

    For me, all the use cases are working. Please check the plugins or code that you might be using. They can have some effect on it.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25377
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25377

    Hi Hugo,
    Thank you for posting.

    The Facebook Like Activity does not remove any activity type. It simply merges the streams at one place.

    I am unable to guess any reason for it.

    Also, by status update, you mean you are using some specific plugin for that?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25377
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25377
    Brajesh Singh on in reply to: [Resolved] BP Featured members CSS #39264
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25377
    Brajesh Singh on in reply to: [Resolved] BP Featured members CSS #39262
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25377
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25377

    Hi Nifty,
    Thank you for confirming.

    Regards
    Brajesh