BuddyDev

Search

Replies

  • Participant
    Level: Initiated
    Posts: 14
    Mayzfieldtv on #41832

    ok its all the mediapress pages on the members profile when they are on the gallery tab

  • Participant
    Level: Initiated
    Posts: 14
    Mayzfieldtv on #41831

    It’s the actual add media page.

  • Participant
    Level: Initiated
    Posts: 14
    Mayzfieldtv on #41807

    * for profile covers?

  • Participant
    Level: Initiated
    Posts: 14
    Mayzfieldtv on #41806

    That works thanks. And I also made the avatars sync across the network. But what about the covers?

    What are the equivalents of “bp_core_avatar_upload_path” and “bp_core_avatar_url”, for profile avatars?

    I’m using this:

    /***sync avatar across multisite network***/
    function bpdev_fix_avatar_dir_path( $path ){
       if ( is_multisite() && BP_ENABLE_MULTIBLOG )
           $path = ABSPATH . 'wp-content/uploads/';
       return $path;
    }
    add_filter( 'bp_core_avatar_upload_path', 'bpdev_fix_avatar_dir_path', 1 );
    //fix the upload dir url
    function bpdev_fix_avatar_dir_url( $url ){
      if ( is_multisite() )
          $url = network_home_url('/wp-content/uploads') ;
      return $url;
    }
    add_filter( 'bp_core_avatar_url', 'bpdev_fix_avatar_dir_url', 1 );
  • Participant
    Level: Initiated
    Posts: 14
    Mayzfieldtv on #41786

    If I enable Multi-Network, it will work?

  • Participant
    Level: Initiated
    Posts: 14
    Mayzfieldtv on #41785

    Multi Network isn’t enabled. Buddyboss is activated network wide on a normal multisite installation with the first blog as the home base.

  • Participant
    Level: Initiated
    Posts: 14
    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: 14
    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: 14
    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: 14
    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.