Redirecting Login page

This topic contains 16 replies, has 5 voices, and was last updated by  xaper 6 years, 4 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #479811

    xaper
    Expired Member
    Post count: 28

    Hi!
    I’m trying to redirect the login page.
    I’ve created a snippet with this code:

    “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://quientieneque.es/wp-login’;
    return $login_url;
    }”

    But it doesn’t work.

    Am i doing anything wrong?

    Many thanks,

    Xavi

    #479812

    xaper
    Expired Member
    Post count: 28

    I have tried with this code but the result is the same:

    “add_action(‘init’ , ‘geodir_redirect_to_default_login’) ;
    function geodir_redirect_to_default_login()
    {
    if(isset( $_REQUEST[‘geodir_signup’]))
    {
    wp_redirect(home_url().’/http://quientieneque.es/wp-login’);
    exit();
    }
    }”

    Please, help me! 😉

    #479828

    Kor
    Moderator
    Post count: 16516

    Hi Xaper,

    Thanks for your post. This can now be done using userswp.io plugin https://wpgeodirectory.com/docs-v2/integrations/userswp/#features .

    Thanks!

    #479831

    xaper
    Expired Member
    Post count: 28

    Hi

    Thanks for your answer.

    I’m working with V1. When i update to V2 everything goes out of place, modules disappear… and i have no time, at this moment, to rebuild the whole web. I’ll do it later, but i need to publish the current web as soon as posible.

    Is there any thing i can do in V1?

    Thanks,

    xavi

    #479850

    xaper
    Expired Member
    Post count: 28

    More info:
    i’ve made a html redirection:

    “<html>
    <head>
    <meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″>
    <meta http-equiv=”refresh” content=”0;URL=http://quientieneque.es/wp-login/”>
    </head>
    <body>
    </body>
    </html>”

    But, when i make a search, appears the wp-login page instead the listing.

    Is it correct?

    Thanks again,

    Xavi

    #479867

    Paolo
    Site Admin
    Post count: 31211

    This is docs for V1 about redirecting login: https://wpgeodirectory.com/docs/redirecting-the-login-page/#login

    The only way to see why it’s not working on your site would be to check your website backend.

    However for that, you need to subscribe, support for websites with add-ons installed is provided exclusively to active members.

    Thanks

    #479895

    xaper
    Expired Member
    Post count: 28

    Hi

    I’m already suscribed. How can i get the support?

    I’m really in a hurry.

    Many thanks,

    Xavi

    #479897

    Kor
    Moderator
    Post count: 16516

    Hi Xavi,

    Thanks for subscribing. Could you share your Website WP admin access here in private reply so that we could check what you’ve on your end?

    Thanks!

    #479900

    xaper
    Expired Member
    Post count: 28
    This reply has been marked as private.
    #479902

    Alex Rollin
    Moderator
    Post count: 27815

    I cannot login with those credentials. Please validate and repost

    Thanks

    #479903

    xaper
    Expired Member
    Post count: 28
    This reply has been marked as private.
    #479949

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    please downgrade your copy of Supreme to V1.
    You can download it from our shop (free).

    #480015

    xaper
    Expired Member
    Post count: 28

    Done!

    Still not working…

    Thanks

    #480021

    Kiran
    Moderator
    Post count: 7069

    Hello Xaper,

    From which page you want to redirect to /wp-login/ page. I checked in login popup from menu and links ahs already /wp-login/.

    Let us know.

    Kiran

    #480023

    xaper
    Expired Member
    Post count: 28

    Hi

    I just need the site is protected by a password, so only registered users can visit the web.

    When i make the login page as home page, i can still see the menu at the top, amb any user can jump the registration.

    Maybe i’m complicating the solution.

    Thanks,

    xavi

Viewing 15 posts - 1 through 15 (of 17 total)

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount