![Page 1: BuddyPress and the Future of WordPress Plugins](https://reader033.vdocuments.site/reader033/viewer/2022052823/55548fc3b4c905186d8b46ef/html5/thumbnails/1.jpg)
and the Future of WordPress Plugins
by Mark Jaquith
markjaquith.comcoveredwebservices.com
@markjaquith
Saturday, September 26, 2009
![Page 2: BuddyPress and the Future of WordPress Plugins](https://reader033.vdocuments.site/reader033/viewer/2022052823/55548fc3b4c905186d8b46ef/html5/thumbnails/2.jpg)
BP 1.1 FTW
Saturday, September 26, 2009
![Page 3: BuddyPress and the Future of WordPress Plugins](https://reader033.vdocuments.site/reader033/viewer/2022052823/55548fc3b4c905186d8b46ef/html5/thumbnails/3.jpg)
What is BuddyPress?
•a WordPress MU plugin
•a “social layer”
•extensible
•fond of eating its own dog food
•under your control
Saturday, September 26, 2009
![Page 4: BuddyPress and the Future of WordPress Plugins](https://reader033.vdocuments.site/reader033/viewer/2022052823/55548fc3b4c905186d8b46ef/html5/thumbnails/4.jpg)
What it can do• Extended
Profiles
• Private Messaging
• Friends
• Blogs
• Groups
• Wire
• Activity Streams
• Forums
• Status updates
Saturday, September 26, 2009
![Page 5: BuddyPress and the Future of WordPress Plugins](https://reader033.vdocuments.site/reader033/viewer/2022052823/55548fc3b4c905186d8b46ef/html5/thumbnails/5.jpg)
Cafeteria Style
• Use only what you want
• Could just use it for extended profiles
Saturday, September 26, 2009
![Page 6: BuddyPress and the Future of WordPress Plugins](https://reader033.vdocuments.site/reader033/viewer/2022052823/55548fc3b4c905186d8b46ef/html5/thumbnails/6.jpg)
Saturday, September 26, 2009
![Page 7: BuddyPress and the Future of WordPress Plugins](https://reader033.vdocuments.site/reader033/viewer/2022052823/55548fc3b4c905186d8b46ef/html5/thumbnails/7.jpg)
Saturday, September 26, 2009
![Page 8: BuddyPress and the Future of WordPress Plugins](https://reader033.vdocuments.site/reader033/viewer/2022052823/55548fc3b4c905186d8b46ef/html5/thumbnails/8.jpg)
Installation•Install WPMU (2.8.4a currently)
•Use plugin installer to install BuddyPress
•Set up themes
Saturday, September 26, 2009
![Page 9: BuddyPress and the Future of WordPress Plugins](https://reader033.vdocuments.site/reader033/viewer/2022052823/55548fc3b4c905186d8b46ef/html5/thumbnails/9.jpg)
Theme SetupFor WPMU 2.8.x:
Add the themes to your themes dir:
$ cd wp-content/themes/$ ln -s ../plugins/buddypress/bp-themes/bp-sn-parent bp-sn-parent$ ln -s ../plugins/buddypress/bp-themes/bp-default bp-default
Future versions of WPMU (2.9+) will skip this step by allowing BP to tell WPMU about its default themes.
Saturday, September 26, 2009
![Page 10: BuddyPress and the Future of WordPress Plugins](https://reader033.vdocuments.site/reader033/viewer/2022052823/55548fc3b4c905186d8b46ef/html5/thumbnails/10.jpg)
Theme SetupEnable your BP theme in WPMU Site Admin, for the main blog
Activate the BP Members theme for the site's main blog
Saturday, September 26, 2009
![Page 11: BuddyPress and the Future of WordPress Plugins](https://reader033.vdocuments.site/reader033/viewer/2022052823/55548fc3b4c905186d8b46ef/html5/thumbnails/11.jpg)
Core Files Theme Files
Saturday, September 26, 2009
![Page 12: BuddyPress and the Future of WordPress Plugins](https://reader033.vdocuments.site/reader033/viewer/2022052823/55548fc3b4c905186d8b46ef/html5/thumbnails/12.jpg)
Pretty URLs http://bp.site/members/mark/skills/edit/buddypress/seattle
Saturday, September 26, 2009
![Page 13: BuddyPress and the Future of WordPress Plugins](https://reader033.vdocuments.site/reader033/viewer/2022052823/55548fc3b4c905186d8b46ef/html5/thumbnails/13.jpg)
Pretty URLs http://bp.site/members/mark/skills/edit/buddypress/seattle
$bp['current_component']
$bp['current_action']
$bp['action_variables'][0]
$bp['action_variables'][1]
Saturday, September 26, 2009
![Page 14: BuddyPress and the Future of WordPress Plugins](https://reader033.vdocuments.site/reader033/viewer/2022052823/55548fc3b4c905186d8b46ef/html5/thumbnails/14.jpg)
Adding Menusbp_core_new_nav_item( array( 'name' => __('Item Name', 'i18n-domain'), 'slug' => 'item-slug', 'position' => 50, 'show_for_displayed_user' => true, 'screen_function' => 'item_handler', 'default_subnav_slug' => 'index', 'item_css_id' => 'your-css-id' ));
Saturday, September 26, 2009
![Page 15: BuddyPress and the Future of WordPress Plugins](https://reader033.vdocuments.site/reader033/viewer/2022052823/55548fc3b4c905186d8b46ef/html5/thumbnails/15.jpg)
Adding Submenus
bp_core_new_subnav_item( array( 'name' => __( 'Child', 'i18n-domain' ), 'slug' => 'child-slug', 'parent_url' => $bp->loggedin_user->domain . '/item-slug', 'parent_slug' => 'item-slug', 'screen_function' => 'child_handler_function' ));
Saturday, September 26, 2009
![Page 16: BuddyPress and the Future of WordPress Plugins](https://reader033.vdocuments.site/reader033/viewer/2022052823/55548fc3b4c905186d8b46ef/html5/thumbnails/16.jpg)
Handlers
function handler_function() { // Logic here bp_core_load_template( 'item-name/index' ); // Loads item-name/index.php}
Saturday, September 26, 2009
![Page 17: BuddyPress and the Future of WordPress Plugins](https://reader033.vdocuments.site/reader033/viewer/2022052823/55548fc3b4c905186d8b46ef/html5/thumbnails/17.jpg)
Custom components
• Download the BP Skeleton Component
• Learn by doing
Saturday, September 26, 2009
![Page 18: BuddyPress and the Future of WordPress Plugins](https://reader033.vdocuments.site/reader033/viewer/2022052823/55548fc3b4c905186d8b46ef/html5/thumbnails/18.jpg)
BuddyPress 1.1
•Consolidated WP/BP themes
•Crazy-simple bbPress install
•Groups API
•more...
Saturday, September 26, 2009
![Page 19: BuddyPress and the Future of WordPress Plugins](https://reader033.vdocuments.site/reader033/viewer/2022052823/55548fc3b4c905186d8b46ef/html5/thumbnails/19.jpg)
bbPress
Saturday, September 26, 2009
![Page 20: BuddyPress and the Future of WordPress Plugins](https://reader033.vdocuments.site/reader033/viewer/2022052823/55548fc3b4c905186d8b46ef/html5/thumbnails/20.jpg)
Theme Architecture
•No more dual themes
•BP themes are WP child themes
Saturday, September 26, 2009
![Page 21: BuddyPress and the Future of WordPress Plugins](https://reader033.vdocuments.site/reader033/viewer/2022052823/55548fc3b4c905186d8b46ef/html5/thumbnails/21.jpg)
WP/WPMU Merge
•2010
•Will make BuddyPress available on any WordPress install
•Consolidation of developer resources
Saturday, September 26, 2009
![Page 22: BuddyPress and the Future of WordPress Plugins](https://reader033.vdocuments.site/reader033/viewer/2022052823/55548fc3b4c905186d8b46ef/html5/thumbnails/22.jpg)
BP Consulting•Nascent market
•Rapidly expanding demand
•Premium prices
•???
•Profit
Saturday, September 26, 2009
![Page 23: BuddyPress and the Future of WordPress Plugins](https://reader033.vdocuments.site/reader033/viewer/2022052823/55548fc3b4c905186d8b46ef/html5/thumbnails/23.jpg)
Plugins Today•Often single author
•High rate of abandonment
•Highly variable quality
•Unendorsed
•Multiple competing solutions
Saturday, September 26, 2009
![Page 24: BuddyPress and the Future of WordPress Plugins](https://reader033.vdocuments.site/reader033/viewer/2022052823/55548fc3b4c905186d8b46ef/html5/thumbnails/24.jpg)
Canonical Plugins
•Multi-author
•High quality
•Supported
•Implicit endorsement
Saturday, September 26, 2009