- This topic has 4 replies, 2 voices, and was last updated 9 years, 7 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- The topic ‘Auto Assign Roles’ is closed to new replies.
Tagged: assign, buddypress, xprofile
Hello, still working on all the features and options here. 🙂
I need a way to auto assign an additional role to a new user. In a perfect world, it would be based on a BuddyPress xprofile field that the user is required to select during registration. All of the options available to choose from in the xprofile field would already also be established as Role options in WPFront role permissions.
Any way you can think of that I can make something like this happen?
Thank you.
Hi Mitch,
What does the below statement mean?
“All of the options available to choose from in the xprofile field would already also be established as Role options in WPFront role permissions”
Thanks
Syam
Sorry, let me try to better explain.
When a user registers on our website, the have to fill in a Required field, where the answer is selected from a drop down box. Within the dropdown are about 25-30 choices, they must choose one. It is a required field, no selection, no register.
We populate that dropdown box with the names of the BP Groups that they can join. They are limited to ONE selection. When they choose it via the dropdown box, they are Auto Assigned to that BP Group.
*** We would have already created all of the 25-30 Roles in WPFront that have the same name as the BP Group they selected in the dropdown. ***
My question was whether there was a way to ALSO (automatically) add the SAME name that they chose in the dropdown as an extended Role for that new user.
I’m sorry if I explained it poorly. I hope this makes better sense.
Thank you.
Hi Mitch,
At this point I don’t see a solution, without doing some custom coding for this.
Thanks
Syam
Hi Syam,
I understand, it was just a thought. I will see how things work in the existing setup and then decide if this is something I need to talk more about.
Thanks.