I just bougth the plugin and instead of redirecting users to their profile page, I would like to send them back to the home page. Any ideas how to accomplish that?
Thanks!
Hi Rafael,
Thank you for purchasing the plugin.Please add this code to your theme’s functions.php or in the bp-custom.php
/** * Redirect user to site home page when they register/login using BuddyPress Auto Activate Auto Login plugin. * * @return string */ function buddydev_redirect_to_homepage_on_autologin() { return site_url( '/' ); } add_filter( 'bpdev_autoactivate_redirect_url', 'buddydev_redirect_to_homepage_on_autologin' );
It will redirect user to site home page.
Hope that helps.
Regards
BrajeshI pasted all the code above and my page now shows a blank page. I am unable to access the back end, I am trying to locate the themes function php in my FTP but I am not finding it. I need to remove that code. Do you know how I can locate that file in my FTP?
hi Rafael,
I am very sorry, I should have first asked if you were comfortable with code.Please login using ftp and navigate to wp-content/themes directory.
There you will see all the themes.
Also, if you don’t mind, I can quickly assist with it. You may send me temporary ftp details on my email(posting in next private reply) and I can quickly fix it.
Regards
BrajeshHi Brajesh,
I have sent my FTP details via email. I am not a developer but it seemed quite straight forward. Let me know if you need anything from me, and also many thanks for your super quick response.
Thank you.
I have it fixed now. Please check the site.The problem was you had pasted the code from forum notification email which had the code entity encoded. You should never copy it form the notification email.
I have updated the code there too.
Thank you
Brajesh
The topic ‘ [Resolved] BuddyPress Auto Activate Auto Login’ is closed to new replies.