BuddyDev

Search

[Resolved] BuddyPress Auto Friendship Pro

  • Participant
    Level: Master
    Posts: 196
    Niculae Constantinescu on #49500

    Hi,
    The extension it is adding the users as friends but they are not visible on the Profile Page.
    I can see only the number of friends, on the Friends Tab.
    Please see this user for a better understanding.
    https://listera.ro/membri/catabb07/friends/

    Thank you
    Cristi

  • Participant
    Level: Master
    Posts: 196
    Niculae Constantinescu on #49501

    Hi,

    I have three members to the global friendship list.
    The friends were added upon the user registration.
    There are only showing two on that user Profile, perhaps the new registered user deleted one.

    Thank you
    Cristi

  • Keymaster
    (BuddyDev Team)
    Posts: 24593
    Brajesh Singh on #49505

    HI Cristi,
    Thank you for using the plugin.

    It seems you are using the trigger “On Registration” to add friends. I will suggest using Activation trigger instead.

    The issue is BuddyPress/BuddyBoss will not list a member f they have not logged to the site at least once(except when viewing alphabetically).

    Regards
    Brajesh

  • Participant
    Level: Master
    Posts: 196
    Niculae Constantinescu on #49509

    Hi,

    I tried that but it does not add any friend.
    I am using a Custom Registration Page with Auto Login After Registration and Redirecting to an Internal Page after Registration.
    I am also using this code from BuddyBoss:

    //Disable validation for registration
    function disable_validation( $user_id ) {
    global $wpdb;
    $wpdb->query( $wpdb->prepare( “UPDATE $wpdb->users SET user_status = 0 WHERE ID = %d”, $user_id ) );
    $users = $wpdb->get_results( “SELECT activation_key, user_login FROM {$wpdb->prefix}signups WHERE active = ‘0’ “); foreach ($users as $user) {
    bp_core_activate_signup($user->activation_key);
    BP_Signup::validate($user->activation_key); //fix roles
    $user_id = $wpdb->get_var( “SELECT ID FROM $wpdb->users WHERE user_login = ‘$user->user_login'”); $u = new WP_User( $user_id );
    $u->add_role( ‘subscriber’ );
    }
    } add_action( ‘bp_core_signup_user’, ‘disable_validation’ );
    add_filter( ‘bp_registration_needs_activation’, ‘__return_false’ );
    add_filter( ‘bp_core_signup_send_activation_key’, ‘__return_false’ );

    If you have any other suggestion it will be perfect
    Thank you
    Cristi

  • Keymaster
    (BuddyDev Team)
    Posts: 24593
    Brajesh Singh on #49516

    Hi Cristi,
    Are the same users visible on members directory?

    The plugin simply addes them as members, It does not deal with their visibility. The reason for user being not visible could be:-

    1. They have not logged in to the site
    2. Or you are using code, plugin to hide some members.

    Please check.

    Regards
    Brajesh

  • Participant
    Level: Master
    Posts: 196
    Niculae Constantinescu on #49522

    Hi,

    You are right.
    There was a code that hidden the users.
    I removed that code and everything it is OK now.
    Thank you for pointing me to the right direction.

    Regards
    Cristi

  • Keymaster
    (BuddyDev Team)
    Posts: 24593
    Brajesh Singh on #49526

    Hi Cristi,
    You are welcome!

    I am glad I was able to assist.

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: resolved