How to redirect "Favorites & Reviews" when not logged in

This topic contains 8 replies, has 3 voices, and was last updated by  Steve 6 years, 5 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #406696

    Steve
    Full Member
    Post count: 1019

    Hello. I would like to know how to customize the redirect of the “favorite” and “review” links when a user is not logged in. Current the default is set to /gd-info/

    I have set the permalinks as follows:

    Info: set to /member-options
    The login page set to : /login/

    https://everythingagricultural.com

    Kind regards,
    Steve

    #406711

    Guust
    Moderator
    Post count: 29970

    Goes to the correct page for me, I suggest to try another browser or delete cookies and caches.
    Both links take me too https://everythingagricultural.com/login/

    Thanks

    #406798

    Steve
    Full Member
    Post count: 1019

    Hello Guust. How are you?

    I really meant to say, “How do I turn off the Geo form fields for ‘both’ login and registration please?” See pic

    Kind regards,

    #406801

    Alex Rollin
    Moderator
    Post count: 27815

    Hello!

    Choose a different page for the GD Login in your GD > Permalinks, then remove the GD login links from the menu or redirect them to the login screen you are using.

    #406802

    Steve
    Full Member
    Post count: 1019

    Good morning Ales. Yes, I have created a new login page Login2 (will remove “2” later)

    My current issue is that I am getting page 404 errors in the following situations.

    On homepage when clicking on “Merchants” default image
    On Review Stars to post a review
    On favorites when attempting to post as favorite

    I am in the last instance taken to the “default login” page which is GD-login. Now, as far as this last issue I will try to set the nav gd setting to login-2/ (in the permalinks gd dashboard) but.. I have a feeling this will again put the gd login form on that page.

    #406803

    Steve
    Full Member
    Post count: 1019

    I should have added the test listing (this is an actual listing for testing_

    https://everythingagricultural.com/?geodir_search=1&stype=gd_merchants&s=+&snear=&sgeo_lat=&sgeo_lon=

    try clicking to add a review. if you are not logged in it will take you to the default gd login.. I just changed the permalinks to login-2/ and it took me to a page 404 error.

    Update.. I just re-saved Settings> Permalinks and it “appears” to be working now..

    #406804

    Steve
    Full Member
    Post count: 1019

    Here is another aspect. “Add listing” when redirects to https://everythingagricultural.com/login-2/?redirect_add_listing=https%3A%2F%2Feverythingagricultural.com%2Fadd-listing%2F%3Flisting_type%3Dgd_clubs_assoc

    In this case it is to add a club. As you can see we are redirected to a default GD form page. How do I remove the GD fields please?

    Kind regards,

    #406805

    Alex Rollin
    Moderator
    Post count: 27815

    Hello!

    Do make sure the all the pages you reference in GD > Permalinks exist.
    Once GD pages so they exist, then don’t use them. Use a different page for your other plugin.
    Login2 for GD, Login for your other plugin.

    Then you need to send users to the Login page, and you would use this:

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

    #406815

    Steve
    Full Member
    Post count: 1019

    Thank you kindly. It works fine now.

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

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

Open Support Ticket