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:3426

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:3426

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:2517


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:2517


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:2517


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:2517


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: Child portal to live site by psgrzelak
Kind of a round about way of answering my question without answering it.... I prefer the straight fo...
RE: Child portal to live site by jncraig
A subscription to this site will let you view the tutorials.  I believe that will be useful.  In fac...
RE: Child portal to live site by psgrzelak
Ok I changed the A record of the Jackson site to point to the IP address of the DNN portal. I than w...
RE: DotNetNuke News 8th Dec 08 by jncraig
Yes, I'm getting an error, also. But ... you can probably get the podcast from this link: http...
RE: Can't Login! Login Page can't be accessed... by jncraig
This table is part of your DotNetNuke database.You might first want to review these tutorials to hel...
DotNetNuke News 8th Dec 08 by pwadding
When I attempt to download the  Podcast I get an error message. Tried both servers. The first few li...
RE: Can't Login! Login Page can't be accessed... by e-kreator
a database that you mean.
RE: DotNetNuke 4.9.1 and 5.0.0 by jncraig
Yes, lots of learning, lots of new things and new ways.  I played a little with Beta6 of DotNetNuke ...
RE: PDF File Content by jncraig
If you want to just serve up the PDF files as PDF files, upload them using the File Manager.  You ca...
RE: Navigating between modules by jncraig
What is the URL that is generated? To which page does it send you?
RE: New Logo cant display by jncraig
There is nothing wrong with this, provided that you did it correctly.  I would have to look at your ...
RE: Child portal to live site by jncraig
You should set DNS to point the URL to the IP address of the DotNetNuke installation.  Inside of the...
RE: PopUp Page by jncraig
To open a link in a new window, format the link this way:Link to us! It is the target="_blank" that...
RE: How to Change fckeditor alignment by jncraig
It might be easier to use a different skin for your administrative pages. There have been some ot...
RE: Can't Login! Login Page can't be accessed... by jncraig
If you have access to your database, look at the Portals table.  Make sure that LoginTabID is set to...
RE: Can't Login! Login Page can't be accessed... by e-kreator
Hello my problem is that the configuration management in login page page was sent to a Web page that...
RE: Create new 'host' user? by jncraig
You can change a regular user to a Host, by setting the "Host" user's IsSuperUser set to True in the...
Create new 'host' user? by jonathanbrickman0000
I have a DNN 4.7 web site successfully migrated to a new server.  There is only one hitch:  the 'hos...
RE: split copyrgt option in two lines by jncraig
You can put a in the copyright text. This may or may not put other text (to the right of the copyr...
RE: Can't Login! Login Page can't be accessed... by jncraig
Try: http://localhost/DNN/login.aspx http://localhost/DNN/?ctl=login If neither of those ge...
DotNetNuke Modules
RSS Feeds