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

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationHide Logon and Register, but display Name, Update Profile and LogoutHide Logon and Register, but display Name, Update Profile and Logout
Previous
 
Next
New Post
3/11/2009 1:01 PM
 

I would like to know is there a way to not display logon and the register link, but after a user logs on then I can display a Welcome back message with there name and a logout link?

thanks,

Bryan

 
New Post
3/11/2009 3:03 PM
 

It can be a little complex, but I'm sure you can do it. 

- You can hide the login/register prompts by removing them from the skin, and creating a special skin (containing those tokens) that only registered users can see.

- Check the "Admin->User Accounts->User Settings" menu, there is an option called "Redirect After Login:"

 

 
New Post
3/11/2009 3:53 PM
 

Thanks Dan. It sounds like the first option is what I want to do. Can you give me any more help on how to make this happen? Or, point me to some resources?

 

- You can hide the login/register prompts by removing them from the skin, and creating a special skin (containing those tokens) that only registered users can see.

 

 

 
New Post
3/11/2009 4:50 PM
 

blawler wrote

I would like to know is there a way to not display logon and the register link, but after a user logs on then I can display a Welcome back message with there name and a logout link?

 

The quickest way would be to edit the skin, and add some serverside login into the file. I quickly test on DNN5 with the default skin and it seemed to work, however the separator was still visible. You'll probably want to wrap those two controls in a serverside panel and toggle the panels visible state. Eitherway, the code snippet should get you going, paste it into the MinimalExtropy skin in DNN5. 


 

<script runat="server" language="vb">

    Sub Page_load(ByVal Sender As Object, ByVal E As EventArgs) Handles MyBase.Load
        If Entities.Users.UserController.GetCurrentUserInfo().UserID = -1 Then
            'should be an guest user... 
            dnnLOGIN.Visible = False
            dnnUSER.Visible = False
        End If
    End Sub

</script>

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationHide Logon and Register, but display Name, Update Profile and LogoutHide Logon and Register, but display Name, Update Profile and Logout


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