BuddyDev

Search

Auto Friendship Pro not add follow on create new user after Buddypress udapte

  • Participant
    Level: Initiated
    Posts: 1
    Peter Hudec on #42631

    Hi,
    after some updates applied in november we found that the “autofriendship” plugin is not working.
    we alread have
    add_filter( 'bp_auto_friendship_pro_enable_on_user_register', '__return_true' );
    on bp-custom.php

  • Keymaster
    (BuddyDev Team)
    Posts: 21035
    Brajesh Singh on #42635

    Hi Peter,
    Thank you for using the plugin.

    1. In our recent update, we have added the “Registration” as one of the triggers for automating friendship(In the plugin settings) and you can do it without code too. The code still works.

    Please note that with the use of Friendship list on Registration, there is a limitation, The list should not contain any conditions. Since the xprofile data is not available, if you change the list and add conditions based on xprofile, It won’t work for registration trigger(It will work for other cases).

    If you are using a list which needs to be applied on registration, please make sure that list is a global list(does not have any condition).

    Please let me know if you are already doing that.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 1
    Peter Hudec on #42664

    Hi,
    the users are create by registration on a membership page (woocommerce subscription + PaidMembersippro) as completed payment the new user are automatically loged on site. The user creation are made on 2 step. 1) user will be created
    2) the BB profile is set according to the type of membership purchased
    What are the best settings? Not all BB profile activate autofirendship

    Thanks

  • Keymaster
    (BuddyDev Team)
    Posts: 21035
    Brajesh Singh on #42701

    Hi Peter,
    Thank you.

    Can you please share screenshots of your lists(with the conditions applied to them). That will help me understand it better.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 7
    EvolutionTravel on #42724

    Hi Brajesh, check this screenshot:
    https://drive.google.com/file/d/1dO5cV1DuGFcoj3PUyC6S85wk9vtwyirg/view?usp=sharing

    in the condition, prime is a PMP level

  • Keymaster
    (BuddyDev Team)
    Posts: 21035
    Brajesh Singh on #42747

    Hi @evolutiontravel
    It will not work if you are using the list for user registered via Woo wubscription or some method that does not add xprofile field.

    The reason is on the “user_register” action, the member type is not available. It may be available if the user register and activates account via BuddyPress(BuddyBoss)’s default registration process.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 7
    EvolutionTravel on #42832

    Hi Brajesh,
    the strange thing is that until end of november, the autofriendship list was working even with conditions, but after end of november it got broken, even that the plugin version is still 1.0.7.
    So how could be this explained?

  • Keymaster
    (BuddyDev Team)
    Posts: 21035
    Brajesh Singh on #42842

    Hi,
    Is there any chance that you updated some other plugin which directly or indirectly affects member type.

    From the screenshot, you are setting friendship based on member type. There are 2 possible reasons for it to not work:-

    1. The member type for user is set at a later point and it not available on the action ‘user_register’ priority 10.

    2. Or some plugin is calling a redirection on/before ‘user_register’ priority 10.

    Do you have a staging site? If yes, Please setup it with test gateways(dummy payment gateways) and provide us access to dashboard/ftp. We can debug it there and provide a solution as well as the details on what was happening.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 7
    EvolutionTravel on #42999

    Hi Brajesh, actually the list is working.
    I have an additional question:
    – actually , the List type has 3 options available:
    Add as Friends
    Add as Followers
    Add as Following

    so basically the plugin is working only to add some user as friend or follower, but not to remove it.
    Is it possible to have a new option in the List type, example: Remove as Following? , so when the plugin runs, it removes a user as follower of another user when all conditions are met?
    Is this a feature you can provide?

  • Participant
    Level: Initiated
    Posts: 7
    EvolutionTravel on #43253

    Hi, can you answer my last question please?

You must be logged in to reply to this topic.

This topic is: not resolved