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, ...Replace the name button after loginReplace the name button after login
Previous
 
Next
New Post
8/26/2011 3:30 AM
 
Amigos!

I have been able to replace the 'sign in' and 'sign out' button with images, however, after signing in i wanted to replace the name "Super user account" or "user 1" with an image, any idea how?

Rgds,
Suman.
 
New Post
9/2/2011 9:26 AM
 
I'm just taking a wild stab at this - Off the top of my head, you can apply a CSS Class to the USER tag (which show the username when you're logged in) and then use CSS.

Example:

<dnn:User runat="server" id="dnnUser" CssClass="username-button" />

.username-button {width:50px; height:20px; display:block; text-indent:-9999px; background:url(images/mybutton.png) top left no-repeat; cursor:pointer;}

Keep in mind that you need display:block and text-indent:-9999px; to remove the text so it doesn't overlay the image. I suppose you could also shrink the font-size if you don't want to have to float the element. But play around with it.

Let me know if that helps you.

Aaron

 
New Post
11/1/2011 10:49 AM
 
Hi Aaron,

Thanks a lot for your response, will try that out and let you know!

Rgds,
Suman.
 
New Post
11/3/2011 4:40 AM
 
Worked fine mate! needed some tweaking ..

Thanks once again!

.classname{display:block; float:left; position:relative; width:108px; height:110px; text-indent:-9999px; background:url(images/icon_startdancing.png) no-repeat; cursor:pointer;}
 
New Post
11/9/2011 4:23 AM
 
Slight problem, if I do what i have done, the image is the same before or after login.
I wanted to show a different image after login on place of the username that is currently displayed in there.

Any suggestions?
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Replace the name button after loginReplace the name button after 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