BuddyDev

Search

Showing Membrer Count in BuddyPress Extended User Groups Widget

  • Participant
    Level: Enlightened
    Posts: 73
    Gregg Housh on #25603

    Hi again Brajesh!

    Looking at the output. I’ve replaced the id of extended-groups-list with groups-list on the ul, and now it looks a little better for me. But what I was wondering is if it is possible to put a span with a good id on it after the name that shows the total count of members in a group.

    Our users are all about status, so they would love to see that.

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #25604

    Hi Gregg,

    Thank you for the question.

    Sure. Since you have modified the plugin, you can use

    
    bp_group_member_count();
    

    to show the member count.

    And the “item-title” div is showing the title. Hope that helps.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 73
    Gregg Housh on #25605

    I haven’t modified the plugin! I am going to keep it working on your code. I just added some jQuery that replaces the ID for me so it uses the same ID as my other groups widget.

  • Participant
    Level: Enlightened
    Posts: 73
    Gregg Housh on #25606

    You know what. It might actually be smart of me to fork it and do these things on my own, otherwise I am going to have like 10 more ideas for you and most probably won’t be too useful to other users.

    Thanks again for all of the awesome support.

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #25618

    Hi Gregg,
    Thank you.

    A better approach will be to allow template override in future. That will add the flexibility.

    We will have it in our next release.

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved