We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

assign different groups based on type of registration - hook ?

Development and Programming

avroo's avatar
avroo
164 posts
17 years ago
avroo's avatar avroo

What I want is simple:

a user fills in the form, and based upon whether he selected Male or Female (dropdown) they have to be assigned to a different group.

I read something the “cp_members_validate_members” hook, but I don’t understand how to apply/use hooks here…

thanks!

[Mod Edit: Moved to the extensions development forum as it is more appropriate]

       
avroo's avatar
avroo
164 posts
17 years ago
avroo's avatar avroo

nobody that can explain me if I should use that hook, and HOW a hook should be used? :(

       
avroo's avatar
avroo
164 posts
17 years ago
avroo's avatar avroo

helloooo ? 😊

       
Daniel Walton's avatar
Daniel Walton
553 posts
17 years ago
Daniel Walton's avatar Daniel Walton

If you are comfortable with PHP, just download some of the extensions available freely here and inspect how they work. This should hopefully give you some insight into how to build the extension you’re after.

It’s entirely possible to create an extension that will look at a member custom field and assign a different group to that member dependant on choice, I’ve built the exact extension to achieve it. Unfortunately it was paid work so I’m unable to just give you the code :(

Good luck!

       
c.emerson's avatar
c.emerson
36 posts
17 years ago
c.emerson's avatar c.emerson

Derek has a great write up in the Dev Blog entitled An Extension Autopsy from Dr. Jones which helped me understand extensions that you may find helpful when getting started. Hope this helps. -C

       
avroo's avatar
avroo
164 posts
17 years ago
avroo's avatar avroo

thanks!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.