[buddypress-trac] [BuddyPress Trac] #7851: Alternative hook to bp_messages_inbox_list_item that can be used with BP Nouveau

buddypress-trac noreply at wordpress.org
Mon May 28 17:34:42 UTC 2018


#7851: Alternative hook to bp_messages_inbox_list_item that can be used with BP
Nouveau
------------------------------+-----------------------
 Reporter:  pareshradadiya    |       Owner:  imath
     Type:  defect (bug)      |      Status:  assigned
 Priority:  normal            |   Milestone:  3.1.0
Component:  Templates         |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+-----------------------

Comment (by imath):

 In [changeset:"12141" 12141]:
 {{{
 #!CommitTicketReference repository="" revision="12141"
 Messages: catch Legacy hooks to customize the Active conversation box.

 In order to preserve in the BP Nouveau Messages UI the level of PHP
 customization that developers are used to get in Legacy using
 {{{do_action}}} hooks, The content generated for the following hooks will
 be caught during Ajax requests and added as new properties of their JSON
 replies:

 - {{{bp_before_message_meta}}}
 - {{{bp_after_message_meta}}}
 - {{{bp_messages_inbox_list_item}}}
 - {{{bp_messages_thread_options}}}

 About the {{{bp_messages_inbox_list_item}}} hook: as the Messages UI of BP
 Nouveau, unlike Legacy, is not using a table tag to display the list of
 messages received/starred/sent. All extra actions about messages into
 these loop views are done within the Active conversation box (eg:
 star/unstar). To inject the content of this specific hook, we are adding a
 table element under the message content preview as the expected output is
 a td tag.

 See #7851 (Trunk)
 }}}

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7851#comment:11>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list