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, ...After login user name should appear similar like www.dnnskins.comAfter login user name should appear similar like www.dnnskins.com
Previous
 
Next
New Post
11/10/2006 12:50 AM
 
Hi All,

I was working on the form. And our requirement is to put the user name and password box on every page . Once user logs in the login box should get disappear and user name should display on click of which it should takes us to the edit profile.

So here the first part that is putting the login box on every page and making it invisible is done from my side. I have add the account login and giving the permission only to unautheticated user. This account login has the register , login and password reminder.

Coming to the second part is displaying user name on the screen when user logs in. I am not able to find the soultion for it. If i put the Skin object i.e <dnn:user then it displays the register link if the user is not login. Here in user will see two register one is in the links and other is in the register button on the account login module . I would like to hide the register link and display register as button and also display the user name after the logs in . This function is already there in the www.dnnskins.com

Please let me know which option / which skin object do i have to add so that it gives me the desire result? Do we have to work on code part to get this result?

Thanks
Ashok Naidu
 
New Post
11/10/2006 7:38 AM
 

Hi Ashok,
Use a trick to make the register link invisible. Use a 1-pixel transparent gif file for your register.gif in the code below.
A logged-in user sees his name, otherwise nothing.

In ascx mode:
<dnn:USER runat="server" id="dnnUser" Text="<img src=&quot;register.gif&quot;>" />

Or in the XML file:
<Object> 
   <Token>[USER]</Token> 
      <Settings> 
         <Setting> 
            <Name>Text</Name> 
            <Value><![CDATA[<img src="register.gif">]]> </Value> 
         </Setting> 
      </Settings>
</Object>

Also need to set the correct css class if not using .SkinObject class...
It's too easy!

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...After login user name should appear similar like www.dnnskins.comAfter login user name should appear similar like www.dnnskins.com


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