robertFudge (@robertfudge)

Forum Replies Created

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

  • robertFudge
    Participant

    @robertfudge

    I took another approach and used WP User Frontend Plugin and just pointed to that.


    robertFudge
    Participant

    @robertfudge

    Added manually for development purposes… how can I hook these into bb profile and save them from there? I have been working on this for 2 days with no success. At this point I can not change bbpress, I need a way to do this. Thanks in Advance.


    add_action( 'show_user_profile', 'extra_user_profile_fields' );
    add_action( 'edit_user_profile', 'extra_user_profile_fields' );

    function extra_user_profile_fields( $user ) { ?>

    <input type="text" name="address" id="address" value="ID ) ); ?>" class="regular-text" />

    <input type="text" name="city" id="city" value="ID ) ); ?>" class="regular-text" />

    <input type="text" name="province" id="province" value="ID ) ); ?>" class="regular-text" />

    <input type="text" name="postalcode" id="postalcode" value="ID ) ); ?>" class="regular-text" />

    < ?php }

    add_action( 'personal_options_update', 'save_extra_user_profile_fields' );
    add_action( 'edit_user_profile_update', 'save_extra_user_profile_fields' );

    function save_extra_user_profile_fields( $user_id ) {

    if ( !current_user_can( 'edit_user', $user_id ) ) { return false; }

    update_user_meta( $user_id, 'address', $_POST['address'] );
    update_user_meta( $user_id, 'city', $_POST['city'] );
    update_user_meta( $user_id, 'province', $_POST['province'] );
    update_user_meta( $user_id, 'postalcode', $_POST['postalcode'] );
    }

    • This reply was modified 6 months, 1 week ago by  robertFudge.
    • This reply was modified 6 months, 1 week ago by  robertFudge.
    • This reply was modified 6 months, 1 week ago by  robertFudge.
    • This reply was modified 6 months, 1 week ago by  robertFudge.

    robertFudge
    Participant

    @robertfudge

    I like to also know if the new release will read the WP profile fields added by “cimy user extra fields” plugin?


    robertFudge
    Participant

    @robertfudge

    Great.


    robertFudge
    Participant

    @robertfudge

    Any idea when the next release is scheduled? I have not been able to resolve this from the method explained. Thanks.

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