@jaremilus
9 years, 7 months ago
define( 'BPLANG', 'pl_PL' ); if ( file_exists( get_template_directory() . '/languages' . '/buddypress-' . BPLANG . '.mo' ) ) { load_textdomain( 'buddypress', get_template_directory() . '/languages' . '/buddypress-' . BPLANG . '.mo' ); }
good idea Hugo, thanks!
no, because i can’t edit only few of that (B group) req. fields when i logged as admin…
my registration looks like this: https://buddypress.org/support/topic/how-to-create-register-form-with-selectbox-and-hidden-fields/ (here C group)
9 years, 8 months ago
i disable it in file members/js/buddypress.js
/*jq('#profile-edit-form input:not(:submit), #profile-edit-form textarea, #profile-edit-form select, #signup_form input:not(:submit), #signup_form textarea, #signup_form select').change( function() {*/ //line changed jq('#profile-edit-form input:not(:submit), #profile-edit-form textarea, #profile-edit-form select').change( function() { var shouldconfirm = true; jq('#profile-edit-form input:submit, #signup_form input:submit').on( 'click', function() { shouldconfirm = false; }); window.onbeforeunload = function(e) { if ( shouldconfirm ) { return BP_DTheme.unsaved_changes; } }; });