Menu

Startup page

Help
2004-06-23
2004-06-24
  • Ken Nordberg

    Ken Nordberg - 2004-06-23

    Hi again,
    Question: I require all users to log in to be able to view any data. Now there seems to be no rules to dictate what page opens up after they log on. I would like users that log on to automatically be taken to the Welcome page. I have news and messages there and I want that page to open up regardless of any configuration the user may have. How can I specify what page will open after a successful login for any user?

    Any help appreciated.

    Thanks,
    Ken.

     
    • John Finlay

      John Finlay - 2004-06-23

      Normally, logging in will take a user to their MyGedView page.

      You can force the login to go to the Welcome page by changing the $url variable on line 86 of login.php to index.php?command=gedcom

      --John

       
      • BWeb

        BWeb - 2004-06-23

        You mean line 40? (39 if you are on the beta).  Tried it but it doesn't work for me (beta):

        if (empty($url)) $url = "index.php?command=gedcom";

        I added:

        $url = "index.php?command=gedcom";

        above this to force it and it seems to work, but I can't be certain that it's a good idea doing it this way.  Would this method screw any other logic?

         
    • John Finlay

      John Finlay - 2004-06-23

      Doing this might cause the "admin" button on the login page not to function properly, but that should only affect you.

      --John

       
      • BWeb

        BWeb - 2004-06-23

        Doesn't seem to affect the admin button or the admin link, but I'm curious why the original suggestion wouldn't work.

         
    • Ken Nordberg

      Ken Nordberg - 2004-06-24

      Thank you for your help. My admin button certainly is affected. When I make the changes mentioned above the login behaves exactly the way I want it to, but the admin button has the same effect as the login button. But I can live with that.

      Thanks again,
      Ken.

       

Log in to post a comment.