Hi everybody,
Since I was searching a lot and I couldn't find too much information about how to customize the login screen in DNN 6, I think it would be best to open a topic. It would be nice if DNN allowed to specify at least the width and height of the login popup window.
I will post here what I figured out so far, and please help me with the other customizations.
Disabling the Register link:
Admin -> Site Settings -> Advanced Settings -> Security Settings
- set User Registration to "None"
Hiding the "Retrieve Password" link:
\Website\Portals\_default\default.css
entered:
#dnn_ctr_Login_liPassword {display:none;}
also:
in web.config, set these to false (they were true by default):
enablePasswordRetrieval="false" enablePasswordReset="false"
Changing the Login window width:
- I found it hard-coded in the Login skin object:
loginLink.Attributes.Add("onclick", "return " + UrlUtils.PopUpUrl(loginLink.NavigateUrl, this, PortalSettings, true, false, 300, 650));
in this file: \Website\admin\Skins\Login.ascx.cs (line 121)
- now the problem with this that it introduced some horizontal scrollbar
- to get rid of the scrollbar:
remove the "min-width" attribute of the ".dnnForm" CSS class in this file:
\Website\Portals\_default\default.css
(it was "min-width: 620px;")
Now my login window height is still too high, and I found that there is an iframe which comes from this file \Website\js\dnn.modalpopup.js:
< iframe id="iPopUp" src="about:blank" scrolling="auto" ...
and I tried with Firebug to disable the "height" and "min-height" inline CSS styles, and the window shrank vertically, but a vertical scrollbar appeared.
The problem is that I don't know where are those "height" and "min-height" attributes coming from.
My values are:
height: 389px;
min-height: 334px:
I would think these are default values, but I searched them in the file contents and couldn't find them in any files.
Anybody could help me with this?
I wish there was an easier way of doing this, because probably these changes would be lost with a version upgrade.
Thanks everyone for help, and hopefully this would be a good summary for skining the login window.