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, ...Username in SkinUsername in Skin
Previous
 
Next
New Post
5/10/2006 7:16 AM
 

By default the Skin show the firts name and last name of the user in all pages. ¿how can I show the username (login) intead of fisrt and last name?

Thx

Marta

 

 
New Post
5/10/2006 9:51 AM
 

 

One way would be to change the Register SkinObject in the core, or create your own modified one.

I may be able to come up with a couple lines of code that you can place in your skin to accomplish this though.

Let me see what I can come up with.


DotNetNuke Modules from Snapsis.com
 
New Post
5/10/2006 10:51 AM
 
jmitchell wrote

 

One way would be to change the Register SkinObject in the core, or create your own modified one.

I may be able to come up with a couple lines of code that you can place in your skin to accomplish this though.

Let me see what I can come up with.

ok, I wait

 

 
New Post
5/10/2006 11:10 AM
 

 

Ok,  try this. In your skin find the User skin object (not the "register" skin object like I said earlier).

In an HTML skin it will be a token that says [USER], in an ASCX skin it will be code that looks like <dnn:USER runat="server" id="dnnUSER" />

Replace that with the code below:

<a class="SkinObject" href='<%= DotNetNuke.Common.Globals.NavigateUrl("Register")%>'>
                <%=IIf(Request.IsAuthenticated,HttpContext.Current.User.Identity.Name,"Register")%></a>


DotNetNuke Modules from Snapsis.com
 
New Post
5/10/2006 12:01 PM
 

Great!!

Thanks for all

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Username in SkinUsername in Skin


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