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.phpHi 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
BrajeshHi,
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 autofirendshipThanks
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
BrajeshHi Brajesh, check this screenshot:
https://drive.google.com/file/d/1dO5cV1DuGFcoj3PUyC6S85wk9vtwyirg/view?usp=sharingin the condition, prime is a PMP level
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
BrajeshHi 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?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
BrajeshHi 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 Followingso 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?
You must be logged in to reply to this topic.