Skip to:
Content

BuddyPress.org

Opened 16 years ago

Closed 14 years ago

Last modified 10 years ago

#2764 closed defect (bug) (no action required)

Move bp_message_get_notices() to an action

Reported by: r-a-y Owned by:
Priority: normal Milestone:
Component: Templates Version: 1.2.6
Severity: normal Keywords: dev-feedback
Cc:

Description

Right now, we hardcode the notices to the sidebar.

What if we want to show the notices somewhere else and we want to unhook the notices from the sidebar?

Attached patch adds bp_message_get_notices() as an action and allows theme developers to easily remove sidebar notices with remove_action.

Attached patch is against 1.2.6.

---

Only problem is theme developers will need to update their theme so double notices will not show up (similar to the double buttons issue that popped up after v1.2.6 was released).

Attachments (1)

2764.001.patch (941 bytes ) - added by r-a-y 16 years ago.

Download all attachments as: .zip

Change History (11)

@r-a-y
16 years ago

#1 @DJPaul
16 years ago

Why can't sidebar.php be overridden in a stylesheet?

#2 @boonebgorges
16 years ago

DJPaul - Of course sidebar.php *could* be overridden. But hardcoding these sorts of things seems to be bad sportsmanship on BP's part :) If we can save site owners from overriding a bp-default template (and saving them the headache of manually merging future changes into their child theme), then we should do so.

+1 on the patch. Paul, are you strongly against it?

#3 @r-a-y
16 years ago

What Boone said ;)

#4 @DJPaul
16 years ago

  • Keywords dev-feedback added

Yep. I think a widget would be more appropriate. However, as this on itself would be the world's most boring widget, what about combining it with #1474 -- the log in/out panel and the message notices into a combined widget?

#5 @DJPaul
16 years ago

  • Milestone 1.31.4

Bumping this to 1.4 unless someone provides a good patch.

#6 @DJPaul
16 years ago

  • Keywords has-patch removed

#7 @DJPaul
15 years ago

  • Milestone 1.6Future Release
  • Severitynormal

#8 @r-a-y
14 years ago

  • Resolutioninvalid
  • Status newclosed

Closing this as theme compat now covers sitewide notices (#4802) and is unhookable if someone needs to override it.

#9 @DJPaul
14 years ago

  • Milestone Future Release

#10 @DJPaul
10 years ago

  • Component Appearance - Template PartsTemplates
Note: See TracTickets for help on using tickets.