Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • 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.


    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

    I finally managed to do it myself, you just have to use bp_loggedin_user_id() instead of bp_get_member_user_id() and include the Get the Cover Image part only.


    chinatownlee
    Participant

    @chinatownlee

    I did it myself, used the code found in: Using BuddyPress Cover Images inside the Member and Group Loops

    There is an error, though, in the code provided for the members part:

    bp_get_member_id(), should be bp_get_member_user_id(),

Viewing 4 replies - 1 through 4 (of 4 total)
Skip to toolbar