Members not showing

This topic contains 12 replies, has 2 voices, and was last updated by  Carmelo 2 months, 3 weeks ago.

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #7196

    Carmelo
    Participant
    • 8 Posts
    @carmelo

    Hi,

    In my members page users don’t show up:

    Members_Old

    I just followed this thread (https://support.themosaurus.com/forums/topic/memberssubscribers-are-not-showimg-up-2/) putting the code inside the functions.hp file, but still it doesn’t show.

    What’s the problem?

    Thanks

    #7198

    Olivier Cardoen
    Participant
    • 382 Posts
    @themosaurusrex

    Hi @carmelo,

    Could you tell us more about the code you put in your functions.php file?
    I’m not sure that this issue require any code snippet.

    Also, I’m seeing members on your directory page. How many of them are missing?

    Best,

    PS: As this issue is related with the BP Profile Search, I would recommend you try to reach the plugin authors if we don’t find any solution with this issue. They will probably be more informed and better suited to help you.

    #7199

    Carmelo
    Participant
    • 8 Posts
    @carmelo

    I put 112 members.
    Following that thread, I put this code:

    <?php
    /**
     * Gwangi Youth functions and definitions.
     *
     * @link https://developer.wordpress.org/themes/basics/theme-functions/
     *
     * @package gwangi-youth
     */
    
    define( 'GWANGI_YOUTH_VERSION', '1.1.8' );
    
    /**
     * Initialize all the things.
     */
    global $gwangi_youth;
    $gwangi_youth = require get_stylesheet_directory() . '/inc/class-gwangi-youth.php';
    
    /**
     * Colors
     */
    
    define( 'GWANGI_GRAY_DARK',             '#2A2733'                  );
    define( 'GWANGI_GRAY',                  '#3B354D'                  );
    define( 'GWANGI_GRAY_LIGHT',            '#888491'                  );
    define( 'GWANGI_GRAY_LIGHTER',          '#e8e8e8'                  );
    define( 'GWANGI_GRAY_LIGHTEST',         '#F9F6F6'                  );
    define( 'GWANGI_BLACK_FADED',           'rgba(0, 0, 0, 0.05)'      );
    
    define( 'GWANGI_BRAND_INFO',            '#6B79B7'                  );
    define( 'GWANGI_BRAND_SUCCESS',         '#3DBDB6'                  );
    define( 'GWANGI_BRAND_WARNING',         '#ffd500'                  );
    define( 'GWANGI_BRAND_DANGER',          '#d9534f'                  );
    
    define( 'GWANGI_BRAND_PRIMARY',         '#FF6162'                  );
    define( 'GWANGI_BRAND_PRIMARY_HOVER',   '#E65757'                  );
    define( 'GWANGI_BRAND_SECONDARY',       '#F0EBEB'                  );
    define( 'GWANGI_BRAND_SECONDARY_HOVER', '#F0DDDD'                  );
    
    define( 'GWANGI_BODY_COLOR',            GWANGI_GRAY_LIGHT          );
    define( 'GWANGI_BODY_BACKGROUND',       'ffffff'                   );
    define( 'GWANGI_LINK_COLOR',            GWANGI_BRAND_PRIMARY       );
    define( 'GWANGI_LINK_HOVER_COLOR',      GWANGI_BRAND_PRIMARY_HOVER );
    
    /**
     * Typography
     */
    
    define( 'GWANGI_FONT_FAMILY_BASE',             'Poppins'                   );
    define( 'GWANGI_FONT_FAMILY_HEADINGS',         'Montserrat'                );
    define( 'GWANGI_FONT_FAMILY_DISPLAY_HEADINGS', GWANGI_FONT_FAMILY_HEADINGS );
    
    define( 'GWANGI_FONT_SIZE_BASE',               '1rem'                      );
    define( 'GWANGI_FONT_SIZE_HEADING1',           '2.1rem'                    );
    define( 'GWANGI_FONT_SIZE_HEADING2',           '1.9rem'                    );
    define( 'GWANGI_FONT_SIZE_HEADING3',           '1.5rem'                    );
    define( 'GWANGI_FONT_SIZE_HEADING4',           '1.25rem'                   );
    define( 'GWANGI_FONT_SIZE_HEADING5',           '1.05rem'                   );
    define( 'GWANGI_FONT_SIZE_HEADING6',           '0.95rem'                   );
    define( 'GWANGI_FONT_SIZE_DISPLAY_HEADINGS1',  '3.2rem'                    );
    define( 'GWANGI_FONT_SIZE_DISPLAY_HEADINGS2',  '2.35rem'                   );
    define( 'GWANGI_FONT_SIZE_DISPLAY_HEADINGS3',  '2rem'                      );
    define( 'GWANGI_FONT_SIZE_DISPLAY_HEADINGS4',  '1.55rem'                   );
    
    define( 'GWANGI_FONT_WEIGHT_NORMAL',           '400'                       );
    define( 'GWANGI_FONT_WEIGHT_BOLD',             '600'                       );
    define( 'GWANGI_FONT_WEIGHT_HEADINGS',         GWANGI_FONT_WEIGHT_BOLD     );
    define( 'GWANGI_FONT_WEIGHT_DISPLAY_HEADINGS', GWANGI_FONT_WEIGHT_BOLD     );
    
    define( 'GWANGI_LINE_HEIGHT_BASE',             '1.5'                       );
    define( 'GWANGI_LINE_HEIGHT_HEADINGS',         '1.2'                       );
    
    define( 'GWANGI_LETTER_SPACING',               '0px'                       );
    define( 'GWANGI_BORDER_RADIUS',                .18                         );
    define( 'GWANGI_BORDER_WIDTH',                 0                           );
    
    /**
     * Buttons
     */
    
    define( 'GWANGI_BUTTON_PRIMARY_COLOR',                    '#ffffff'                     );
    define( 'GWANGI_BUTTON_PRIMARY_BACKGROUND_COLOR',         GWANGI_BRAND_PRIMARY          );
    define( 'GWANGI_BUTTON_PRIMARY_BORDER_COLOR',             GWANGI_BRAND_PRIMARY          );
    define( 'GWANGI_BUTTON_PRIMARY_HOVER_COLOR',              GWANGI_BUTTON_PRIMARY_COLOR   );
    define( 'GWANGI_BUTTON_PRIMARY_HOVER_BACKGROUND_COLOR',   GWANGI_BRAND_PRIMARY_HOVER    );
    define( 'GWANGI_BUTTON_PRIMARY_HOVER_BORDER_COLOR',       GWANGI_BLACK_FADED            );
    
    define( 'GWANGI_BUTTON_SECONDARY_COLOR',                  GWANGI_BRAND_PRIMARY          );
    define( 'GWANGI_BUTTON_SECONDARY_BACKGROUND_COLOR',       GWANGI_BRAND_SECONDARY        );
    define( 'GWANGI_BUTTON_SECONDARY_BORDER_COLOR',           GWANGI_BRAND_SECONDARY        );
    define( 'GWANGI_BUTTON_SECONDARY_HOVER_COLOR',            GWANGI_BUTTON_SECONDARY_COLOR );
    define( 'GWANGI_BUTTON_SECONDARY_HOVER_BACKGROUND_COLOR', GWANGI_BRAND_SECONDARY_HOVER  );
    define( 'GWANGI_BUTTON_SECONDARY_HOVER_BORDER_COLOR',     GWANGI_BLACK_FADED            );
    
    define( 'GWANGI_BUTTON_LINE_HEIGHT',                      '1.25rem'                     );
    define( 'GWANGI_BUTTON_BORDER_WIDTH',                     '2'                           );
    define( 'GWANGI_BUTTON_BORDER_RADIUS',                    GWANGI_BORDER_RADIUS          );
    
    define( 'GWANGI_BUTTON_PADDING_Y',                        1.1                           );
    define( 'GWANGI_BUTTON_PADDING_X',                        1.7                           );
    define( 'GWANGI_BUTTON_FONT_LETTER_SPACING',              '1.7px'                       );
    define( 'GWANGI_BUTTON_FONT_TEXT_TRANSFORM',              'uppercase'                   );
    define( 'GWANGI_BUTTON_FONT_SIZE',                        '12px'                        );
    define( 'GWANGI_BUTTON_FONT_VARIANT',                      GWANGI_FONT_WEIGHT_BOLD      );
    
    /**
     * Sections
     */
    
    define( 'GWANGI_SECTION_PADDING_Y',               6                    );
    define( 'GWANGI_SECTION_BACKGROUND_COLOR',        GWANGI_GRAY_LIGHTEST );
    define( 'GWANGI_SECTION_WIDGET_BACKGROUND_COLOR', '#ffffff'            );
    
    /**
     * Navigation
     */
    
    define( 'GWANGI_NAVIGATION_BACKGROUND',                     GWANGI_GRAY                                    );
    define( 'GWANGI_NAVIGATION_BORDER_COLOR',                   GWANGI_NAVIGATION_BACKGROUND                   );
    define( 'GWANGI_NAVIGATION_BORDER_BOTTOM_WIDTH',            0                                              );
    define( 'GWANGI_NAVIGATION_BORDER_TOP_WIDTH',               0                                              );
    define( 'GWANGI_NAVIGATION_ITEM_COLOR',                     '#ffffff'                                      );
    define( 'GWANGI_NAVIGATION_ITEM_ACTIVE_BACKGROUND_COLOR',   '#2f2c3c'                                      );
    define( 'GWANGI_NAVIGATION_ITEM_COLOR_ACTIVE',              GWANGI_BRAND_PRIMARY                           );
    define( 'GWANGI_NAVIGATION_SUB_MENU_ITEM_BACKGROUND_COLOR', GWANGI_NAVIGATION_ITEM_ACTIVE_BACKGROUND_COLOR );
    define( 'GWANGI_NAVIGATION_SUB_MENU_ITEM_COLOR',            GWANGI_NAVIGATION_ITEM_COLOR                   );
    define( 'GWANGI_NAVIGATION_STICK_TO_TOP_BACKGROUND',        GWANGI_NAVIGATION_BACKGROUND                   );
    define( 'GWANGI_NAVIGATION_MOBILE_BACKGROUND',              GWANGI_NAVIGATION_BACKGROUND                   );
    
    /**
     * HERO
     */
    
    define( 'GWANGI_HERO_BACKGROUND',           'rgba(0,0,0,0)'         );
    define( 'GWANGI_HERO_BACKGROUND_SECONDARY', '#F9F6F6'               );
    define( 'GWANGI_HERO_COLOR_SCHEME',         'dark'                  );
    define( 'GWANGI_HERO_TITLE_FONT_SIZE',      '7.4rem'                );
    define( 'GWANGI_HERO_TITLE_COLOR',          '#ffffff'               );
    define( 'GWANGI_HERO_SUBTITLE_FONT_SIZE',   '1.25rem'               );
    define( 'GWANGI_HERO_SUBTITLE_COLOR',       'rgba(255,255,255,0.9)' );
    define( 'GWANGI_HERO_TEXT_COLOR',           'rgba(0,0,0,0.7)'       );
    define( 'GWANGI_HERO_PADDING_Y',            11                      );
    
    /**
     * HEADER
     */
    
    define( 'GWANGI_HEADER_PADDING_Y',     6                       );
    define( 'GWANGI_BIG_HEADER_PADDING_Y', 16                      );
    define( 'GWANGI_HEADER_BACKGROUND',    'rgba(59, 54, 76, 0.6)' );
    
    /**
     * CONTENT
     */
    
    define( 'GWANGI_CONTENT_PADDING_Y',  4         );
    define( 'GWANGI_CONTENT_BACKGROUND', '#F0EBEB' );
    
    /**
     * CARDS
     */
    
    define( 'GWANGI_CARD_BACKGROUND',       '#ffffff'               );
    define( 'GWANGI_CARD_BORDER_RADIUS',    .15                     );
    define( 'GWANGI_CARD_BORDER_WIDTH',     0                       );
    define( 'GWANGI_CARD_BORDER_COLOR',     'transparent'           );
    define( 'GWANGI_CARD_COLOR',            GWANGI_GRAY_LIGHT       );
    define( 'GWANGI_CARD_TITLE_COLOR',      GWANGI_GRAY_DARK        );
    define( 'GWANGI_CARD_LINK_COLOR',       GWANGI_GRAY_LIGHT       );
    define( 'GWANGI_CARD_LINK_HOVER_COLOR', GWANGI_LINK_HOVER_COLOR );
    
    /**
     * LOADER
     */
    
    define( 'GWANGI_LOADER_COLOR',            '#ffffff'            );
    define( 'GWANGI_LOADER_BACKGROUND_COLOR', GWANGI_BRAND_PRIMARY );
    
    /**
     * BACK TO TOP BUTTON
     */
    
    define( 'GWANGI_BACK_TO_TOP_BUTTON_BORDER_RADIUS', .18 );
    
    // Initialize update checker
    require 'libs/plugin-update-checker/plugin-update-checker.php';
    Puc_v4_Factory::buildUpdateChecker(
    	'https://files.themosaurus.com/gwangi-youth/version.json',
    	__FILE__,
    	'gwangi-youth'
    );
    
    if ( is_admin() ) {
    	require get_stylesheet_directory() . '/inc/admin/class-gwangi-youth-admin.php';
    }
    
    /**
     * Plugins integration.
     */
    
    if ( class_exists( 'Grimlock' ) ) {
    	global $gwangi_youth_grimlock;
    	$gwangi_youth_grimlock = require get_stylesheet_directory() . '/inc/grimlock/class-gwangi-youth-grimlock.php';
    }
    
    if ( class_exists( 'Grimlock_Hero' ) ) {
    	global $gwangi_youth_grimlock_hero;
    	$gwangi_youth_grimlock_hero = require get_stylesheet_directory() . '/inc/grimlock-hero/class-gwangi-youth-grimlock-hero.php';
    }
    
    if ( class_exists( 'Grimlock_Hero_Animate' ) ) {
    	global $gwangi_youth_grimlock_hero_animate;
    	$gwangi_youth_grimlock_hero_animate = require get_stylesheet_directory() . '/inc/grimlock-hero-animate/class-gwangi-youth-grimlock-hero-animate.php';
    }
    
    if ( class_exists( 'Grimlock_BuddyPress' ) ) {
    	global $gwangi_youth_grimlock_buddypress;
    	$gwangi_youth_grimlock_buddypress = require get_stylesheet_directory() . '/inc/grimlock-buddypress/class-gwangi-youth-grimlock-buddypress.php';
    }
    
    function buddypress_add_last_activity() {
    
      $members =  get_users( 'fields=ID' );
      // $members =  get_users( 'fields=ID&role=subscriber' );
      
      foreach ( $members as $user_id ) {
            bp_update_user_last_activity( $user_id, bp_core_current_time() );
      }
    
    }
    add_action('bp_init', 'buddypress_add_last_activity' );
    
    #7200

    Olivier Cardoen
    Participant
    • 382 Posts
    @themosaurusrex

    Thank you for your reply.

    Does it work correctly when removing your snippet?

    Also, when adding a code snippet to your site, we recommend that you use a the Code Snippets plugin (https://wordpress.org/plugins/code-snippets/). If you have never activated this plugin, please read the following post:

    Adding Custom PHP Without Changing Your Child Theme

    In your case, any Gwangi Youth update might simply scratch custom code and all your customization work will be lost. So, it’s better to use this plugin.

    Best,

    #7201

    Carmelo
    Participant
    • 8 Posts
    @carmelo

    Just added with code snippets but, still the same…
    I used your theme before, but I never had this problem before.

    #7202

    Olivier Cardoen
    Participant
    • 382 Posts
    @themosaurusrex

    Hi @carmelo,

    Does it work correctly when deactivating your snippet? From what I understand, this code seems to be causing the issue.

    Thank you.

    #7203

    Carmelo
    Participant
    • 8 Posts
    @carmelo

    I deactivated it, but nothing changes.
    It doesn’t work, with or without the code.

    #7206

    Olivier Cardoen
    Participant
    • 382 Posts
    @themosaurusrex

    Hi @carmelo,

    Thank you for your feedback.

    Did you create these 112 users by yourself using the registration form? Or did you manually add these using the admin forms?
    Also, did you make sure to manually activate each account and then, proceed to a first login with each account?

    BuddyPress will only show members considered as “active members” on the site. Even if you manually activated the users, you need to log in with each user at least once so that BuddyPress considers them as active members.

    To make it easier for you, you can install the “User switching” plugin (https://wordpress.org/plugins/user-switching/). With that plugin you can just go to your users list, then click on “Switch to” on the user of your choice. After switching, a link will appear at the bottom of your site to switch back to your admin user. You can then repeat the process for all your users and they should appear in your members page.

    Best,

    #7209

    Carmelo
    Participant
    • 8 Posts
    @carmelo

    I just tried, but it didn’t work. I disabled every code snippet, installed the plugin, switched to a new user, but the page (https://datingfr.com/members_old/) still has few users…

    #7213

    Olivier Cardoen
    Participant
    • 382 Posts
    @themosaurusrex

    Hi @carmelo,

    Could you try again by deactivating all plugins and our theme please? I’m wondering if the issue persists when running only BuddyPress and the default WP theme.

    Thank you.

    #7214

    Carmelo
    Participant
    • 8 Posts
    @carmelo

    Found the problem. It’s paid membership pro!
    Is it mandatory to make the website works?

    #7223

    Olivier Cardoen
    Participant
    • 382 Posts
    @themosaurusrex

    Hi @carmelo,

    That’s great news! 🙂
    No, the plugin is not mandatory. However, if you wish to allow paid only pages or features on your website, it’s best to keep it activated. Paid Memberships Pro allows you to charge users and to implement recurring payments and restrict content or areas of your website that will only be displayed to premium members. Plenty of PMPro add-ons are available on the author website to go further if necessary, including one for BuddyPress restrictions:

    BuddyPress Integration

    Maybe installing this add-on plugin will solve this issue, in case you need to keep PMPro activated…

    To know precisely which features will be restricted from your BuddyPress website or why this issue is occurring with their plugin, it’s best if you ask directly to the plugin authors.

    They will be more informed and better suited to help you:

    Contact

    We remain available for all support requests related with the use of your theme.

    Best,

    #7256

    Carmelo
    Participant
    • 8 Posts
    @carmelo

    Thank you, I’ll contact them!

Viewing 13 posts - 1 through 13 (of 13 total)

You must be logged in to reply to this topic.