Skip to:
Content
Pages
Categories
Search
Top
Bottom

Insert html after specific profile field

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

  • chinatownlee
    Participant

    @chinatownlee

    After a lot of research I managed to compile this code:

            <?php 
                  $args = array(
                    'field'   => 'Name',
                    'user_id' => $user_id,
                  );
                    $data = bp_get_profile_field_data( $args);
                      if (	'Name' == bp_get_the_profile_field_name() && !empty($data) ) { ?>
                        <form action="" method="post">
                            <input type="submit" name="certified" value="Inform" />
                            <input type="hidden" name="button_pressed" value="1" />
                        </form>
            <?php } ?>

    However, when I put this members/single/profile/edit.php Save Changes button becomes inactive.

    Why? How do I solve this?


    chinatownlee
    Participant

    @chinatownlee

    Well, it appears nesting forms is not possible. Now what?

    I need a button/link under the specific field. The click would generate an email to the admin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar