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

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

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


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


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


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


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

Need UK Hosting by Liz
Hi,Not sure if this is the right place, but I am currently with Power DNN, and whilst I am a big fan...
RE: search not working by sanju_k1421
host==>admin search page that is set both limits min //max page reindex content button is ...
RE: No Access for me too by leesykes
hello,I have fixed the problem and I have given you a years access beginning from today December 2nd...
old skins for DNN 4.9.0 ? by clippy
Hello from France My question is about the videos for beginners, and specially n° 3; I'm working...
Web.config Error by derpir
HelloI got this error, does this seem familiar to you? Can anyone say how to fix this error?Error 98...
No Access for me too by ristori
I suscribe for the magazine novembre 2008 13. I receive this ticket from Paypal : Prix de l...
How can I list our offices by country by bluehoops
Hi everyone!Apologies if this is a simple question, but it is driving me nuts.I run a small ISV and ...
RE: DNN Creative vs FireFoX V3 by DavidWSnow
It now looks like the error'ing extension is StumbleUpon and it effects FireFox on some, but not all...
Issue 39 Authentication by DavidWSnow
I was glad to see you address this topic. When LiveId was first added to DNN, I tried to implement i...
RE: (catalook) Itempane changes on product pages ?? by Vilaplana
Hi, I think the problem is been caused by your skin and not by Catalook itself.  In the main page, C...
Yahoo Answers by cdtguru
Hey, i was wondering if anyone knew of a module that would create a similar system to Yahoo Answers...
(catalook) Itempane changes on product pages ?? by Gaz35
Hi , hi , I don’t know if you can help me , here is the site in question http...
RE: Virtual Pc 2007 help by jeff@zina.com
You need to get the Virtual PC's network set up.  Might check the Virtual PC news group: http://www...
DNNCreative Just Keeps Getting Better by jeff@zina.com
Kudos on issue 39, the article on importing large quantities of data was both timely for me and spot...
RE: Videos by clippy
Hello from France My question is about the videos for beginners, and specially n° 3; I'm working...
skinning trouble by derpir
HelloI have uploaded a skin to my DNN-website, but I want to make som changes. I have made some chan...
RE: Column width in UDT by VickySwift
In case anyone else is looking for the answer to this, I have been able to add the headers back in b...
RE: search not working by jncraig
Did you either reindex the site to turn on the scheduled task to do it?
RE: Template Issue by jncraig
No, you need to install your custom modules before you use the template.
RE: error message in registration page by jncraig
I'm not sure that you can avoid them, short of rewriting the module.You might want to investigate Dy...
AppTheory
RSS Feeds