[buddypress-trac] [BuddyPress] #5148: Make notifications a separate component

buddypress-trac noreply at wordpress.org
Mon Nov 4 18:25:43 UTC 2013


#5148: Make notifications a separate component
----------------------------------+------------------------------
 Reporter:  johnjamesjacoby       |       Owner:  johnjamesjacoby
     Type:  defect (bug)          |      Status:  new
 Priority:  normal                |   Milestone:  2.0
Component:  Notifications         |     Version:
 Severity:  normal                |  Resolution:
 Keywords:  needs-patch needs-ui  |
----------------------------------+------------------------------
Changes (by henrywright):

 * cc: henrywright (added)


Comment:

 If notifications is to become a component, does that mean a dedicated
 notifications screen will be introduced? {{{
 members/username/notifications }}}

 I find the current notifications drop-down doesn't work very well when
 there are 5, 6, 7 etc notifications to display due to a lack of physical
 space. So for each member, I've introduced a dedicated page to display
 their (un-clicked) notifications:

 {{{
 function setup_notifications() {
         bp_core_new_nav_item(
                 array( 'name' => __( 'Notifications', 'buddypress' ),
                         'slug'  => 'notifications',
                         'position' => 40,
                         'show_for_displayed_user' => false,
                         'item_css_id' => 'notifications',
                         'screen_function' => 'notifications_screen',
                 )
         );
 }
 add_action( 'bp_setup_nav', 'setup_notifications' );

 function notifications_screen() {
         bp_core_load_template( 'members/single/notifications' );
 }
 }}}

 A standalone page (having lots more space than the drop-down) opens up the
 possibility of having a 'rich notifications' log such as

 {{{ [avatar] member X followed you }}}
 {{{ [avatar] member X replied to your comment }}}

 There would be little need to 'dismiss' or delete a notification as the
 page could grow endlessly allowing the member to check back over old
 notifications.

 The log might grow big so notifications might need to be paged. So {{{
 bp_core_new_subnav_item() }}} might be needed.

 Hopefully i'm not way off with my thoughts on this one. Just thought i'd
 throw an idea into the mixing pot.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5148#comment:9>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list