Skip to:
Content
Pages
Categories
Search
Top
Bottom

Expanding User Profile Details

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

  • _ck_
    Participant

    @_ck_

    Fields can be added via plugins but I don’t believe there is any general plugin available to do that yet on an easy basis like WordPress.


    Detective
    Member

    @detective

    It is really easy to add profile fields.

    First, you need to print the fields you need:

    add_action('extra_profile_fields', 'print_extra_fields');
    function print_extra_fields($user_ID) {
    /* get the current values for that user, and print your form items */
    }

    add_action('profile_edited', 'process_extra_fields');
    function process_extra_fields($user_ID){
    /* here, $_POST contains the new field values. so you can do things like bb_update_usermeta($user_ID, 'your_field', $_POST['your_field']); ... */
    }

    Please correct me if i’m wrong. I don’t remember the action names. But this works :) I use it in WP and BBP.

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

You must be logged in to reply to this topic.