PDA

View Full Version : Customising the login screen


Hoobamac
08-18-2003, 10:21 AM
I Have a reseller account and have succesfully customised the skin to my company 'look' - however I noticed the login screen doesn't change, is there any way I can customise the login screen even if I have to create a custom form?

many thanks

DirectAdmin Support
08-18-2003, 11:53 AM
You can't change the login form that shows up for port 2222, but you can create your own login form from a remote location:

http://www.directadmin.com/forum/showthread.php?s=&threadid=168&highlight=login

The reason you can't set the login form through a skin, is because the user has not yet logged in, so DirectAdmin won't know which skin to use for the webpage.

John

Hoobamac
08-19-2003, 01:00 AM
This will do nicely! thank you:)

Hoobamac
08-19-2003, 05:32 AM
The form is great, works well and is totally customisable..however if a user enters the wrong details it throws him back to the default DA (http://yourdomain.com:2222/CMD_LOGIN) Is there any way of stopping this from occuring, either by redirecting to the login page I have created or just throwing up a message instead...

really appreciate your help

thx

:D

DirectAdmin Support
08-19-2003, 08:40 AM
Yes, that was a feature we added a while back.

http://www.directadmin.com/forum/showthread.php?s=&threadid=168&highlight=login

The last post has a sample with how to do this. Just add the form field:<input name="FAIL_URL" type="hidden" value="http://www.domain.com/fail.html">
John

Hoobamac
08-19-2003, 09:29 AM
Excellent thanks!

just one last bit to the puzzle and then I am done! From the DA control panel the signout button takes you back to the good old DA login screen! Is there anyway to get this to go back to my custom login page... or is it just a case of putting a static link in it's place? Does it matter that it isn't loging out?

thx

DirectAdmin Support
08-19-2003, 08:40 PM
I think what I'll do, is add another form value: "LOGOUT_URL" .. It will just be stored in the session, so when the user clicks the logout button, guess what :) .. they'll be forwarded to the "LOGOUT_URL"... sound good?

John

jdlitson
08-20-2003, 12:04 AM
That Sounds wonderful :)

Hoobamac
08-20-2003, 02:08 AM
sounds great to me, thank you,

:)

I do appreciate your help :)

Hoobamac
08-21-2003, 06:22 AM
Hi John,

what do I need to do to use this new form value, do I need to wait for an update? if so any ideas when...

not hassling just want to get an idea...;)

DirectAdmin Support
08-21-2003, 09:47 AM
Next release. Probably a few days. Whenever I make a change, it's aways going to be available for the next release.

John

Hoobamac
08-21-2003, 10:48 AM
cool... thanks :D

Hoobamac
09-05-2003, 12:47 AM
Has this update gone live yet?

thx

jdlitson
09-05-2003, 12:34 PM
Yes, Here is the html


<input name="LOGOUT_URL" type="hidden" value="http://www.yoursite.com/yourpage.htm">

Hoobamac
09-06-2003, 02:20 AM
Sorry for appearing dumb. but where do I put this code? On my custom login page?

thanks

Hoobamac
09-06-2003, 02:48 AM
Ok, well I guess I have answered my own question..that did appear to work!!

thx for the new fix, direct admin is looking pretty cool now!



:D

DirectAdmin Support
09-06-2003, 09:21 AM
Hello,

This thread has all information on the login screen.
http://www.directadmin.com/forum/showthread.php?s=&threadid=61&highlight=custom+login

John

jdlitson
09-06-2003, 11:41 AM
You're not dumb.
There's a first time for every thing.

Glad you found where to put it.
-Jason