BuddyDev

Search

[Resolved] BuddyPress Auto Activate Auto Login

  • Participant
    Level: Initiated
    Posts: 2
    RAFAEL Junquera on #11722

    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!

  • Keymaster
    (BuddyDev Team)
    Posts: 24231
    Brajesh Singh on #11723

    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
    Brajesh

  • Participant
    Level: Initiated
    Posts: 2
    RAFAEL Junquera on #11724

    I 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?

  • Keymaster
    (BuddyDev Team)
    Posts: 24231
    Brajesh Singh on #11725

    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
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 24231
    Brajesh Singh on #11726
    This reply has been marked as private.
  • Participant
    Level: Initiated
    Posts: 2
    RAFAEL Junquera on #11727

    Hi 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.

  • Keymaster
    (BuddyDev Team)
    Posts: 24231
    Brajesh Singh on #11728

    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

  • Keymaster
    (BuddyDev Team)
    Posts: 24231
    Brajesh Singh on #11746

    Marking it as resolved as per email.

The topic ‘ [Resolved] BuddyPress Auto Activate Auto Login’ is closed to new replies.

This topic is: resolved