GD login

This topic contains 9 replies, has 3 voices, and was last updated by  Paolo 8 years, 3 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #67703

    iwoaw
    Expired Member
    Post count: 150

    I set up the website to use GD login functionality. However, if I click on ‘login’ in the comment section of a post, I am directed to the WP login. Is there a way to make GD login take over all login?

    #67739

    Guust
    Moderator
    Post count: 29970

    URL and admin details please, so we can have a look for you.

    #67744

    iwoaw
    Expired Member
    Post count: 150
    This reply has been marked as private.
    #67851

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    that should be a question for WordPress forums.

    DId you try to search on google?

    I’ve found this example, did you try it?

    https://codex.wordpress.org/Plugin_API/Filter_Reference/login_url

    Thanks

    #67853

    Paolo
    Site Admin
    Post count: 31206

    This in your functions.php should do it:

    
    
    add_filter( 'login_url', 'my_login_page', 10, 2 );
    function my_login_page( $login_url, $redirect ) {
        return geodir_login_url();
    }

    Thanks

    #67926

    iwoaw
    Expired Member
    Post count: 150

    No, that doesn’t work even when I add ‘;’ at the end of the return line.

    #67928

    iwoaw
    Expired Member
    Post count: 150

    I also tried:

    add_filter( ‘login_url’, ‘my_login_page’, 10, 2 );
    function my_login_page( $login_url, $redirect ) {
    return home_url( ‘/connect/?redirect_to=’ . $redirect );
    }

    It still goes to the back end for post comments.

    #67998

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    I’ve just re-tested this on 2 different websites and it works perfectly:

    
    
    add_filter( 'login_url', 'my_login_page', 10, 2 );
    function my_login_page( $login_url, $redirect ) {
        return geodir_login_url();
    }

    I’ve added it to your website, cleared GD-Booster cache (given that we are testing as logged out users) and it is working on your website too.

    Thank you

    #68071

    iwoaw
    Expired Member
    Post count: 150

    Ah, cache… duh. sorry about that. Thanks.

    #68206

    Paolo
    Site Admin
    Post count: 31206

    You are welcome 🙂

Viewing 10 posts - 1 through 10 (of 10 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket