Auto Login the user after account Activation On BuddyPress Based Social Networks
Remember what I promised a couple of days ago in my last post. Well, I am warming up with some new plugins.
Today, I am presenting you the Bp Auto Login On Activation Plugin. It will automatically make the users logged in when they activate their BuddyPress account.
It's simple, works flawless with Standard WordPress as well as WordPress multisite installs where BuddyPress is activated.
What is does:-
- When a user activates his account, it makes him logged in
- Once the user is logged in, It will redirect him to his/her profile
Well, that sounds simple but adds another usability feature to your site.
Some screenshots for the pleasure of eyes:-
The regular avatar upload page after registration
Then, the user clicks on the activation link in the email as shown below
And here is what the user sees if the activation link is correct(I mean if the key is valid)
And yes, this is a free plugin, so go ahead and download. Install it and let have your users better usability and registration experience 🙂
Download Link:-
https://buddydev.com/plugins/bp-autologin-on-activation/
Looking forward to hear your suggestions and feedback.
PS: Please do not use it if you are already using the BP Auto activate Auto Login plugin. This plugin is not required in that case.
Thanks for this great plugin, test it on my test site and it works
Thanks for the comment Abbey. Glad you liked it 🙂
Great, works lik a charm 🙂
Thanks for the comment Rune 🙂
This rocks! Thanks!
🙂 thanks for the comment.
hi Brajesh, another important plugin!
could you please tell, is there any possibility to redirect users to the specific my account > settings > page after activation?
thanks.
thanks Brajesh, was able to get it working myself + some comments from your site.
I'd like to redirect users to a different page after registration, how would I do that?
Is this suppose to prevent a welcome email from being sent out? Right now, if I don't use any other plugins, a welcome email is sent. I'd like to customize that email. I'm trying to use the SB Welcome Email Editor plugin, but it's not sending a welcome email, only the admin notification for new user.
Hi Brian,
as we talked on skype, I will update it here for others.
No, the plugin does not prevent sending emails. If you are on wordpress single site, BuddyPress will not send welcome emails.
It's great that you've created and released such a nice plugin!
Hi Brajesh,
Do you know of a plugin that works like this for WordPress Multisite WITHOUT Buddypress??
I would love it!
Please let me know.
Thanks.
Giovanni
Hi Giovanni,
I am sorry I am a little bit late in replying.
I just created one for you.
https://github.com/sbrajesh/wpms-auto-login-on-activation
This will work with WordPress multisite without BuddyPress.
Regards
Brajesh
@sbrajesh, how can i redirect user to edit profile page on activation.
regards
Hi Abbey,
You can filter on 'bpdev_autoactivate_redirect_url' like this
[sourcecode language="php"]
add_fllter('bpdev_autoactivate_redirect_url','redirect_to_edit_profile');
function redirect_to_edit_profile($user_id){
return bp_core_get_user_domain($user_id )."profile/edit/";
}
[/sourcecode]
That should make that happen.
I have WP 3.4.2 with multisite and BuddyPress 1.6.1.
I installed this plugin but for some reason once you click on the activation link of the email, it activates the account and redirects the user to their profile page, but they are not logged in.
Any idea why that would be?
I would like to use this plugin but is not working anymore. The ideal is to autologin the user after activation and prompt him to change his avatar.
Any chance for updating?
Thanks
Giorgos
How do I redirect the auto log in to a custom page. A WordPress page not buddypress.
Hi Omo-Oba,
Plea see this comment for the code example
https://buddydev.com/buddypress/auto-login-the-user-after-account-activation-on-buddypress-based-social-networks/#comment-100947
You can change that to any url.
Hope that helps.