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

    Hi Martin,
    I am marking this topic as resolved as we released the upgrade 6 weeks ago. Please feel free to open a new topic if you need any further assistance.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25489
    Brajesh Singh on in reply to: buddyblog pro have shortcodes? #39282

    Hi,
    Hope you are doing well.

    BuddyBlpg Pro now supports shortcode for create/edit page for any post type and allows creating posts from any standalone page using shortcode.

    Please have a look.
    https://buddydev.com/better-user-submitted-posts-for-buddypress-buddyboss-with-buddyblog-pro/

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25489
    Brajesh Singh on in reply to: Buddyblog pro suggestions #39281

    Hi Tosin,
    Hope you are doing well.

    We have added one of your suggestions to BuddyBlog Pro. You can allow users to create/edit posts from standalone page instead of the user profile.

    https://buddydev.com/better-user-submitted-posts-for-buddypress-buddyboss-with-buddyblog-pro/

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25489

    Hi Tosin,
    Thank you for sharing the details.

    You can simply change the line

    
    add_action( 'wp_login', 'buddydev_redirect_on_first_login', -1, 2 ); 
    

    to

    
    add_action( 'wp_login', 'buddydev_redirect_on_first_login', 0, 2 ); 
    

    and this should work.

    Please let me know if it works for you or not?

    Regards
    Brajesh

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

    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: 25489
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25489

    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: 25489
    This reply has been marked as private.