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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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
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?
Doing this might cause the "admin" button on the login page not to function properly, but that should only affect you.
--John
Doesn't seem to affect the admin button or the admin link, but I'm curious why the original suggestion wouldn't work.
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.