Get 15% off on all our plugins, themes and memberships till 4th December. Use coupon: BLACKFRIDAY2021.

BuddyDev

Search

Replies

  • Participant
    Level: Initiated
    Posts: 8
    Mayzfieldtv on #41757

    with backtick:

    /**
    * 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 = ‘author’; // please change with your desired role.
    $user->set_role( $role );
    
    }
    }
    
    add_action( ‘wp_login’, ‘buddydev_change_user_role_on_first_login’, – 1, 2 );
  • Participant
    Level: Initiated
    Posts: 8
    Mayzfieldtv on #41735

    Ok, that’s what I wanted. So private buddyblog posts aren’t like me setting posts as private in the wp admin? So if the author sets it as private, other users can still see the post but it will only show up on their profile, right?

  • Participant
    Level: Initiated
    Posts: 8
    Mayzfieldtv on #38664

    What about adding   in the text space so the person can just upload the media? How can I do that because I think that’s what rtmedia does, but I’m not sure.

  • Participant
    Level: Initiated
    Posts: 8
    Mayzfieldtv on #36387

    I am commenting on this because what I actually wanted is to be able to use circles as privacy options. So, I am asking why you said that if you are using buddyboss, you are not sure if you can provide newsfeed privacy, I mean is this because buddyboss is different? I just need to understand. *I was using youzer before and it was not really buddypress so I know how integrations can cause issues sometimes.

  • Participant
    Level: Initiated
    Posts: 8
    Mayzfieldtv on #34716

    I’m using latest version of wordpress with android google chrome browser. Elementor Hello theme. It only happens on sitewide activity, member profile and pages where mediapress is active. When I disable mediapress, it goes away. It’s pushing down the admin bar to create a white space the same size as the admin bar.

  • Participant
    Level: Initiated
    Posts: 8
    Mayzfieldtv on #34715

    I’m only using Hello Elementor theme and Elementor Pro. Is there a code that I can add to allow post without text? Hello Elementor doesn’t have any code.

  • Participant
    Level: Initiated
    Posts: 8
    Mayzfieldtv on #25879

    Also, how would I use this as a shortcode to put it in a different place?

  • Participant
    Level: Initiated
    Posts: 8
    Mayzfieldtv on #25878

    Is there a way to prevent people from double reposting? Currently when a user clicks the button multiple times, it reposts every time the button is clicked.