Skip to:
Content

BuddyPress.org

Opened 9 years ago

Closed 9 years ago

#6840 closed enhancement (fixed)

Member Types: introduce member type directory permalink

Reported by: offereins's profile Offereins Owned by: boonebgorges's profile boonebgorges
Milestone: 2.5 Priority: normal
Severity: normal Version:
Component: Members Keywords: has-patch
Cc:

Description

BP should provide (a) permalink function(s) for member type directories. The urls may consist of different variable parts, so to abstract this in core would make using them more easy.

Patch is attached.

Attachments (1)

member-type-directory-permalink.diff (1.7 KB) - added by Offereins 9 years ago.

Download all attachments as: .zip

Change History (4)

#1 @boonebgorges
9 years ago

In 10458:

Introduce bp_get_members_member_type_base().

BP 2.3 introduced member-type-specific directories. These directory URLs are
built using a member-type prefix, as 'type' in example.com/members/type/foo/.
The current changeset moves the filtered value into its own function so that
it can be referenced elsewhere with minimal duplication.

See #6840.

#2 @boonebgorges
9 years ago

  • Milestone changed from Awaiting Review to 2.5
  • Owner set to boonebgorges
  • Status changed from new to assigned

Thanks, @Offereins! I'm going to rework to make it a bit more readable, and add some unit tests.

#3 @boonebgorges
9 years ago

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

In 10459:

Introduce bp_get_member_type_directory_permalink().

The new template tag is an easy way to get the URL of a member-type directory.

Props Offereins.
Fixes #6840.

Note: See TracTickets for help on using tickets.