David Stacey
Nuker Posts:14
|
10/29/2006 7:22 PM |
|
Hi
I would like to use the 'Account Login' module on my home page. And prefer not to have the 'Register' and 'Login' links which are just below the menu bar on the right hand side of the page.
How can I hide these links?
Many thanks
Dave Stacey. |
|
|
|
|
Lee Sykes DNN Creative Staff
Nuke Master VI Posts:4945
|
|
Suryani Gazari
Nuke Active Member Posts:22
|
11/21/2006 5:34 PM |
|
Hi, I have created a separate login page and removed the Register and login tokens from the skin. I have no problem login in but the problem I have now is how do I log out? How can I have the logout link displayed when a user has logged in? |
|
|
|
|
Lee Sykes DNN Creative Staff
Nuke Master VI Posts:4945
|
|
Suryani Gazari
Nuke Active Member Posts:22
|
11/22/2006 1:57 PM |
|
Thanks, got it working. |
|
|
|
|
Faith
Nuker Posts:14
|
09/19/2008 2:07 PM |
|
When I copy the log out link the only thing it copies it's a javascript like this ---> javascript:__doPostBack('dnn$dnnLOGIN$cmdLogin','') <--- So I cant create my own link for logout. |
|
Faith .net Developer |
|
|
Joseph Craig DNN MVP Posts:11667
|
09/19/2008 11:43 PM |
|
The "logout link" really isn't a link. It is the manifestation of a control (skin object) that is placed in the skin. If you want to create your own logout link, I'd suggest that you might want to make a modified version of that skin object. But, more to the point, why do you want to make your own logout when that one is available. Having a better understanding of what you are really trying to do might make it easier for me to make a more useful suggestion. |
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
Faith
Nuker Posts:14
|
09/22/2008 3:33 PM |
|
it's simple... You want to create a logout link when you dont want to use the links provided in the skin.
The question is how can I create a login and logout, register, links in a html/text module?
and how to make the login/logout - register/username dual mode buttons without using the skin, with a simple solution like the two modules that one is hidden when the user is logged.
PD: do you know any tutorial about the forget password page?
|
|
Faith .net Developer |
|
|
Joseph Craig DNN MVP Posts:11667
|
09/22/2008 4:14 PM |
|
There are two skin objects. The first is the one that shows Login/Logout and the second that shows Register/Username. For login: http://mysite.com/?ctl=login will take you to the login page. I've used this to generate a logout link in an HTML module: < a href="/Logoff.aspx" >< /a >< a href="/Logoff.aspx" >Logout< /a > Don't forget to remove the spaces in the above. You can also use roles and visibility in the HTML module setting to determine who sees this. You can also use You may also be able to use some of the replaceable tokens in the Text/HTML module to turn some of this on and off. There are also ways of adding conditional code to your skin so that the links are displayed depending on the logged in status of the user. I'm still wondering, though, if you are trying to solve a problem this way that is solved more easily with skin objects and (maybe) some conditional code. As an example, visit stockcentral.com an notice that some links are turned off and others appear depending on whether you are logged in or not. |
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
Faith
Nuker Posts:14
|
09/23/2008 2:35 PM |
|
******* |
|
Faith .net Developer |
|
|
Joseph Craig DNN MVP Posts:11667
|
09/23/2008 2:51 PM |
|
Hi, Faith! I tested those two things on my test site, so I know that they work. I suppose that it is possible that you've got something in your site that breaks them. Just to make sure that we are on the same page, here is the code from a Text/HTML module (except that I've added some spaces so that the tags will display): < p> < a href="/?ctl=login">Login< /a>< br /> < a href="/Logoff.aspx">Logout< /a>< /p> Could you explain more about why DotNetNuke cannot solve your basic requirements. Given your comment about the Forgot Password link, I'd tend to guess that you've broken something. If you'd like to continue this offline, try jncraig at gmail dot com. |
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
Faith
Nuker Posts:14
|
09/23/2008 4:11 PM |
|
Joe: Maybe we are using different dnn version. |
|
Faith .net Developer |
|
|
Faith
Nuker Posts:14
|
10/15/2008 9:49 AM |
|
Joe:
Two short questions.
1) It is possible to set a css style sheet for a determined user?
2) Is there any way to show a invoke a skinobject inside of a module? i.e the html/text with a (home)solpartmenu embbeded in it. |
|
Faith .net Developer |
|
|
Joseph Craig DNN MVP Posts:11667
|
10/15/2008 2:04 PM |
|
The general scheme is that CSS styles are attached to skins. I believe
that it's possible to switch skins based on things like user role
membership, etc. That is not standard, though. Try looking for "skin
switcher" or similar terms. You may be able to find some commercial
skins what permit switching. I've never done anything like this, so
I'm not speaking from experience. It also turns out that the second question was related to showing or not showing the menu, based on the logged in user's security role. You can put some conditional code in your skin to turn the menu display
off for certain roles. There is lots of good information in the forums
at Snapsis.com. Take a look at this thread: http://www.snapsis.com/DNN-Tips-And-Tricks/tabid/560/forumid/12/postid/5003/view/topic/DotNetNuke-Tokens--Some-tricks-for-getting.aspx
I recall that there are other threads, too.
|
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
Sarah
Nuke Ace Posts:45
|
07/07/2011 2:34 PM |
|
When logging out, can the user be directed to the homepage, instead of the login page? Thanks, Sarah |
|
|
|
|
Joseph Craig DNN MVP Posts:11667
|
07/07/2011 3:17 PM |
|
Yes. If you go to the User Accounts page and click the User Settings link, you'll find several "redirect after" settings that you can choose. |
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
Sarah
Nuke Ace Posts:45
|
07/08/2011 2:20 PM |
|
Thanks Joe. That was easy once I found where the redirect was located. |
|
|
|
|