Register   Login
     
  Latest Posts  
RE: Best DNN hosting provider
by robax on 3/11/2010 2:31 PM
RE: Best DNN hosting provider
by Declic Video on 3/11/2010 2:17 PM
RE: 00.07.62 - Bug or not bug ?....
by Declic Video on 3/11/2010 2:12 PM
How to implement Tell-A-Friend?
by IMISOFT on 3/11/2010 12:42 PM
RE: Refresh RSS feed or delete all aricles from an imported feed?
by swebster on 3/11/2010 12:19 PM
RE: Refresh RSS feed or delete all aricles from an imported feed?
by ray-isc on 3/11/2010 11:09 AM
RE: Refresh RSS feed or delete all aricles from an imported feed?
by SiteBuilder on 3/11/2010 9:00 AM
RE: News Articles and Secure/Non Secure Entries
by rishi.mehta on 3/11/2010 8:03 AM
RE: Cannot Post Comments
by rishi.mehta on 3/11/2010 8:01 AM
Question about Property Type Search
by bennypg on 3/11/2010 7:40 AM
  Forums  
Subject: Replacing "username" by "displayname" in my skin
Prev Next
You are not authorized to post a reply.

Author Messages
Déclic VidéoUser is Offline
Registered Users
Ventrian Master
Ventrian Master
Posts:1269


12/30/2009 4:46 AM  

Hello,

I would like to do the following: for all authenticated users, REPLACING the "login-name (username)" which appears in my skin (all pages), with the "display-name"
How could I achieve this ??

I have seen that in my skin, there is the following:

If I replace with dnn:DISPLAYNAME, it does not work.

Can you guide me please ?
Thanks,
DV FX


Pinnacle Studio, proDAD and Boris FX tips and tricks, tutorials... Déclic Vidéo FX
Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:17138


12/30/2009 5:59 AM  
It should already show display name by default, it doesn't for you?

cmdRegister.Text = objUserInfo.DisplayName

Scott McCulloch
Site Administrator
Déclic VidéoUser is Offline
Registered Users
Ventrian Master
Ventrian Master
Posts:1269


12/30/2009 6:37 AM  
Sorry... I made so many tests that I get lost. Of course it shows display name. I would like to show Login name. Is that possible ????

DV FX

Pinnacle Studio, proDAD and Boris FX tips and tricks, tutorials... Déclic Vidéo FX
Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:17138


1/02/2010 5:31 AM  
Not unless you create your own skin object according to the code.

You could also try putting some inline code to your ascx skin, something like <%= Me.UserInfo.Username %>

Scott McCulloch
Site Administrator
Déclic VidéoUser is Offline
Registered Users
Ventrian Master
Ventrian Master
Posts:1269


1/03/2010 2:01 AM  

Hello Scott,

Thanks for answering. I do not know how to create my own skin object, that's one of my problem...

I tried to use <%= Me.UserInfo.Username %> but I had the following error:
(29): error BC30456: 'UserInfo' is not a member of 'ASP.portals_0_skins_s00_home_ascx'

Finally, Joseph Craig from DNN Creative found a solution by implementing an object. I do not know the exact impact for the performance, but it works great. If someone is interested, the solution is here.

DV FX


Pinnacle Studio, proDAD and Boris FX tips and tricks, tutorials... Déclic Vidéo FX
Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:17138


1/03/2010 5:02 AM  
Great - glad you got it sorted out.

Scott McCulloch
Site Administrator
You are not authorized to post a reply.
Forums > General > DotNetNuke Questions > Replacing "username" by "displayname" in my skin



ActiveForums 3.7