Skip to:
Content

BuddyPress.org

Opened 13 years ago

Closed 8 years ago

#3501 closed enhancement (wontfix)

More flexibility in default theme member-header.php

Reported by: jonnyauk's profile Jonnyauk Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Templates Keywords:
Cc: karmatosed@…

Description

It would be very useful to make this file more flexible to allow child themes and plugins to interact with it more.

See suggested patch attached 01.patch:

bp-default/members/single/member-header.php

  • New hook 'bp_before_member_header_title' - Insert content before main h2 title.
  • New hook 'bp_before_member_header_summary' - Before activity summary.
  • @name and last activity code made into new display function 'bp_dtheme_content_member_summary' - Allow more flexibility and over-ride potential in child themes. May be of use for activity area redesigns.
  • bp_activity_latest_update() and surrounding <div> made into new display function 'bp_dtheme_content_member_update' - Allow more flexibility and over-ride potential in child themes. May be of use for activity area redesigns.

bp-default/_inc_css/default.css

  • Amend CSS style accordingly

bp-default/functions.php

  • Contains new display functions as described above.

Attachments (1)

3501-01.patch (3.6 KB) - added by Jonnyauk 13 years ago.

Download all attachments as: .zip

Change History (7)

@Jonnyauk
13 years ago

#1 @johnjamesjacoby
13 years ago

  • Component changed from Core to Theme
  • Keywords has-patch 2nd-opinion added; dev-feedback removed
  • Milestone changed from Awaiting Review to Future Release

The problem with moving those snippets into functions are child themes that won't be updating their functions.php files.

Great patch but too late in 1.5 development cycle to make this kind of change. Moving to future release.

#2 @Jonnyauk
13 years ago

Makes sense - I understand on the child themes front.

#3 @DJPaul
12 years ago

  • Keywords needs-refresh added; has-patch 2nd-opinion removed

#4 @karmatosed
12 years ago

  • Cc karmatosed@… added

#5 @DJPaul
8 years ago

  • Component changed from Appearance - Template Parts to Templates

#6 @mercime
8 years ago

  • Keywords needs-refresh removed
  • Milestone Future Release deleted
  • Resolution set to wontfix
  • Status changed from new to closed

Closing this as we no longer support the bp-default theme.

Note: See TracTickets for help on using tickets.