Assign new members to group and add other values to member properties
Hi,
I have a standard registration system on a site, using just the default .NET registration control. It's working fine, but I'd like to have all members automatically pre-assigned to a particular member group (webMembers) when they register (rather than having to manually assign via the Umbraco back-end).
Also, in the member type for these members, I have a field called 'memberGUID'. When a visitor visits the site they are automatically assigned a GUID value as a cookie. What I want to be able to do is store that value in the memberGUID property in the member type for that member.
Can anyone help me through this, or point me in the direction of some documentation which details how this can be done?
To pre-assign member groups by, you just need create a group in Umbraco admin and then you can assign it to the members by using the "traditional" asp.Net Membership/Role provider.
I am also working on a signup form, where I want the user to be able to pick a group to be a member of. (in my case: Danish, English or Russian). But I cannot seem to get the traditional ASP.NET createuserwizard to add the user to a group in any way.
(Right now I'm using a Wizard in 2 steps where the second step provides a checkboxlist to choose the group from.)
Is there some special markup for this, or does the Umbraco Roleprovider work differently than other role providers?
Really struggling with this, so I hope anyone can help.
To pre-assign member groups by, you just need create a group in Umbraco admin and then you can assign it to the members by using the "traditional" asp.Net Membership/Role provider.
I'm having trouble auto assigning a member to a member group upon registration. Thanks in advance.
It's been a while since I wrote this post. I probably have an example somewhere, I'll try to find it back. What I meant basically, was the fact that you can use Membership methods like Roles.AddUserToRole("myuser", "myrole").
Assign new members to group and add other values to member properties
Hi,
I have a standard registration system on a site, using just the default .NET registration control. It's working fine, but I'd like to have all members automatically pre-assigned to a particular member group (webMembers) when they register (rather than having to manually assign via the Umbraco back-end).
Also, in the member type for these members, I have a field called 'memberGUID'. When a visitor visits the site they are automatically assigned a GUID value as a cookie. What I want to be able to do is store that value in the memberGUID property in the member type for that member.
Can anyone help me through this, or point me in the direction of some documentation which details how this can be done?
Thanks all.
Hi Dan,
To pre-assign member groups by, you just need create a group in Umbraco admin and then you can assign it to the members by using the "traditional" asp.Net Membership/Role provider.
To access the memberGUID property, you can check this article from Aaron Powell, I think it will set you on tracks: http://www.aaron-powell.com/umbraco-members-profiles
Cheers,
Michael.
Hi
I am also working on a signup form, where I want the user to be able to pick a group to be a member of. (in my case: Danish, English or Russian). But I cannot seem to get the traditional ASP.NET createuserwizard to add the user to a group in any way.
(Right now I'm using a Wizard in 2 steps where the second step provides a checkboxlist to choose the group from.)
Is there some special markup for this, or does the Umbraco Roleprovider work differently than other role providers?
Really struggling with this, so I hope anyone can help.
Thanks
// Ulla
Just for the record, the Wiki docs http://our.umbraco.org/wiki/reference/api-cheatsheet/working-with-members illustrate how to add members to groups and edit properties etc. I gather membership is about to be overhauled, but for the meantime (6.1.2) this documentation seems to work nicely.
Hi Michael,
Can you expound on your comment below:
To pre-assign member groups by, you just need create a group in Umbraco admin and then you can assign it to the members by using the "traditional" asp.Net Membership/Role provider.
I'm having trouble auto assigning a member to a member group upon registration. Thanks in advance.
Regards, Ron
Hi Ron,
It's been a while since I wrote this post. I probably have an example somewhere, I'll try to find it back. What I meant basically, was the fact that you can use Membership methods like Roles.AddUserToRole("myuser", "myrole").
I'll try to come back with more info :-)
Cheers,
Michaƫl.
is working on a reply...