Skip to:
Content
Pages
Categories
Search
Top
Bottom

Xprofile fields frontend editing


  • buckyb
    Participant

    @buckybeever

    Does anyone know how to style the custom xprofile fields that are displayed in the frontend in a different way, like in rows and tables? I have alot of them and would like to style them, to make it easier for the admin to edit, they are going to be admin edit only.

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

  • buckyb
    Participant

    @buckybeever

    I’ve decided to try and put the fields in a separate custom editing page, and I’m searching for how to add each extended editable input xprofile field individually, with their id number. I think that will help solve the styling issue. I’ve been searching for something similar like this so I can see how to accomplish this, if anyone can suggest something I would greatly appreciate it! 🙂


    buckyb
    Participant

    @buckybeever

    I think I’m close 🙂

    I got the field I want to show up on my custom page, but I can’t figure out how to make it edit and submit the changes to the right group. Here’s what I’m using in my custom editing page:

    <?php do_action( ‘bp_before_profile_edit_content’ );

    if ( bp_has_profile( ‘profile_group_id=’ . bp_get_current_profile_group_id() ) ) :
    while ( bp_profile_groups() ) : bp_the_profile_group(); ?>

    <div>
    <form action=”<?php bp_the_profile_group_edit_form_action(); ?>” method=”post” id=”profile-edit-form” class=”standard-form my-group”>

    <label for=”field_1″>Custom Field</label>
    <input id=”field_1″ type=”text” value=”<?php echo xprofile_get_field_data(‘Custom Field’); ?>” >

    <?php do_action( ‘bp_after_profile_field_content’ ); ?>

    <div class=”submit”>
    <input type=”submit” name=”profile-group-edit-submit” id=”profile-group-edit-submit” value=”<?php _e( ‘Save Changes’, ‘buddypress’ ); ?> ” />
    </div>

    <input type=”hidden” name=”field_ids” id=”field_ids” value=”29,19,20″ />

    <?php wp_nonce_field( ‘bp_xprofile_edit’ ); ?>

    </form>

    </div>
    <?php ?>

    <?php endwhile; ?>

    <?php endif; ?>

    <?php do_action( ‘bp_after_profile_edit_content’ ); ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Xprofile fields frontend editing’ is closed to new replies.
Skip to toolbar