[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:37:40 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:  closed
 Priority:  normal            |   Milestone:  3.1.0
Component:  Templates         |     Version:
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |
------------------------------+---------------------
Changes (by imath):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"12142" 12142]:
 {{{
 #!CommitTicketReference repository="" revision="12142"
 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.

 Fixes #7851 (Branch 3.0)
 }}}

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


More information about the buddypress-trac mailing list