-
Julian Lamprea replied to the topic User profile privacy radio buttons are 'grayed out' in the forum How-to & Troubleshooting 11 years, 6 months ago
Also I have added a javascript function to change dynamically the name of the Visibility option in the toogle state, so, now, If you click on the Change Link, select other radio and click on close, you will see the new visibility option.
this is the javascript function:
[Read more]
function changeVisibilityLabel( id, txt ) {
sp =… -
Julian Lamprea replied to the topic User profile privacy radio buttons are 'grayed out' in the forum How-to & Troubleshooting 11 years, 6 months ago
Sorry, the correct code with the different ID implementation is:
foreach( bp_xprofile_get_visibility_levels() as $level ) {
$checked = $level['id'] == bp_get_the_profile_field_visibility_level() ? ' checked="checked" ' : '';$html .= '<li><label for="see-field_' . esc_attr( $level['id'] ) . '_'.bp_get_the_profile_field_id().'"><input…[Read more]
-
Julian Lamprea replied to the topic User profile privacy radio buttons are 'grayed out' in the forum How-to & Troubleshooting 11 years, 6 months ago
The issue is in the core of the xprofile fields integration that have been added to buddypress with errors.
The problem is in the bp-xprofile-template.php file in the method bp_profile_get_visibility_radio_buttons()
Currently that function is rendering the visibility levels as radiobuttons, but is using the same id for all radiobuttons, so, if you…[Read more]
@jalejo08
Active 4 years, 8 months ago