buddypress and the future of wordpress plugins

24
and the Future of WordPress Plugins by Mark Jaquith markjaquith.com coveredwebservices.com @markjaquith Saturday, September 26, 2009

Upload: mark-jaquith

Post on 14-May-2015

3.436 views

Category:

Technology


2 download

DESCRIPTION

An overview of BuddyPress, some technical notes, info about the 1.1 update, and fitting BuddyPress into the broader landscape of WordPress plugins.

TRANSCRIPT

Page 1: BuddyPress and the Future of WordPress Plugins

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

BP 1.1 FTW

Saturday, September 26, 2009

Page 3: BuddyPress and the Future of WordPress Plugins

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

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

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

Saturday, September 26, 2009

Page 7: BuddyPress and the Future of WordPress Plugins

Saturday, September 26, 2009

Page 8: BuddyPress and the Future of WordPress Plugins

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

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

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

Core Files Theme Files

Saturday, September 26, 2009

Page 12: BuddyPress and the Future of WordPress Plugins

Pretty URLs http://bp.site/members/mark/skills/edit/buddypress/seattle

Saturday, September 26, 2009

Page 13: BuddyPress and the Future of WordPress Plugins

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

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

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

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

Custom components

• Download the BP Skeleton Component

• Learn by doing

Saturday, September 26, 2009

Page 18: BuddyPress and the Future of WordPress Plugins

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

bbPress

Saturday, September 26, 2009

Page 20: BuddyPress and the Future of WordPress Plugins

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

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

BP Consulting•Nascent market

•Rapidly expanding demand

•Premium prices

•???

•Profit

Saturday, September 26, 2009

Page 23: BuddyPress and the Future of WordPress Plugins

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

Canonical Plugins

•Multi-author

•High quality

•Supported

•Implicit endorsement

Saturday, September 26, 2009