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...Administration ...Administration ...Add a Logout option to the Admin menuAdd a Logout option to the Admin menu
Previous
 
Next
New Post
2/13/2007 12:06 PM
 

leupold wrote
what a rubbish. set the registration mode to none to remove the "register" link. Afterwards you can place the login link whereever you want - it will be useless for any visitors. Adding a logout link to the admin menu will provide this option only to members of the Administrators role - and when using DNN as CMS, it is not recommended to grant all users involved in the workflow admin permissions.

Rubbish?  Is that a way to treat someone who is trying to share? Maybe it was just the wrong english word, but I have a feeling it would be even more harsh in german.

It's not rubbish, it is a community member sharing the way they have solved a particular problem.  And taken the time to explain in detail how they went about it.
I like these kinds of posts, because they can lead to lots of other ideas, or things we have never thought about.
There are usually many ways to solve a particular problem, and one way is usually not more right than others.

I actually approached this a little differently, mainly because the customer asked for it this way.  I made the login link the same color as the background and then absolutely positioned it to an easy to find place (for them) beside their logo.  Now they know where to click to login, and the same place is used to logout (if they decide to logout instead of just closing the browser).

Now, for a question on your solution Sebastian. 
Why would you remove registration and still keep the login link visible? 
Are you wanting to frustrate the end user, making them think, hey there is a place to login, but where is the registration, it must be here somewhere?
What if I still want to allow registration for selected people, but not for the general public?

The other idea about doing it on a different hostname was good too.

Don't let Sebastian keep you from posting your ideas everyone, his is only one opinion.

 


DotNetNuke Modules from Snapsis.com
 
New Post
4/10/2008 12:05 AM
 

Mike wrote

<%@ Register TagPrefix="dnn" TagName="LOGIN" Src="~/Admin/Skins/Login.ascx" %>

And this tag at the bottom of my skin.ascx page:

Finally, this code shows the logout link if the user is logged in, but does not show the login link if the user is not logged in:
 
If Page.User.Identity.IsAuthenticated = True Then
 Me.dnnLOGIN.Visible = True
Else
 Me.dnnLOGIN.Visible = False
End If

This works for me. Visitors do not see an option to login, editors can easily remember the edit.mysitename.com URL to get to the login screen, and the logout link appears after the user logs in.

Hi Mike, this is the solution i m looking for, but where should i place the code in skin.ascx file and do i need to add the <script language="vbscrip"> for the code? pls advise and thank you in advance.

 
New Post
4/10/2008 3:03 AM
 

This does seem a bit harsh.  I for one found the information to be usefull, so thank you for it!

 
New Post
4/10/2008 11:57 PM
 

i did find the info useful too, and i hope someone can advise where and how to place the code in order to make it work. thank you

If Page.User.Identity.IsAuthenticated = True Then
 Me.dnnLOGIN.Visible = True
Else
 Me.dnnLOGIN.Visible = False
End If

 
New Post
7/3/2008 7:30 PM
 

Mark McAvoy wrote
On a couple of projects clients have used DNN as a CMS, and as such didn't have any users logging in or registering. So the login option was removed, easiler done, and the administrator would login using the /ctl/login/default.aspx url trick.

The only problem was since the login option was removed from the skin the option to logout was also missing. So I've created a simple tutorial that shows how to add a Logout option to the admin menu.

Check out the tutorial here http://www.bitethebullet.co.uk/AddingaLogoutOptionToTheAdminMenuinDNN/tabid/80/Default.aspx

Regards

Mark

 

i followed this steps

there is only one problem

the admin link is still on the Skin

when i press the logout link created by

your tutorial...

i hope you can show some light out of this...

im using DNN 4.8.4

 

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Add a Logout option to the Admin menuAdd a Logout option to the Admin menu


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