@chriotte
Active 9 years, 11 months ago
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Some trying and failing with the help of google gave me the answer.
// Add field_name from sign-up to usermeta on registration function bp_user_activate_field( $signup ) { $bpCustomField = $_POST['phone']; update_usermeta( $signup, 'phone', $bpCustomField ); return $signup; } add_filter( 'user_register', 'bp_user_activate_field' );This is how it looks on the front end with the input added to my code.

(Telefon = Phone)
I simply need som guidance on how to update user_meta on buddypress registration submit.I think I’m closing into the answer, but I’m not able to get any content. The return is 0.
$.ajax({ url:ajaxurl, type:'GET', data: { action: 'bp_has_members' }, success: function(members){ alert('funka det?'); $('#phpdiv').append(members); } });I have successfully managed to use ajax and call a PHP script on my root folder. The problem now is to call on members-loop again.
Right now my script looks like this:<script type="text/javascript"> function vedCheckboxValg(){ $.get( "../phpdata.php", function( data ) { $('#phpdiv').append(data); }); } $( "input" ).on( "click", function() { $( "#phpdiv" ).empty().append( $( "input:checked" ).val() + " resultater vises" ); vedCheckboxValg(); }); </script>I get 404 not found in the debugger when I try to call on members-loop by using different paths such as members/members-loop.php etc.
How can I call the loop and re-run it (so I can run the loop again with new data)?
Viewing 4 replies - 1 through 4 (of 4 total)