[Webinar] SpiraTest - Setting New Standards in Quality Assurance
BuddyPress @ WordCamp Whistler 2009
1. BuddyPress
in early 2009
Andy Peatling
Social Engineer, Automattic
apeatling.wordpress.com / @apeatling
Sunday, January 25, 2009
2. BuddyPress will transform an
installation of WordPress MU into a
social network platform.
Sunday, January 25, 2009
3. Friends Blogs
Extended Profiles Private Messaging
Groups Wire Activity Streams Forums
Status Updates Albums
Default Home Default Member
Theme Theme
09
09 20
20
Sunday, January 25, 2009
4. Blog Themes Member Themes
A WordPress blog theme can be
converted to a BuddyPress member
theme with a few simple steps.
Sunday, January 25, 2009
5. Plugin Files Home Theme Member Theme
wp-content/member-themes
wp-content/mu-plugins wp-content/themes
Sunday, January 25, 2009
7. Potential Uses
★ Business or school internal social networks
★ Niche social networks
★ Adding social networking features to existing blog networks
★ Interacting with fellow bloggers on WordPress.com
Sunday, January 25, 2009
8. Why use WordPress?
★ Easy database access and manipulation
★ User management and access control
★ Powerful XML support, importing/exporting, XML-RPC
★ Active and supportive community
★ Localization support built right in
Sunday, January 25, 2009
9. Existing Plugins & Themes with BuddyPress
★ Add new features with already existing plugins
★ Use any WordPress theme (with some easy steps)
★ A complete developer platform already exists
If you can write a WordPress plugin, you already know how to
create or extend BuddyPress components.
Sunday, January 25, 2009
10. All components follow the
same file and code structure.
Standardization and
consistency makes happy
developers.
Sunday, January 25, 2009
11. bp_core_add_nav_item(
‘Profile’, // Name
‘profile’ // Slug
);
bp_core_add_subnav_item(
‘profile’, // Slug of parent
‘Edit Profile’, // Name
‘edit’, // Slug
$bp[‘loggedin_domain’] . ‘profile/’ ), // parent URL
‘xprofile_screen_edit’ // Function to run when clicked
);
Sunday, January 25, 2009
12. bp_core_add_subnav_item(
‘profile’, // Slug of parent
‘Edit Profile’, // Name
‘edit’, // Slug
$bp[‘loggedin_domain’] . ‘profile/’ ), // parent URL
‘xprofile_screen_edit’ // Function to run when clicked
);
function xprofile_screen_edit() {
bp_core_load_template( ‘profile/edit-profile’ );
}
Or, use the built in plugin-
template.php file
wp-content/member-themes/profile/edit-profile.php
Sunday, January 25, 2009
13. http:// domain.com / members / andy / profile / edit / group / 1
$bp[‘current_component’] $bp[‘current_action’] $bp[‘action_variables’]
(Array)
(String) (String)
Easily create and use pretty URL’s in your custom component
http:// domain.com / members / andy / wordcamps / attended / whistler / 2009
Sunday, January 25, 2009
14. Full list of BuddyPress actions & filters: http://codex.buddypress.org/
Sunday, January 25, 2009
16. The Future
★ Beta 2 - Next week / Final - Early February ’09
★ Albums & Status Updates components
★ BuddyPress.org developer community site
★ Open standards support / distribution of data
★ BuddyPress for WordPress?
Sunday, January 25, 2009