Skip to:
Content
Pages
Categories
Search
Top
Bottom

Is there a way to have a member count for registrations?


  • Tux Kapono
    Participant

    @tux-kapono

    Right now it shows people who registered and then logged in. Yes, I know, people who login should count more than the people who only registered, but I’d like the option of at least recognizing those who registered as well, since they receive a newsletter as a result.

Viewing 2 replies - 1 through 2 (of 2 total)

  • Henry
    Member

    @henrywright-1

    If you want to display the active member count which will exclude people who have completed the registration form but not yet activated their account, then use this

    <?php echo bp_core_get_active_member_count(); ?>

    If you want everyone including people who have not yet activated then use this

    <?php 
       global $wpdb;
       $sql = "SELECT COUNT(*) FROM " . $wpdb->prefix . "users";
       $totalusers = $wpdb->get_var($sql);
       echo $totalusers;
    ?>

    Tux Kapono
    Participant

    @tux-kapono

    Thanks Henry, I’ll have our developer take a look, I’m assuming he’ll know which file it is.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Is there a way to have a member count for registrations?’ is closed to new replies.
Skip to toolbar