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, ...Customising skins with framework attritubes & skin object - QuestionsCustomising skins with framework attritubes & skin object - Questions
Previous
 
Next
New Post
8/11/2010 2:43 PM
 

Hi Will

Yes, I have tried it.

Like I mentioned upfront, whether done through DNN using the language editor or by changing the string in the properties of the skin object in the .ASCX skin file, all this does is change the text for when a user isn't logged in... Once logged in, this changes to the user's Display Name - and that's what I want changed...

Jon


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

 
New Post
8/11/2010 4:12 PM
 
Ok, I added the example you used to the example  skin (+some other options & a general skin update)

For the last question you would either need to change the User skin object, since the user name is "hardcoded".
Would be a nice enhancement for the skin object BTW.

You could also use this I think:
<a href="/?TabName=User Profile">My Profile</a>
 
New Post
8/11/2010 4:17 PM
 
Oh and the first example could be accomplished using the TEXT skin object with token replace, just like you can use it in an HTML module
And in that case it would be localizable too..
 
New Post
8/11/2010 4:46 PM
 

Firstly, Richard, thank you - but it's a little extreme given that it's most likely that this is possible by calling the right string (whether a DNN attribute or URL)... Thanks again though.

Timo - Thanks, I've checked out the <a> link option you supplied above, but it doesn't seem to work... This would be my first-prize option really. I'm sure you know, but the if you're logged in and click on the Register token's Display Name to edit your user account, the URL string is "/UserProfile/tabid/42/userId/3/Default.aspx" - not sure if this would help in getting the right string..? Also, what would this link do if I wasn't logged in and I clicked it..?

Then lastly, is there a kind of conditional logic for the attributes..? Something like:

<%=If(Request.IsAuthenticated)%>Then insert this text<%=EndIf%><%=If(Request.IsNotAuthenticated)%>Then insert other text<%=EndIf%>

That would help too...

Jon


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

 
New Post
8/11/2010 5:05 PM
 

OK, so I was thinking for the <a> link method, something more on the lines of this (?):

<a href="http://<%= PortalSettings.PortalAlias.HTTPAlias%>/UserProfile/41/userId/<%=UserController.GetCurrentUserInfo().UserID%>/default.aspx">My Account</a>

But, ideally, the "41" would be replaced by something like <%=PortalSettings.AdminTabId%>...

I'm not sure if this would work, or even what would happen should you click it and not be logged in...

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, ...Customising skins with framework attritubes & skin object - QuestionsCustomising skins with framework attritubes & skin object - Questions


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