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, ...Display logout link only when logged inDisplay logout link only when logged in
Previous
 
Next
New Post
8/28/2006 5:00 PM
 
Hello,

Our client does not want the login link to appear to the public. I have figured out how to remove the login and create a "hidden" login page that administrators can navigate to directly. However, I'm having trouble figuring out how to display the "logout" link only when a user is logged into the site.

Has anyone done this before? And if so, how?

Thanks!
 
New Post
8/28/2006 7:33 PM
 

Use a trick to make the login link invisible. Use a 1-pixel transparent gif file for your login.gif in the code below.

In ascx mode:
<dnn:LOGIN runat="server" id="dnnLOGIN" Text="<img src=&quot;LOGIN.gif&quot;>" LogoffText="Logout" />

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

 

 
New Post
8/29/2006 9:13 AM
 
Worked like a charm! Thank you!
 
New Post
12/3/2010 6:08 AM
 
In DNN 5.06.00 I was able to achieve invisible "Login" while keeping "Logout" still visible in the following way:

<dnn:LOGIN runat="server" id="dnnLOGIN"  Text=" " CssClass="user" />

Just change the Text property to single space character and the resulting anchor becomes inactive on the page.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Display logout link only when logged inDisplay logout link only when logged in


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