I'm currently having some problems making a login section, with the MemberControls package, provided in the package repository section. When I try to add it to templates / pages etc - nothing really happens... It's lie the form elements are not being generated...
Any suggestions how to resolve the problem, or alternatives?
What I need is a simple login/logout function for pages/sections with limited public access, using the built in Umbraco access control. For this the description of the MemberControls package sounded perfect.
I'm using Umbraco 4.0.3
BTW: I'm only level 1 certified, I'm not a programmer - so making custom usercontrols etc is not an option. Also why Umbraco is perfect for me - being able to custom build websites wtih HTML, CSS and a bit of XSLT knowledge, without programming skills is great.
Sounds like an obvious place to start, but I know that package doesn't give you <form runat="server"> tags around the form elements. Are your input boxes inside a form?
Thank's for the input - they both helped in the understanding...
After some evil hair pulling, I got it working. It turned out, that it's not possible to add a member to the Login group I had specified. In chrome it just doesn't save the group - so it seems that it actually workes most of the time, it was just a bug in the Chrome UI. Bugger.
After I edited it in IE8 instead, it worked instantly.... It turned out, I didn't have to add a form element after all.
Next step - figuring out, how to hide restricted nodes.
They are all a part of the toolbox in Visual Studio so if you by any chance have a version of it installed on your machine I suggest that you open it up and look at the different attributes that can be set on them.
You could use the osmemberControls package which does most of the work for you. It uses the controls mentioned above by Jan and integrates member groups with the role provider so you can also edit profile and register new users.
Hi Paul - I was looking at osmemberControls, but hadn't seen you wiki about it. It seems perfect, and covers everything I need - thank you so much, I will definitely try and go with that!
...3 fast responses (and all relevant), really show why the Umbraco community rocks! Thank's guys :D
I bumped into what I think you got into a year ago. I need to create a log in section on the site for users so that they can access restricted pages. Could you please post the steps and code that you take to make it work? That'd be really helpful (I hope you still remember how it's fixed after all that time).
Member login
Hi to all of you.
I'm currently having some problems making a login section, with the MemberControls package, provided in the package repository section. When I try to add it to templates / pages etc - nothing really happens... It's lie the form elements are not being generated...
Any suggestions how to resolve the problem, or alternatives?
What I need is a simple login/logout function for pages/sections with limited public access, using the built in Umbraco access control. For this the description of the MemberControls package sounded perfect.
I'm using Umbraco 4.0.3
BTW: I'm only level 1 certified, I'm not a programmer - so making custom usercontrols etc is not an option. Also why Umbraco is perfect for me - being able to custom build websites wtih HTML, CSS and a bit of XSLT knowledge, without programming skills is great.
Forgot to mention, that I of course use the Member section to control logins, and that access should be controlled on Member Group level. :o)
Sounds like an obvious place to start, but I know that package doesn't give you <form runat="server"> tags around the form elements. Are your input boxes inside a form?
You can try and place this ASP.NET control in your login template: <asp:Login ID="Login1" runat="server"></asp:Login>
It should provide you with all the functionality you need if I have understood your question correctly.
/Jan
Thank's for the input - they both helped in the understanding...
After some evil hair pulling, I got it working. It turned out, that it's not possible to add a member to the Login group I had specified. In chrome it just doesn't save the group - so it seems that it actually workes most of the time, it was just a bug in the Chrome UI. Bugger.
After I edited it in IE8 instead, it worked instantly.... It turned out, I didn't have to add a form element after all.
Next step - figuring out, how to hide restricted nodes.
@Jan
Great tip with the ASP.NET control! Any more tips how to configure it, log out, password reminder, shov login name etc?
/Christian
I can imagine how frustrating that must be! Glad to hear you got it all working now.
Try exploring the XSLT extensions in umbraco.library - I'm specifically thinking about "HasAccess". Happy coding.
/Jan
Thank's for the tip, I'll try that.
Oh BTW @Dan - your tip with the Form also helped, when I had to move the login box.
Just realised I missed your previous post asking for more tips on configuring the other things.
You could try and experiment with these:
<asp:ChangePassword ID="ChangePassword1" runat="server"></asp:ChangePassword>
<asp:LoginStatus ID="LoginStatus1" runat="server" />
<asp:LoginName ID="LoginName1" runat="server" />
They are all a part of the toolbox in Visual Studio so if you by any chance have a version of it installed on your machine I suggest that you open it up and look at the different attributes that can be set on them.
More usefull information can be found here: http://msdn.microsoft.com/en-us/library/ms178329.aspx
Hope it's enough to get you started.
/Jan
You could use the osmemberControls package which does most of the work for you. It uses the controls mentioned above by Jan and integrates member groups with the role provider so you can also edit profile and register new users.
I have written a wiki page on how I implemented it: our.umbraco.org/.../using-the-osmembercontrols-(v01-code-set-39984)
Hi Paul - I was looking at osmemberControls, but hadn't seen you wiki about it. It seems perfect, and covers everything I need - thank you so much, I will definitely try and go with that!
...3 fast responses (and all relevant), really show why the Umbraco community rocks! Thank's guys :D
/Christian
Hi Christian,
I bumped into what I think you got into a year ago. I need to create a log in section on the site for users so that they can access restricted pages. Could you please post the steps and code that you take to make it work? That'd be really helpful (I hope you still remember how it's fixed after all that time).
Thank you,
is working on a reply...