Skip to:
Content

bbPress.org

Opened 13 years ago

Closed 11 years ago

#2537 closed enhancement (fixed)

User details template new hook

Reported by: dimitrov.adrian Owned by: johnjamesjacoby
Priority: normal Milestone: 2.6
Component: Appearance - Theme Compatibility Version: trunk
Severity: normal Keywords: has-patch commit
Cc: mercijavier@…

Description

We can override the template but it will cost extra maintance if new version is updated, so one extra hook will cost so little, but can save many effort.

Attachments (5)

user-details.php.patch​ (388 bytes ) - added by dimitrov.adrian 13 years ago.
2537.patch​ (522 bytes ) - added by netweb 13 years ago.
2537.diff​ (522 bytes ) - added by netweb 13 years ago.
user-details.php.2.patch​ (522 bytes ) - added by netweb 13 years ago.
2537.2.diff​ (2.1 KB ) - added by netweb 12 years ago.

Download all attachments as: .zip

Change History (12)

#1 @dimitrov.adrian
13 years ago

The missing patch path is

bbpress/templates/default/bbpress/user-details.php

#2 @dimitrov.adrian
13 years ago

  • Milestone Awaiting Review → 2.6

@netweb
13 years ago

@netweb
13 years ago

#3 @netweb
13 years ago

Refreshed patch against /trunk

Each patch of the three patches I added are identical (2537.patch, 2537.diff​ & user-details.php.2.patch​)
Added variants for testing with grunt patch

Edit Note: The above was due to me using this ticket to test grunt patch

Providing the hook name bbp_template_after_user_details_menu_items is suitable user-details.php.2.patch is good to go.

Last edited 12 years ago by netweb (previous) (diff)

#4 @mercime
12 years ago

  • Cc mercijavier@… added

@netweb
12 years ago

#5 @netweb
12 years ago

In 2537.2.diff:

A refresh with before and and after hooks:

  • bbp_template_before_user_details_menu_items
  • bbp_template_after_user_details_menu_items

Also sneaks before and after hooks into content-single-user.php

  • bbp_template_before_user_wrapper
  • bbp_template_after_user_wrapper

#6 @netweb
12 years ago

  • Keywords commit added

#7 @johnjamesjacoby
11 years ago

  • Owner set to johnjamesjacoby
  • Resolution → fixed
  • Status new → closed

In 5854:

Templates: Add before & after hooks to user templates parts.

This changeset makes it easier to add custom text & HTML before & after user details.

Props netweb. Fixes #2537.

Note: See TracTickets for help on using tickets.