Home › Forums › Plugin Support › Choose from 2 user roles at registration
Tagged: role
- This topic has 11 replies, 5 voices, and was last updated 13 years ago by
Support.
-
AuthorPosts
-
September 14, 2012 at 3:54 pm #2087September 16, 2012 at 7:49 am #2094
coji
Memberany solution?
September 17, 2012 at 9:28 am #2096coji
Memberany solution to this? or this is not available?
September 17, 2012 at 2:57 pm #2098Khaled
MemberHello, Your approach should work. But one things you may be forgotten. Your role name must be pre-recognized by system otherwise new user have role “None”. You can use any role editor plugin to create new role.
Thanks.
September 17, 2012 at 6:42 pm #2107coji
MemberHi Khaled, I did that already, before I posted this question.
I have already created 2 roles using role editor plugin. Then I went to the ‘radio’ user field, with Role as the meta key and putting male, female at the field options. But it didn’t work.Any solution?
September 17, 2012 at 6:50 pm #2108coji
MemberI tried using the dropdown function, didn’t work also
September 17, 2012 at 11:59 pm #2109Khaled
MemberWhich role are assigned when you new user have been registered though they select male/female as role? And make sure you use “role” as meta_key. (case sensitive)
September 18, 2012 at 12:19 pm #2112coji
MemberThe new user is assigned the ‘Forum Participant’ role even when she selects female.
I used Role as the meta key in another field, ‘Hidden’, it worked
However when I use role in the meta key, in the ‘Radio’ field, new user is not assigned any role. It says ‘None’ under the Role under All Users
September 25, 2012 at 8:06 am #2146coji
Memberso does that mean that this has no solution for now?
November 22, 2012 at 7:36 am #2487toddz70
Member@coji — If you’re still looking for a solution to this, you can probably do it using a HOOK. I did something similar, and posted it here –>
February 2, 2013 at 9:31 am #2976earthroot
MemberI can’t get the hook or the hidden fields to work 🙁
February 2, 2013 at 1:28 pm #2978Support
MemberHello,
With version 1.1.3rc2, you can assign role directly during registration.
Go to User Meta >> Field Editor , click on “Role” field and choose “Allowed Roles” and selcte “Role selection Type”
if you like to use role as hidden field, fill-up “Default Field” with existing role slug and select “Hidden” for “Role Type Selection”
Then go to User Meta >> Forms Editor and drag that “Role” field to your form.Thats it.
Please note: using “role” as meta_key for extra field no more work from version 1.1.3rc2
Thanks.
-
AuthorPosts
- You must be logged in to reply to this topic.
