-
Author
Tagged: issue; members
-
August 22, 2014 at 06:40 #26366
Model
ParticipantHi:
I just launched my site and a few users have registered. However they are not showing up on Members page. However, If I login with my administrator account I can see them in the members page. I see that they have added foots and edited their profiles. PLEASE I need this resolved ASAP.
August 22, 2014 at 06:46 #26368Model
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..
August 22, 2014 at 16:16 #26396Catalin
ModeratorHello,
Please take a look at this link:
https://archived.seventhqueen.com/forums/topic/show-users-in-site-right-before-account-activation
Thank you,
CatalinHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAugust 23, 2014 at 02:27 #26436Model
ParticipantI have added that code but still it is not working… This user Diana89vio activated the account but still it is not showing up under members…
August 23, 2014 at 03:19 #26440Model
ParticipantI had a couple of users who registered and they have completed all the fields and also added some photos but still they are not showing up!!! They online show up when I am logged in as Administrator… I need this fixed.. I have provided the credentials and everything what else do you need in order to check this???
August 23, 2014 at 03:28 #26442Model
ParticipantI have fixed this after disabling w3 total cache… However I still have the issue where a user activates their account but still do not show up.. even though I have added the required code under function.php. User that registered but doe snot show up is Diana89vio
August 26, 2014 at 16:27 #26676Catalin
Moderatordoes that user had any activity on the site like posting or adding a friend or watevs?
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The topic ‘ISSUE MEMBERS – HELP ASAP’ is closed to new replies.