Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

$4.95 Windows Hosting at Webhost4life.com
  Ads  
Iron Speed Designer is a software development tool for building database, reporting, and forms applications for .NET without hand-coding.
 


  Sponsors  

Meet Our Sponsors

Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Authentication ...  Logout Option
Previous Previous
 
Next Next
New Post 10/5/2007 3:45 PM
Resolved
User is offline Eric Krum
4 posts
10th Ranked


Logout Option 

Is there a way to hide the "Logout" option so that it isn't so obvious to the end user?  I don't want the end users logging out and then not being able to log back in without calling the my helpdesk on how to enter their login information again.

Thanks,

Eric


Eric
 
New Post 10/6/2007 3:32 AM
User is offline Sebastian Leupold
15058 posts
www.deutschnetnuke.de
1st Ranked












Re: Logout Option 

this can only be provided by a custom "login" skin object


Sebastian Leupold

DeutschNetNuke dnnWerk - The DotNetNuke Experts German DotNetNuke User-Group

DotNetNuke Project UserDefinedTable
DotNetNuke Project Release Tracker
 
New Post 10/7/2007 12:26 AM
User is offline Mike Horton
3163 posts
dnn.gmss.org
4th Ranked






Re: Logout Option 

Sebastian is sort of right. Do you need to have general users manually logging in or does everybody go through automatic login? If everyone is automatic then you can do what I've done in the past. I moved the login button to an obscure spot on the site and set it's color to the same as the background. That way I knew where it was when I had to log in as host or admin but general users didn't know where it was.

 
New Post 12/17/2007 10:59 AM
User is offline lance
93 posts
10th Ranked


Re: Logout Option 

Paste this in your skin where the old link is:

<% If DotNetNuke.Security.PortalSecurity.IsInRoles(PortalSettings.AdministratorRoleName) %>
<dnn:LOGIN runat="server" id="dnnLOGIN" />
<% End If %>

Then only admins will see the skin object.

CAUTION: you need to make a login link ( /Login.aspx ) somewhere to replace the link.  You will loose some of the functionality of the skin object this way.

 
New Post 12/17/2007 12:08 PM
User is offline lance
93 posts
10th Ranked


Re: Logout Option 

Actually, this might work better:

<% If DotNetNuke.Security.PortalSecurity.IsInRole("Registered Users") %>
  <li><dnn:USER runat="server" id="dnnUSER" /></li>
<% Else %>
  <li><dnn:LOGIN runat="server" id="dnnLOGIN" /></li>
<% End If %>

<% If DotNetNuke.Security.PortalSecurity.IsInRoles(PortalSettings.AdministratorRoleName) %>
  <li><dnn:LOGIN runat="server" id="dnnLOGINAdmin" /></li>
<% End If %>

Perhaps one of the code smiths in the DNN community could clean that up more.

If you don't need the control over the layout then you can use this method from DNNcreative.

 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Authentication ...  Logout Option
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Viva Portals, L.L.C.
Expert module development and graphic design.
www.continure.com
DNN Photo Gallery
DNN Photo Gallery is a truly unique photo management module released January 1st 2006. With DNN Photo Gallery you can REALLY integrate images into your existing portal and make them look like they were designed for your site.
DNN Photo Gallery
Swirlhost Inc.
Affordable DotNetNuke Hosting, Skin Development, Custom Module Development, and DotNetNuke Consulting. We will install your preference of DNN and now host with us and get a free license for the Swirl AJAX Chatroom Module.
www.swirlhost.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP