gd-login redirect

This topic contains 10 replies, has 4 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
  • #68453

    infoseclist
    Expired Member
    Post count: 29

    We are getting ready to go into production with a test set of users and realized when users are logged in everything works fine. However, when they are logged out, they get redirected to the gd-login form.

    1.) We are using WPEngine so caching is enabled by default so I think that is causing an issue
    2.) From a code perspective, where can we just point the login / register to our custom page which we developed that will automatically redirect back to GD instead of using the gd-login page.

    Thanks

    #68454

    infoseclist
    Expired Member
    Post count: 29

    Sorry. Im sort of slow today. Its in the settings for future reference.

    #68473

    Guust
    Moderator
    Post count: 29970

    So it is resolved?

    #68477

    infoseclist
    Expired Member
    Post count: 29

    Yes it is resolved. . Apparently I didnt get enough coffee today

    #68489

    Guust
    Moderator
    Post count: 29970

    Thanks for letting us know 🙂

    #112997

    pablo peco
    Expired Member
    Post count: 50

    Hi, as I can redirect to a common page gd login ?
    use the link redirection of you, but I have no open registration.
    example : gd login to any page .
    I am using theme Kleo Child my web is http://www.radiosolar.com.ar
    Menu bar in Publicar (Publish) – Anuncio (gd_place)- Evento (gd_event)
    thank you.
    Pablo

    #113065

    Paolo
    Site Admin
    Post count: 31206

    Please see: https://wpgeodirectory.com/docs/redirecting-the-login-page/

    I hope I understood the question correctly.

    Let us know,

    Thanks

    #113600

    pablo peco
    Expired Member
    Post count: 50

    Hi,If you use this code , but it did not work , clear the cache and I continued to redirect a page that says the record buddypress not open . wordpress enable logging in and shows me buddypress subscribe page .
    Thank you so much.

    #113801

    Paolo
    Site Admin
    Post count: 31206

    HI,

    I really don’t understand, please try in spanish. (I will reply in English though)

    Thanks

    #114189

    pablo peco
    Expired Member
    Post count: 50

    Gracias Paolo, el código no funciono, me envío a la pagina de registro nuevamente. El registro esta desactivado en mi web.
    Busco que el enlace del menu publicar redirija a los usuarios no logueados a una página personalizada.

    Muchas Gracias
    Pablo

    #114224

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    you need to add this code in your theme functions.php file:

    
    
    add_filter('geodir_login_url','change_geodir_login_url',10,3);
    function change_geodir_login_url($login_url,$args,$gd_page_id){
    //change the url to whatever you want.
    $login_url = 'http://your-site.com/my-login-page';
    return $login_url;
    }

    Simply change this line : $login_url = ‘http://your-site.com/my-login-page’;

    and add the page where you want ppl to be redirected.

    If this doesn’t work, please provide a link and admin credentials and we will have a look. Please also let us know on which page you want users to be redirected.

    Thanks

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

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

Open Support Ticket