• First of all, thank you for creating this great plugin.

    I have a question in regards to membertypes. I am using buddypress with membertypes (https://codex.buddypress.org/developer/member-types/) and i was wondering if it would be possible to have the tabs in the profile seperated by member types.

    So e.g. I have 3 member types: Users, Publishers, Authors.
    What i am looking to accomplish is when a person views the profile of a member, it will show the following:

    1) The number of total followers
    2) The number of of users this user follows, breakdown per member type.
    following: x users, x publishers and x authors.
    3) have 3 tabs, one for each member type where the list of users this user follows are listed.

    Is it possible to accomplish such? I do know how to create custom tabs, the main part is to get the breakdown/count per member type, and to be able to loop the members per custom type.

    https://www.ads-software.com/plugins/buddypress-followers/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author r-a-y

    (@r-a-y)

    You could probably accomplish both 1) and 2) with bp_core_get_users():
    https://buddypress.trac.www.ads-software.com/browser/tags/2.3.3/src/bp-members/bp-members-functions.php#L71

    Set the 'member_type' parameter to whatever member type you are querying.
    Set the 'include' parameter to the follower IDs.

    Thread Starter eGuard

    (@eguard)

    Thanks for the feedback!

    I have accomplished what i was looking to achieve.

    Only thing is that i want to call the member-loop template so i can reuse the layout.

    i want to pass the id’s to bp_has_members()
    and then call bp_get_template_part() to get the template.

    Which parameters should I pass to bp_get_template_part() to get the memberloop template?

    And is it possible to sort the members by most followed?

    Thanks in advance for your support, and thanks for the great plugin!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Follow per member type’ is closed to new replies.