Skip to:
Content

BuddyPress.org

Opened 10 years ago

Closed 10 years ago

#6840 closed enhancement (fixed)

Member Types: introduce member type directory permalink

Reported by: Offereins Owned by: boonebgorges
Priority: normal Milestone: 2.5
Component: Members Version:
Severity: normal 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 10 years ago.

Download all attachments as: .zip

Change History (4)

#1 @boonebgorges
10 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
10 years ago

  • Milestone Awaiting Review2.5
  • Owner set to boonebgorges
  • Status newassigned

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

#3 @boonebgorges
10 years ago

  • Resolutionfixed
  • Status assignedclosed

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.