• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Community Auth Custom Registration fields

#1
[eluser]Bill-xv33[/eluser]
I am new to Code Igniter and working on my first project, which includes Community Auth. I'm trying to change the fields on the registration form and can't find documentation or figure it out on my own.

Can someone give me a quick lesson on changing these?

Thanks,

Bill

I've updated the registration form and added the fields to the temp_registration_data and the user_profiles tables. But I can't figure out what models/controllers need updating.

#2
[eluser]skunkbad[/eluser]
In the default install of Community Auth, as of the current tip, the registered user becomes a customer. Assuming you will modify the temp reg data table and the customer profile table to meet your needs, here is a list of what needs to be updated:

1) application\config\form_validation\administration\create_user\create_customer.php

Form Validation Rules for Customer Creation

Add rules for new fields. Delete rules for fields you won't use.

---

2) application\config\form_validation\register\registration_form.php

Form Validation Rules for Registration Form

Add rules for new fields. Delete rules for fields you won't use.

---

3) application\config\form_validation\user\user_update.php

Form Validation Rules for User Updates

Add rules for new fields. Delete rules for fields you won't use.

---

4) application\models\registration_model.php

set_pending() method needs the $insert_array to be modified

Add a key value pair for new fields. Delete key value pairs that you won't use.

---

5) application\views\administration\create_user\create_customer.php

Customer creation form

Add form fields for new fields. Delete form fields that you won't use.

---

6) application\views\administration\update_user\update_customer.php

Customer update form

Add form fields for new fields that the manager or admin will be able to update. Delete form fields that you won't use or that the manager or admin shouldn't be able to update.

---

7) application\views\register\registration_form.php

Registration form

Add form fields for new fields. Delete form fields that you won't use.

---

8) application\views\user\self_update\self_update_customer.php

Customer updates themselves (another form)

Add form fields for new fields you want the customer to be able to change. Delete form fields that you won't use or don't want the customer to be able to change.

---

#3
[eluser]Bill-xv33[/eluser]
Thank you for your quick response. Was this available anywhere online?

Thanks again,

Bill

#4
[eluser]skunkbad[/eluser]
[quote author="Bill-xv33" date="1350768242"]Thank you for your quick response. Was this available anywhere online?

Thanks again,

Bill[/quote]

No, I just made it up. Actually, because the customer is the only role that has a street_address, I just searched Community Auth for "street_address", found all the files, and briefly summarized what you'd have to do. Easy stuff.

#5
[eluser]Bill-xv33[/eluser]
Well, thanks again.

I'd suggest you set up an FAQ page and add common requests, but you answer so quickly, it might be slower...

#6
[eluser]skunkbad[/eluser]
[quote author="Bill-xv33" date="1350768758"]Well, thanks again.

I'd suggest you set up an FAQ page and add common requests, but you answer so quickly, it might be slower...[/quote]

Yeah, and ideally once enough people start using Community Auth, I might not be the only one answering the questions.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.