Skip to:
Content
Pages
Categories
Search
Top
Bottom

Adding extra default profile fields in registerform

  • Avatar of Guido
    Guido
    Member

    @guido07111975

    Hi,

    I want to add extra default profile fields from WordPress (first- and lastname) in the BP registerpage (besides username, email and pass).
    I have found the BP-file where I can add extra fields: register.php

    I have tried to copy-paste field-code from WP-file user-edit.php, but that’s not working unfortunately.

    I noticed in register.php every field starts with ‘signup_’ (for example: signup_username).

    Only adding new fields in register.php starting with ‘signup_firstname’ and ‘signup_lastname’ is not enough, what do I have to do next?

    Guido

Viewing 2 replies - 1 through 2 (of 2 total)
  • Avatar of Paul Gibbs
    Paul Gibbs
    Keymaster

    @djpaul

    Adding the template fields is one thing, but you’d need to write a bunch of glue logic to handle saving and fetching the input to/from the WordPress profile.

    Avatar of Guido
    Guido
    Member

    @guido07111975

    Hi Paul (and everyone else),

    I noticed a file and code about default WP profile:

    In file ‘profile’ there’s a line called ‘Display WordPress profile (fallback)’ and in the same folder (Profile) there’s a file called ‘profile-wp’ with all default WP profile fields in it.

    I’m not a programmer, but is it possible to adjust those files so default WP profile fields are displayed in members profile? What do I have to adjust?

    Guido

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.