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, ...Changing Login/Logout link to a button?Changing Login/Logout link to a button?
Previous
 
Next
New Post
12/8/2007 6:03 PM
 

Cuong Dang wrote

My recommendation for this is to set different CSS classes for your LOGIN and LOGOFF token. By doing this, you will have more control with styling and make your button with a hover state a different image.

That does like like what I was looking for, do you know of any examples of how to do this?  I'm not all that good with CSS classes.

 
New Post
12/8/2007 9:19 PM
 

Just a suggestion - you have the DNN-specific answer to altering the button and see that altering the css class is the answer. You could now post your new question (altering css) to a css-specific site/firum.


Eric Swanzey
www.swanzey.com
 
New Post
12/8/2007 11:04 PM
 

xws-mika wrote

 You don't have to change the login.ascx (which would affect all portals in your DNN installation), if you set the Text and LogoffText attributes of the <dnn:LOGIN skin object with HTML instead of pure text:

Text='

If you want to use image files from your skin directory, there's a little trick I learned from Erik van Ballegoij in this thread (thanks again, Erik!), which makes the image path portable:

Text='<%# "" %>'

Thanks, I think I will use this solution while I figure out how to do the CSS version which is where I need to go eventually...

 

 
New Post
12/9/2007 6:40 AM
 

Cuong Dang wrote: My recommendation for this is to set different CSS classes for your LOGIN and LOGOFF token.

AFAIK there is no separate LOGOFF token; instead, the LOGIN token renders as Login link if you're logged out, and vice versa. But Cuong Dang is right about CSS if you want to achieve hover effects. So I think the best approach is to combine his suggestion with mine and write the CSS classes into the Text and LogoffText attributes.

 

 
New Post
12/9/2007 1:41 PM
 

Okay, I got the login/logout buttons changed using the above method.  That works pretty good!

The User button was a bit trickier.  I looked through the code and couldn't see a way to distinguish between logged in or not (like the Text and LogoffText variables), so I kludged it a bit.  I removed that token completely and put two TXT/HTML modules there, one visible to unauthenticated viewers, and one to registered users with image links to the registration page.  That works, but with an admin login both show up on the screen.  *grin*  I'm sure there much be a prettier way of doing that.

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Changing Login/Logout link to a button?Changing Login/Logout link to a button?


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