• pk-71

    (@pauljohnknight)


    Hi

    Is it possible to set UM so that when user logs in, they don’t by default go to their user page. I’d like it so they they go to a page of my choosing (e.g. the site homepage, or a default page I’ll set up). Then they’ll just get access to certain extra pages (which I know I can control with UM on each individual page, and I’ve worked out how to do this part).

    I just can’t seem to see anywhere on the plugin backend how to change the default url the user goes to after they log in.

    It’s a great little plugin, by the way that I think will work well with woocommerce potentially.

    Paul

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter pk-71

    (@pauljohnknight)

    Just to let you that did work, but if you change the user page default re-direct to the site’s homepage it breaks the entire site.

    THIS IS VERY VERY BAD !!!

    You must have misinterpreted the instructions. You are not supposed to select the home page but a custom user page. For example, if you created a custom user page to display user profiles called ‘member details’, you would then select that page instead of the USER PAGE. The Bottom line is that the user page you select must have shortcode(s) which a homepage doesn’t.

    I hope this clarifies.

    Thread Starter pk-71

    (@pauljohnknight)

    I did not misinterpret the instructions at all, I mentioned that I would like it to go to a page such as my homepage in my initial question.

    Neither yourself, nor that article, makes you aware of the dangers of using your homepage/front page as a re-direct page for users.

    I am just grateful it was a localhost site and not a live site because it also deleted my front page entirely when I removed the plugin.

    I suggest you amend or replace that original article so it makes users aware of the dangers of what happens if they do this.

    What dangers? Are you testing UM in your computer using something like WAMP?

    if you change the user page default re-direct to the site’s homepage it breaks the entire site.

    What exactly are you doing? Are you editing the user page in Pages and trying to redirect from there? Or are you trying to redirect in UM => User Roles?

    The instructions are precise, so you must be doing something wrong.

    I think I now understand the source of your confusion. You probably thought that by selecting ‘homepage’ with the pulldown menu in UM => Settings => Set Up => Login page, you will be redirected to the Homepage, right?

    If so, that’s not what the instructions said…

    Thread Starter pk-71

    (@pauljohnknight)

    I’m using MAMP and I changed the page the user sees after login to the homepage because this is where the content redirects are going to be on the site at the client’s request (i.e links to relevant articles etc).

    I did UM > Settings > User Page and changed the drop down option to the home page.

    Then the sky fell in.

    When I removed the plugin it also removed my homepage ??

    Obviously I know now going forward not to do this, but perhaps it should be made clearer for others in the future. Also if redirecting the user to the homepage is such a bad thing to do, why do you have it as an option in the dropdown menu? It would take a relatively simple if / else statement to remove the front page from those options?

    I did UM > Settings > User Page and changed the drop down option to the home page.

    Right! Just like I thought you did in my comments above. You were not supposed to do that.

    The instructions just indicate that you make sure you are using the default login page. Example; if you made 2 login pages, you select the one you are testing in UM => Settings => Set Up => Login page. It doesn’t mean or say that it would redirect you to homepage if you select ‘homepage’ from the pull down menu.

    The instructions also suggest that if login page is selected correctly then you go to UM => User Roles to change redirection.

    • This reply was modified 8 years, 4 months ago by borisv.

    One more thing, live sites don’t break up if you select Homepage in UM => Settings => Set Up => Login page.

    The setting is inconsequential as far as changing core functions is concerned. You should analyze and review all your configuration settings before you decide to transfer that site you have in your computer to a web server.

    You’ve been advised.

    • This reply was modified 8 years, 4 months ago by borisv.
    Thread Starter pk-71

    (@pauljohnknight)

    If you look at my original reply Boris, I do say what you recommended works.

    My point is about what happens if you change the user page redirect, whatever your opinion, I just don’t think you should have a dropdown menu for changing the user page that breaks the user’s site. At least have a warning if you know this will happen !!!

    Please pay attention. It doesn’t break any ‘LIVE’ sites. If it’s breaking up the demo site in your computer, it’s a sign that something is not configured correctly in the relational data base side. I would look into it before I decide to transfer it to a web server.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Prevent Default to ‘User’ Page When User Logs In’ is closed to new replies.