I am currently working on a site that uses Expression Engine, and as we all know, there is no thing as a perfect CMS.

I needed to be able to assign a member group id to a user according to the registration form that was completed. This is not something that is native to Expression Engine – all new registrations get assigned the standard member group id.

I therefore had to come up with another extension in order to get the job done.
Now, as the information on writing extensions is extremely thin on the ground, I had to scour the internet for an explanation on how the hooks within Expression Engine work.

Finally I found an explanation, and was able to write what turned into two relatively simple extensions using the native Expression Engine hooks. The first one adds the member group id to a temporary field in the member’s table upon registration.
The second extension updates the group id field with the value from the temporary database field when the user confirms their registration.

All in all, it is working well so far. I may even package this one up for distribution!

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

No comments yet, be the first!

Leave a reply

Back to top