Add fields to Registration form

1.4.0.4 [7122] (Official Build)

I have added fields to registration form and defined field in admin auth. When I go to admin page/users the field shows up under Name, with its own title, but it does it is empty and not displaying info entered on reg form.

Want:

Name: Company: Address: Phone: Email: Pw:

What have I missed?

Comments

  • Probably a great deal. Adding fields by and in itself is not much use unless you have added in code to process the updates.

    Plus you are ill advised to modify the core functions. These do change as we make updates to the software so you will always be chasing these changes. Filters were designed to handle this situation.
  • I added code to define the fields but not sure how to define what is written to db.

    If my request possible using the zenphoto login?

    Can I achieve this with filters?
  • You can achiee this with filters. But you will have to code these things, they don't come for free. You should be familiar with PHP coding and a bit of the Zenphoto architecture, specifically the plugin architecture and the filter architeture.

    Register user provides a hook to its form through the `register_user_form` and `register_user_registered` filters. The standard use of this filter is to integrate the register user fields with the comment form fields.

    You should start by understanding how these work. Then you are free to make your own versions of these filters. I would suggest your best bet it to add the new fields you want to your version of the comment form plugin, but if you do not enable comments just provide the handling that form does for register user and for the admin tab.
  • Limited knowledge of php. Enabled comments, like how it shows up under admin users. Need to integrate this on registration form, have not had any success adding comment fields to registration page and having that info added to admin-user info.

    chcart.com/zenphoto
  • The registration for was not intended to have a comment field, so adding one is branching out into new territory. Not necessarily something recommended for a person with limited knowledge of PHP.

    You can get the address fields on the registration form, just set the appropriate register_user plugin options.
Sign In or Register to comment.