Replies
- Tosin on April 28, 2021 at 7:10 am in reply to: [Resolved] BuddyPress Auto Friendship Pro Adjustment #38348
Hello Ravi
The conflict is detected but the problem is not resolved as I still have buddypress profile completion plugin deactivated, if I activate it, the problem will occur again as I still want to use the buddypress profile completion plugin.
I still need buddypress profile completion plugin, auto friendship and the custom code to work together without any conflict
Thanks
- Tosin on April 27, 2021 at 3:13 pm in reply to: [Resolved] BuddyPress Auto Friendship Pro Adjustment #38329
Hello conflict detected
1. The code provided by Ravi solved part of the problem, the priority (11) worked.
2. The second problem was caused by buddypress profile completion plugin which I deactivated.While using profile completion plugin I have this filter enabled
// filter buddypress profile completion redirect url to a custom page. add_filter( 'buddypress_profile_completion_redirect', function ( $redirect_url ) { return get_permalink( 34168 ); } );
Then I need the code below to take priority over the redirect of buddypress profile completion plugin for newly registered users.
function buddydev_redirect_on_first_login( $user_login, $user ) { if ( ! function_exists( 'buddypress' ) ) { return; } // check for user's last activity. $last_activity = bp_get_user_last_activity( $user->ID ); if ( empty( $last_activity ) ) { update_user_meta( $user->ID, '_buddydev_first_login', 1 ); // Redirect you custom page. bp_core_redirect( bp_get_root_domain() . '/welcome' ); } elseif ( get_user_meta( $user->ID, '_buddydev_first_login', true ) ) { delete_user_meta( $user->ID, '_buddydev_first_login' ); // Try second login here. bp_core_redirect( bp_get_root_domain() . '/publish' ); } } add_action( 'wp_login', 'buddydev_redirect_on_first_login', 11, 2 );
Thanks for your patience
- Tosin on April 26, 2021 at 5:55 pm in reply to: [Resolved] BuddyPress Auto Friendship Pro Adjustment #38318
The code by Ravi stopped working, I don’t have any problem with the former code the issue is first login does not auto follow.
@sbrajesh the basic problem i’m facing is first login is not making auto followThanks
- Tosin on April 25, 2021 at 3:19 pm in reply to: [Resolved] BuddyPress Auto Friendship Pro Adjustment #38295
Gentle reminder
- Tosin on April 23, 2021 at 12:33 pm in reply to: [Resolved] Send email to user that has been inactive for 2 months #38256
im really interested in this
- Tosin on April 22, 2021 at 3:30 pm in reply to: [Resolved] BuddyPress Auto Friendship Pro Adjustment #38222
any update sir
- Tosin on April 21, 2021 at 10:45 am in reply to: [Resolved] BuddyPress Auto Friendship Pro Adjustment #38173This reply has been marked as private.
- Tosin on April 20, 2021 at 10:59 pm in reply to: [Resolved] BuddyPress Auto Friendship Pro Adjustment #38119This reply has been marked as private.
- Tosin on April 18, 2021 at 1:59 pm in reply to: [Resolved] BuddyPress Auto Friendship Pro Adjustment #38018
Hello,
I have tested the new version multiple times but the auto follow on first login is not working. its only working for Account Activation and User Registration
I use branded login plugin and have only login with email active. I do not login with username.
Hello brajesh,
Please what is the status on this request. this is an example of how I want the workflow to be https://wordpress.org/plugins/frontend-reset-password/