[buddypress-dev] bp-activity

Andy Peatling andypeatling at automattic.com
Wed Sep 24 07:06:06 GMT 2008


The new activity component is in now in trunk. The activity component  
shows an activity stream for the logged in user and also all the  
friends of the logged in user. Users can also view other users activity.

You can also view the latest on http://testdrivewpmu.com (http://andy.testdrivewpmu.com 
  as an example without signing up).

Handling of navigation items and action handling have also been  
modified in this revision.

In previous revisions you had to modify the navigation arrays  
directly, and also use a "bp_[component]_catch_action" function. This  
was messy and made it difficult for components to be extended in third  
party plugins.

Four new functions are now available:

bp_core_add_nav_item()
  - Details here: http://trac.buddypress.org/browser/trunk/bp-core.php#L508

bp_core_add_subnav_item()
  - Details here: http://trac.buddypress.org/browser/trunk/bp-core.php#L546

bp_core_add_nav_default()
  - Details here: http://trac.buddypress.org/browser/trunk/bp-core.php#L600

bp_core_reset_subnav_items()
  - Details here: http://trac.buddypress.org/browser/trunk/bp-core.php#L585

Also added is a new template file in the default theme (plugin- 
template.php) which will let plugins easily display information within  
the actual theme. This means new components could be added without  
creating new template files, and existing BuddyPress components could  
be easily extended.

Code example here:
http://codex.buddypress.org/extending-components/

Cheers
Andy

---------
Andy Peatling | Social Engineer | Automattic
http://apeatling.wordpress.com






More information about the buddypress-dev mailing list