You need to Register for free and Login to post a message in the forum.

Forum

Subject: Register and Login Links
Prev Next
You are not authorized to post a reply.

Author Messages
dave0160
Nuker
Nuker
Posts:14

29 Oct 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.

leesykes
DNN Creative Staff
Nuke Master III
Nuke Master III
Posts:3313

31 Oct 2006 4:39 AM  
Hi Dave,

All you would have to do is make a copy of your skin and remove the Register and Login tokens from the skin.

Then just go to the page settings for the Home Page and select the new copied skin for the Home page.

Thanks,

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/leesykes

Lee Sykes's Facebook Profile
Ventana
Nuke Active Member
Nuke Active Member
Posts:22

21 Nov 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?
leesykes
DNN Creative Staff
Nuke Master III
Nuke Master III
Posts:3313

22 Nov 2006 2:33 AM  
Hello,

The format for the logout link is:
http://www.dnncreative.com/Forum/tabid/88/portalid/0/Logoff.aspx

- Just right click on the logout link when logged in and select copy link to get an example. (when the login token is enabled in your skin)

So you could place this link within a text / html module and set the permissions for the module so that only the registered users can view the module.

Note that the tabid that you enter in the logout url will be the page that you are returned to when you log out.

Thanks,

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/leesykes

Lee Sykes's Facebook Profile
Ventana
Nuke Active Member
Nuke Active Member
Posts:22

22 Nov 2006 1:57 PM  
Thanks, got it working.
Faith
Nuker
Nuker
Posts:14


19 Sep 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
jncraig
DNN Creative Staff
Nuke Master II
Nuke Master II
Posts:2318


19 Sep 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
DNN Creative Support
Subscribe to the website
Faith
Nuker
Nuker
Posts:14


22 Sep 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
jncraig
DNN Creative Staff
Nuke Master II
Nuke Master II
Posts:2318


22 Sep 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
DNN Creative Support
Subscribe to the website
Faith
Nuker
Nuker
Posts:14


23 Sep 2008 2:35 PM  
*******

Faith
.net Developer
jncraig
DNN Creative Staff
Nuke Master II
Nuke Master II
Posts:2318


23 Sep 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
DNN Creative Support
Subscribe to the website
Faith
Nuker
Nuker
Posts:14


23 Sep 2008 4:11 PM  
Joe:

Maybe we are using different dnn version.


Faith
.net Developer
Faith
Nuker
Nuker
Posts:14


15 Oct 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
jncraig
DNN Creative Staff
Nuke Master II
Nuke Master II
Posts:2318


15 Oct 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
DNN Creative Support
Subscribe to the website
You are not authorized to post a reply.
Forums > DotNetNuke® > DotNetNuke® Questions > Register and Login Links



ActiveForums 3.7

Latest Forum Posts

RE: Cannot view host filespace using text/html editor by NonStopMark
Hi Joe, The problem has gone away. May have been a caching issue. Thanks for posting. DNN : ht...
Firefox Does Not Display WMV File In Media Module by johnmk777
Hi All,I can't believe I am having such a hard time finding and answer to this question.  I have see...
advice wanted convert site to DNN while keeping existing asp functionality by max2o
I am running into the issue that a client wants to redesign their site and they want content managem...
RE: Site is not opening by leesykes
from the message it is referencing php - is it a dnn site? - is asp.net applied for the site?
RE: SolPart Menu Font Color Control by leesykes
Hello,I'm not aware of any documentation at the moment. But here is a list of Nav Menu PropertiesTo ...
Site is not opening by kaustav_kar
Hi,Whenever I'm writing the url (http://tajfood.com.sa) it's showing the following error; Index of ...
RE: SolPart Menu Font Color Control by cdees
 Lee, Is there documentation, or perhaps a tutotial on activating and using Nav menu?  Where would I...
RE: EasyCGI help? by Dr Joe
I found some interesting posts on some other sites that explain some of the challenges I've been exp...
RE: Menu's, menu's, and more menu's! by roadshow41
Thanks! I'm still a bit curious about some of the other options, but I think that gives me enough c...
RE: Menu's, menu's, and more menu's! by leesykes
Hello,Yes that should be possible with snapsis, I have used snapsis CSS with flyout menus on a horiz...
RE: Menu's, menu's, and more menu's! by roadshow41
I typically end up using a hybrid of a vertical menu and a horizontal menu due to the sheer number o...
DotNetNuke SEO (Search Engine Optimization) by leesykes
Hello,I regularly get asked for tips on SEO with DotNetNuke, there are several resources available o...
RE: Menu's, menu's, and more menu's! by leesykes
Hello,If you are looking for a menu for SEO reasons, any CSS based unordered list menu will be SEO f...
Menu's, menu's, and more menu's! by roadshow41
Well, I've been trying to steam ahead with the DNN sites I inherited a few months ago.  I've found l...
RE: EasyCGI help? by derpir
Hi Lee I told them that solution two days ago and still no answer, but thanks for suggesting that s...
RE: quick question by derpir
Hithanks! yes I understand. I will deal with my skins more tomorrow, maybe some questions will arriv...
RE: Restart Application by leesykes
It will restart your DotNetNuke installation and reload the application.Clearing cache will clear th...
RE: How can i edit any module from front end by leesykes
hello,I have just tested this and can see exactly the same as you, I suspect the core team have set ...
RE: EasyCGI help? by leesykes
You may want to ask them to reset the correct permissions on your DotNetNuke installation files, som...
RE: quick question by leesykes
Hello,It will be possible to a degree, but it depends on how both of the skins have been built. You ...
AppTheory
RSS Feeds