bbPress

Simple, Fast, Elegant

bbPress support forums » Plugins

Expanding User Profile Details

(3 posts)
  • Started 6 months ago by johnwade
  • Latest reply from Detective
  • This topic is not resolved
  1. johnwade
    Member

    Is there a way to customize this for details specific to the forum's purpose?

    jw

    Posted 6 months ago #
  2. 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.

    Posted 4 months ago #
  3. 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.

    Posted 4 months ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.