BuddyDev

Search

[Resolved] Buddypress All members counter

  • Participant
    Level: Enlightened
    Posts: 33
    Nestor Djintelbé on #50887

    Hello BuddyDev Team,

    I would like to know how one can make Buddypress All members counter counts all registered members not only members that at least logged in once.

    Thank you in advance!

  • Keymaster
    (BuddyDev Team)
    Posts: 24334
    Brajesh Singh on #50900

    Hi,
    You can use

    
    bp_core_get_total_member_count()
    

    That will give you all count(even the users without any activity).

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 33
    Nestor Djintelbé on #50906

    Hello Brajesh,

    Thank you very much for your reply. Please, help me with a litle mor details, how can I use this function?

  • Keymaster
    (BuddyDev Team)
    Posts: 24334
    Brajesh Singh on #50924

    Hi,
    Do you want to change it on the members directory page? If you can share a screenshot showing the location, I amy be able to assit you.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 33
    Nestor Djintelbé on #50925

    Hello Brajesh,

    Thank you very much for your reply. Here are the screenshot showing the location.

    https://we.tl/t-g0mS7yzgdS

  • Keymaster
    (BuddyDev Team)
    Posts: 24334
    Brajesh Singh on #50936

    Thank you for the link.
    I am sorry but that looks like some custom theme/template pack.

    I will suggest reaching out to the source of your theme/template pack to change the function as suggested above.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 33
    Nestor Djintelbé on #50938

    Hello Brajesh,

    Thank you very much again for your reply and the suggestion you did. The theme used is OceanWP with Buddypress legacy template. I just customed the website with somme CSS code. Excuse me for disturbing you again with some questions : which function will I replace with the one you suggested and where can I find it ?

    Thank you again for time !

  • Participant
    Level: Enlightened
    Posts: 33
    Nestor Djintelbé on #50940

    Hello Brajesh,

    It is okay now, thank you very much for your suggestion !

    In /wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/activity/index.php

    and

    /wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/index.php

    I replaced the function bp_get_total_member_count() with the one you suggested ( bp_core_get_total_member_count() )

  • Keymaster
    (BuddyDev Team)
    Posts: 24334
    Brajesh Singh on #50949

    Hi,
    Thank you for the replies.
    It’s good to know.

    Have a great time building your site!

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 33
    Nestor Djintelbé on #50955

    Thank you very much for helping people!

You must be logged in to reply to this topic.

This topic is: resolved