Skip to:

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#8394 closed enhancement (fixed)

Make it easier for the site's admin to output Members member types list into their profile header

Reported by: imath's profile imath Owned by: imath's profile imath
Milestone: 7.0.0 Priority: high
Severity: normal Version:
Component: Members Keywords: has-patch 2nd-opinion


Now that we have an Admin UI to create, edit, delete member types, this means we are making the Member Type feature more widely available (not only for advanced users / plugin-theme developers).

As a result, I believe we should make it visible on front-end using, just like the Group Types, the single Members item header. Otherwise, I'm afraid some users could think: "this Member Types Admin UI is useless??".

I'm suggesting the attached patch which replicate what the Group Type feature is doing to list the Group Types of a group into its header, according to the show_in_list property of the type object.

PS: the patch updates the Member Types Admin UI to let the site's admin set the show_in_list property of the member type object.

Here's a screenshot of how it could look like:

Attachments (1)

8394.patch (13.9 KB) - added by imath 3 years ago.

Download all attachments as: .zip

Change History (4)

3 years ago

This ticket was mentioned in Slack in #buddypress by imath. View the logs.

3 years ago

#2 @imath
3 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 12797:

Introduce a new template tag to list a user's member types

Just like Group Types can be listed into the displayed Group's header thanks to a specific template tag, Member types now have their own template tag bp_member_type_list() to do the same into the displayed user's header.

BP Nouveau is using this tag. Its header templates and styles has been updated to optimize the output of this list.

By default Member Types will not be displayed, their corresponding object will need to have their show_in_list property set to true.

Fixes #8394

#3 @imath
3 years ago

In 12799:

Member Types: improve the newly introduced bp_member_type_list()

This is a followup to [12797] in order to make it possible to avoid showing the template tag's label.

See #8394

Note: See TracTickets for help on using tickets.