Yes, I think it can be achieved rather easily. I tried something quickly just now. Removed the login link from the albums.php page so that it wouldn't show up. Then you can just go to http://your_gallery_url/login.php and log in that way. I imagine you could password protect the login page without too much effort if you needed to (or maybe rename it some obscure name that only you would know?), just haven't thought that far ahead and I need to run out for a bit.
Does this give you a starting point at least?
josephp
Joined: 2002-10-03
Posts: 172
Posted: Tue, 2002-10-15 23:35
That thing wont work becuase I did tried do that, and if you go to the login.php and if you press to login, the browser will close itself, you are not in the gallery..
best bet, leave it alone
Gaile
Joined: 2002-07-20
Posts: 1301
Posted: Wed, 2002-10-16 00:09
Interesting, I wonder why it would close your browser window? I just tried it again on my site and it worked. It didn't close anything.
In the albums.php I commented out the following line only:
----
$adminCommands .= '<a href="#" onClick="'.popup("login.php").'">[login]</a>';
----
I saved the file and uploaded it to my server, replacing the current albums.php file. Then I opened a browser window and used the url 'www.mydomain.com/gallery/login.php', which brought up the login form. I put in my usual login name and password and hit enter. Then I typed in my gallery URL and I was logged in. The logout button will show up on your Gallery the same as it did before, so you simply logout the usual way.
Josephphp, what browser were you using at the time that it closed itself like that? I tried with IE5.5. I also have 3 versions of Opera and 2 versions of Netscape that I can try it out with if need be.
I can't see why moving the login to another page would be a problem, perhaps someone else has a thought regarding this?
myron
Joined: 2002-08-15
Posts: 8
Posted: Wed, 2002-10-16 17:21
Quote:
In the albums.php I commented out the following line only:
----
$adminCommands .= '<a href="#" onClick="'.popup("login.php").'">[login]</a>';
----
Gaile,
I just tried this and it worked in NS 7 and IE 6, sorta. After filling in username and password when I clicked the login button, a fresh login page appeared. I was able to use the back button in both browsers and get to my main gallery page and I was logged in. Any idea of how to get it to go straight back to the gallery after clicking the login button?
Thanks,
Myron
Gaile
Joined: 2002-07-20
Posts: 1301
Posted: Wed, 2002-10-16 17:57
Hello
Was up most of the night (insomnia....UGH), so this answer is probably not well thought out.
Why not just a direct link somewhere on the login page? If you are the only one that is accessing your login page, then no fancy code is needed to even have it appear after you enter your password and username. If you clicked the link before logging in, you wouldn't have admin access is all.
Am I making sense? I need more caffeine.... :grin:
Posts: 1301
Hi there...
Yes, I think it can be achieved rather easily. I tried something quickly just now. Removed the login link from the albums.php page so that it wouldn't show up. Then you can just go to http://your_gallery_url/login.php and log in that way. I imagine you could password protect the login page without too much effort if you needed to (or maybe rename it some obscure name that only you would know?), just haven't thought that far ahead and I need to run out for a bit.
Does this give you a starting point at least?
Posts: 172
That thing wont work becuase I did tried do that, and if you go to the login.php and if you press to login, the browser will close itself, you are not in the gallery..
best bet, leave it alone
Posts: 1301
Interesting, I wonder why it would close your browser window? I just tried it again on my site and it worked. It didn't close anything.
In the albums.php I commented out the following line only:
----
$adminCommands .= '<a href="#" onClick="'.popup("login.php").'">[login]</a>';
----
I saved the file and uploaded it to my server, replacing the current albums.php file. Then I opened a browser window and used the url 'www.mydomain.com/gallery/login.php', which brought up the login form. I put in my usual login name and password and hit enter. Then I typed in my gallery URL and I was logged in. The logout button will show up on your Gallery the same as it did before, so you simply logout the usual way.
Josephphp, what browser were you using at the time that it closed itself like that? I tried with IE5.5. I also have 3 versions of Opera and 2 versions of Netscape that I can try it out with if need be.
I can't see why moving the login to another page would be a problem, perhaps someone else has a thought regarding this?
Posts: 8
Gaile,
I just tried this and it worked in NS 7 and IE 6, sorta. After filling in username and password when I clicked the login button, a fresh login page appeared. I was able to use the back button in both browsers and get to my main gallery page and I was logged in. Any idea of how to get it to go straight back to the gallery after clicking the login button?
Thanks,
Myron
Posts: 1301
Hello
Was up most of the night (insomnia....UGH), so this answer is probably not well thought out.
Why not just a direct link somewhere on the login page? If you are the only one that is accessing your login page, then no fancy code is needed to even have it appear after you enter your password and username. If you clicked the link before logging in, you wouldn't have admin access is all.
Am I making sense? I need more caffeine.... :grin: