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, ...Image/icon for DNN:loginImage/icon for DNN:login
Previous
 
Next
New Post
7/28/2009 5:14 PM
 

Hi - 

Does anyone know how to  go about placing an image/icon next to the Login, Register, Logout links for DNN:login?  I found out how to change the login/logout text, but nothing about adding an image.

Thanks -

Rick

 
New Post
7/29/2009 3:27 AM
 

Rick,

 

AFAIK the Login Skin Object does not provide you with the possibility to add an Image to it.
I think the best solution would be to add an additional pane to the skin and place your image in there.



Herzliche Grüße aus Hückelhoven
Frank Wahl
www.eagleworx.net

EagleworX.net
 
New Post
7/29/2009 4:14 AM
 

You can do this with css.  Simply add the image as a background image and add enough padding on the left to keep the text from being rendered on top of the image.  I've found that IE8 is being troublesome about following the vertical alignment properly and aligns the image way out of vertical bounds (no surprise IE would misbehave) but setting the css class to display: inline-block should work, I got it working properly recently so it can be done.  This is all applied to whatever class you have for the login link, and you need to use a.LoginClass: link etc. and then if you want to change the image on hover you simply set up a new background image for a.LoginClass:hover.  If you don't need the image to change on hover, you can simply place the image in the html before the <object> or [token] in the skin file, and then you'll also need to wrap the image in the login class and then apply the display: inline-block to "LoginClass img" in your css or again, IE8 will have issues aligning even a plain ol' static image.  You'd think after all these years they'd be getting closer to the competition, but IE8 just adds new bugs and issues to the long list.  You can also apply the single image for both link and hover techniques, basically using negative numbers for background image position, and instructions for that are found easily with web search...


JOHN GIESY
DotNetNuke Hosting Expert

DotNetNuke 7 Hosting $70 /year
DNN4Less.com Team DotNetNuke  

New Post
7/29/2009 11:29 AM
 

I was actually going to reccomend the same thing Rick mentioned, which is a basic Fahrner Image Replacement technique (if I read it correctly). You can find more information about the technique at:

http://en.wikipedia.org/wiki/Fahrner_Image_Replacement

and some pros/cons of using FIR - http://www.alistapart.com/articles/fir

The most significant "con" seems to be it's non-friendliness with screen readers, but it seems like it would be a good way to get the end result until they add an icon attribute to the LOGIN token/item.


Wells Doty Jr
Online Content Development
 
New Post
8/10/2009 2:23 PM
 

Frank Wahl wrote

AFAIK the Login Skin Object does not provide you with the possibility to add an Image to it.
I think the best solution would be to add an additional pane to the skin and place your image in there.

WHAT?!?

Frank, perhaps this thread might be useful to you too...

Here's some HTML:

<dnn:LOGIN runat="server" id="dnnLOGIN" cssclass="login_control" />
<dnn:USER runat="server" id="dnnUSER" cssclass="user_control" />

Here's some CSS:

/*--- Login / User Rulesets --------------------------------------------*/
a.login_control:active, a.login_control:visited, a.login_control:link, .login_control {
    color: #777;
    font-size: 13px;
    background-image: url('../images/login_sprite.gif');
    background-position: left bottom;
    background-repeat: no-repeat;
    margin: 0px 20px 0px 0px;
    padding: 0px 0px 0px 35px;
    height: 30px;
    text-decoration: none;
    display: block;
    float: left;
    line-height: 30px;
}
a.login_control:hover {
    background-position: left top;
    color: #fff;
    text-decoration: none;
}
a.user_control:active, a.user_control:visited, a.user_control:link, .user_control {
    color: #777;
    font-size: 13px;
    background-image: url('../images/reg_sprite.gif');
    background-position: left bottom;
    background-repeat: no-repeat;
    text-decoration: none;
    margin: 0px 20px 0px 0px;
    padding: 0px 0px 0px 35px;
    height: 30px;
    display: block;
    float: left;
    line-height: 30px;
}
a.user_control:hover {
    background-position: left top;
    color: #fff;
    text-decoration: none;
}
 

The above is purely an example, specifi to a skin I've done... It uses an image sprite to render the hover state.  Point is, CSS is our friend.  There's no need to go bloating your HTML with unnecessary "panes" so that you can have a login icon...

Jon


Shebang Websites - A product of Mogridge Design
Hey, we're partnered with UntangleMyWeb.com

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Image/icon for DNN:loginImage/icon for DNN:login


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