@chinatownlee
6 years, 4 months ago
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.
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?
7 years, 2 months ago
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.
bp_loggedin_user_id()
bp_get_member_user_id()
Get the Cover Image
7 years, 4 months ago
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(),
bp_get_member_id(),
bp_get_member_user_id(),