Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Customizing Login ScreenCustomizing Login Screen
Previous
 
Next
New Post
4/3/2012 12:50 PM
 

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.

 
New Post
8/12/2012 7:31 PM
 

I have experienced the same frustration myself.  Once I realized the hard coded values in the core files, I resorted to a custom login page where I have run into a lot more issues.  If you have figured out a better way to handle this, please do share.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Customizing Login ScreenCustomizing Login Screen


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out