Forum Replies Created
Viewing 2 posts - 1 through 2 (of 2 total)
-
Author
-
Model
ParticipantIn order for them to show up I had to open their profile in the backend and just click on update profile without doing anything else and they showed up…
This is how my function.php file looks like:
COPY CODE<?php /** * @package WordPress * @subpackage Sweetdate * @author SeventhQueen <themesupport@seventhqueen.com> * @since Sweetdate 1.0 */ /** * Sweetdate Child Theme Functions * Add extra code or replace existing functions */ add_action('after_setup_theme','kleo_my_hearts_actions'); function kleo_my_hearts_actions() { /* disable matching on member profile */ remove_action('kleo_bp_before_profile_name', 'kleo_bp_compatibility_match'); /* Replace the heart over images */ add_filter('kleo_img_rounded_icon', 'my_custom_icon'); /* Replace the heart from register modal */ add_filter('kleo_register_button_icon', 'my_custom_icon_register'); /* Replace the heart from About us widget */ add_filter('kleo_widget_aboutus_icon', 'my_custom_icon_about_widget'); } /* Replace the heart with a camera icon function */ function my_custom_icon () { return 'camera'; } /* Replace the heart from register modal with a user icon function */ function my_custom_icon_register () { return 'user'; } /* Replace the heart from about us widget with a user icon function */ function my_custom_icon_about_widget () { return 'user'; } //my changes to profile tabs add_action('after_setup_theme','kleo_my_custom_tabs'); function kleo_my_custom_tabs() { global $bp_tabs; $bp_tabs = array(); $bp_tabs['base'] = array( 'type' => 'regular', 'name' => __('Sobre Mi', 'kleo_framework'), 'group' => 'Sobre Mi', 'class' => 'regulartab' ); $bp_tabs['actividades'] = array( 'type' => 'regular', 'name' => __('Actividades', 'kleo_framework'), 'group' => 'Actividades', 'class' => 'regulartab' ); /* rtMedia tab - only if plugin installed */ if (class_exists('RTMedia')) { $bp_tabs['rtmedia'] = array( 'type' => 'rt_media', 'name' => __('Mis Fotos', 'kleo_framework'), 'class' => 'mySlider' ); } } /* Hide admin */ add_action('bp_init', 'kleo_private_admin'); function kleo_private_admin(){ global $bp; if(is_super_admin()) { remove_action("wp_head","bp_core_record_activity"); //id SM is on, remove the record activity hook //then remove the last activity, if present delete_user_meta($bp->loggedin_user->id, 'last_activity'); } } add_action('bp_ajax_querystring','kleo_exclude_users',20,2); function kleo_exclude_users($qs=false,$object=false) { //list of users to exclude $excluded_user='1';//comma separated ids of users whom you want to exclude if($object!='members')//hide for members only return $qs; $args=wp_parse_args($qs); //check if we are listing friends?, do not exclude in this case if(!empty($args['user_id'])) return $qs; if(!empty($args['exclude'])) $args['exclude']=$args['exclude'].','.$excluded_user; else $args['exclude']=$excluded_user; $qs=build_query($args); return $qs; } // Hide admin profile pages add_action( 'wp', 'hide_profile_template', 1 ); function hide_profile_template() { global $bp; if(bp_is_profile AND $bp->displayed_user->id == 1 AND $bp->loggedin_user->id != 1) : global $wp_query; $wp_query->set_404(); status_header(404); include(locate_template('404.php')); exit; endif; } //Copyright Text function kleo_copyright_text() { echo '<p>'. __("©", 'kleo_framework').' '.date("Y").' '. get_bloginfo('name').'.'. ' '. __("Derechos Reservados", 'kleo_framework'). '.'.' <br class="hide-for-large show-for-small"/></p>'; } //Show users in site right before account activation add_action('bp_core_activated_user', 'kleo_add_member_activity'); function kleo_add_member_activity($user_id) { add_user_meta( $user_id, 'last_activity', date("Y-m-d H:i:s")); } //Hide backend to users except Administrator function kleo_blockusers_init() { if ( is_admin() AND ! current_user_can( "administrator" ) AND ! ( defined( "DOING_AJAX" ) AND DOING_AJAX ) ) { wp_redirect( home_url() ); exit; } } //members page fields add_action('after_setup_theme','kleo_my_member_data'); function kleo_my_member_data() { global $kleo_config; //this is the details field, right now it take the "About me" field content $kleo_config['bp_members_details_field'] = 'About me'; //this display the fields under the name, eq: 36 / Woman / Divorced / Berlin. Modify with the names of the fields you want to appear there $kleo_config['bp_members_loop_meta'] = array( 'Genero', 'Ciudad', 'Edad', 'Catalogación' ); } //Hide breadcrumb function kleo_show_breadcrumb() { if (sq_option('breadcrumb_status') == 1) { if(!is_page_template('page-templates/front-page.php')) { echo '<section><div id="breadcrumbs-wrapp"><div class="row"><div class="nine columns"></div>'; do_action('kleo_after_breadcrumb'); echo '</div></div></section>'; } } } ?>I have added that code that automatically displays the user once they click the activation email. However this is not working..
Model
ParticipantI have tried modifying this by replicating the content and replacing the group number from 1 to 2 and 3.. Now I can see all the fields that are included in each group. Now the problem is that whenever the user activates his/hr account all the fields they have filled during the registration do not show up.. This is the code..
COPY CODE<!-- #basic-details-section --> <?php do_action( 'bp_after_account_details_fields' ); ?> <?php /***** Extra Profile Details ******/ ?> <?php if ( bp_is_active( 'xprofile' ) ) : ?> <?php do_action( 'bp_before_signup_profile_fields' ); ?> <div class="register-section six columns" id="profile-details-section"> <h4><i class="icon icon-comments"></i> <?php _e( 'Detalles del Perfil', 'buddypress' ); ?></h4> <br> <?php /* Use the profile field loop to render input fields for the 'base' profile field group */ ?> <?php if ( bp_is_active( 'xprofile' ) ) : if ( bp_has_profile( 'profile_group_id=1' ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?> <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?> <div class="<?php if('selectbox' == bp_get_the_profile_field_type() || 'multiselectbox' == bp_get_the_profile_field_type() ) echo 'six'; else echo 'twelve';?> columns"> <div class="editfield"> <?php $field_type = bp_xprofile_create_field_type( bp_get_the_profile_field_type() ); $field_type->edit_field_html(); do_action( 'bp_custom_profile_edit_fields_pre_visibility' ); if ( bp_current_user_can( 'bp_xprofile_change_field_visibility' ) ) : ?> <p class="field-visibility-settings-toggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>"> <?php printf( __( 'Este campo puede ser visto por: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?> <a href="#" class="visibility-toggle-link"><?php _ex( 'Change', 'Cambia el perfil del nivel de visualización de campo', 'buddypress' ); ?></a> </p> <div class="field-visibility-settings" id="field-visibility-settings-<?php bp_the_profile_field_id() ?>"> <fieldset> <legend><?php _e( '¿Quién puede ver este campo?', 'buddypress' ) ?></legend> <?php bp_profile_visibility_radio_buttons() ?> </fieldset> <a class="field-visibility-settings-close" href="#"><?php _e( 'Cerrar', 'buddypress' ) ?></a> </div> <?php else : ?> <p class="field-visibility-settings-notoggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>"> <?php printf( __( 'Este campo puede ser visto por: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?> </p> <?php endif ?> <?php do_action( 'bp_custom_profile_edit_fields' ); ?> <p class="description"><?php bp_the_profile_field_description(); ?></p> </div> </div> <?php endwhile; ?> <input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="<?php bp_the_profile_group_field_ids(); ?>" /> <?php endwhile; endif; endif; ?> </div> <!-- Principal Final --> <!-- Más Detalles --> <div class="register-section six columns" id="profile-details-section"> <h4><i class="icon icon-comments"></i> <?php _e( 'Más Detalles', 'buddypress' ); ?></h4> <br> <?php /* Use the profile field loop to render input fields for the 'base' profile field group */ ?> <?php if ( bp_is_active( 'xprofile' ) ) : if ( bp_has_profile( 'profile_group_id=2' ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?> <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?> <div class="<?php if('selectbox' == bp_get_the_profile_field_type() || 'multiselectbox' == bp_get_the_profile_field_type() ) echo 'six'; else echo 'twelve';?> columns"> <div class="editfield"> <?php $field_type = bp_xprofile_create_field_type( bp_get_the_profile_field_type() ); $field_type->edit_field_html(); do_action( 'bp_custom_profile_edit_fields_pre_visibility' ); if ( bp_current_user_can( 'bp_xprofile_change_field_visibility' ) ) : ?> <p class="field-visibility-settings-toggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>"> <?php printf( __( 'Este campo puede ser visto por: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?> <a href="#" class="visibility-toggle-link"><?php _ex( 'Change', 'Cambia el perfil del nivel de visualización de campo', 'buddypress' ); ?></a> </p> <div class="field-visibility-settings" id="field-visibility-settings-<?php bp_the_profile_field_id() ?>"> <fieldset> <legend><?php _e( '¿Quién puede ver este campo?', 'buddypress' ) ?></legend> <?php bp_profile_visibility_radio_buttons() ?> </fieldset> <a class="field-visibility-settings-close" href="#"><?php _e( 'Cerrar', 'buddypress' ) ?></a> </div> <?php else : ?> <p class="field-visibility-settings-notoggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>"> <?php printf( __( 'Este campo puede ser visto por: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?> </p> <?php endif ?> <?php do_action( 'bp_custom_profile_edit_fields' ); ?> <p class="description"><?php bp_the_profile_field_description(); ?></p> </div> </div> <?php endwhile; ?> <input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="<?php bp_the_profile_group_field_ids(); ?>" /> <?php endwhile; endif; endif; ?> </div> <!-- Perfil Más Detalles Final --> <!-- Perfil Actividades --> <div class="register-section six columns" id="profile-details-section"> <h4><i class="icon icon-comments"></i> <?php _e( 'Actividades', 'buddypress' ); ?></h4> <br> <?php /* Use the profile field loop to render input fields for the 'base' profile field group */ ?> <?php if ( bp_is_active( 'xprofile' ) ) : if ( bp_has_profile( 'profile_group_id=3' ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?> <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?> <div class="<?php if('selectbox' == bp_get_the_profile_field_type() || 'multiselectbox' == bp_get_the_profile_field_type() ) echo 'six'; else echo 'twelve';?> columns"> <div class="editfield"> <?php $field_type = bp_xprofile_create_field_type( bp_get_the_profile_field_type() ); $field_type->edit_field_html(); do_action( 'bp_custom_profile_edit_fields_pre_visibility' ); if ( bp_current_user_can( 'bp_xprofile_change_field_visibility' ) ) : ?> <p class="field-visibility-settings-toggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>"> <?php printf( __( 'Este campo puede ser visto por: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?> <a href="#" class="visibility-toggle-link"><?php _ex( 'Change', 'Cambia el perfil del nivel de visualización de campo', 'buddypress' ); ?></a> </p> <div class="field-visibility-settings" id="field-visibility-settings-<?php bp_the_profile_field_id() ?>"> <fieldset> <legend><?php _e( '¿Quién puede ver este campo?', 'buddypress' ) ?></legend> <?php bp_profile_visibility_radio_buttons() ?> </fieldset> <a class="field-visibility-settings-close" href="#"><?php _e( 'Cerrar', 'buddypress' ) ?></a> </div> <?php else : ?> <p class="field-visibility-settings-notoggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>"> <?php printf( __( 'Este campo puede ser visto por: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?> </p> <?php endif ?> <?php do_action( 'bp_custom_profile_edit_fields' ); ?> <p class="description"><?php bp_the_profile_field_description(); ?></p> </div> </div> <?php endwhile; ?> <input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="<?php bp_the_profile_group_field_ids(); ?>" /> <?php endwhile; endif; endif; ?> </div><!-- #profile-details-section --> -
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)