Get Thee Behind Me: Making BuddyPress do thine bidding

26
Get thee behind me! Making BuddyPress do thine bidding Boone Gorges @boonebgorges [email protected] http://teleogistic.net

Transcript of Get Thee Behind Me: Making BuddyPress do thine bidding

Page 1: Get Thee Behind Me: Making BuddyPress do thine bidding

Get thee behind me!Making BuddyPress do thine bidding

Boone Gorges@[email protected]://teleogistic.net

Page 2: Get Thee Behind Me: Making BuddyPress do thine bidding

“Facebook in a box”

o Friendso Extended profileso Groupso Forumso Interactive activity streams

Page 3: Get Thee Behind Me: Making BuddyPress do thine bidding

Example: CUNY Academic Commonshttp://commons.gc.cuny.edu

Page 4: Get Thee Behind Me: Making BuddyPress do thine bidding

Customization Case Study:A rocking website

Page 5: Get Thee Behind Me: Making BuddyPress do thine bidding

bp-default: Does not rock

Page 6: Get Thee Behind Me: Making BuddyPress do thine bidding

Dashboard > BP > Profile Fields

Page 7: Get Thee Behind Me: Making BuddyPress do thine bidding

Customizing components

Page 8: Get Thee Behind Me: Making BuddyPress do thine bidding

Dashboard > BP > Component Setup

Page 9: Get Thee Behind Me: Making BuddyPress do thine bidding

Lame

Page 10: Get Thee Behind Me: Making BuddyPress do thine bidding

define( 'BP_MEMBERS_SLUG', 'headbangers' );

bp-custom.php

Page 11: Get Thee Behind Me: Making BuddyPress do thine bidding

Awesome

Page 12: Get Thee Behind Me: Making BuddyPress do thine bidding

Lame

Page 13: Get Thee Behind Me: Making BuddyPress do thine bidding

define( 'BPLANG', 'rock' );

if ( file_exists( BP_PLUGIN_DIR . '/bp-languages/buddypress-' . BPLANG . '.mo' ) ) {

load_textdomain( 'buddypress', BP_PLUGIN_DIR .'/bp-languages/buddypress-' . BPLANG . '.mo' );

}

bp-custom.php

[plugin-dir]/buddypress/bp-languages/buddypress-rock.po

Page 14: Get Thee Behind Me: Making BuddyPress do thine bidding

Awesome

Page 15: Get Thee Behind Me: Making BuddyPress do thine bidding

Theming with bp-sn-parent

Page 16: Get Thee Behind Me: Making BuddyPress do thine bidding

bp-sn-parent

standard WP theme

+

BP theme files

Page 17: Get Thee Behind Me: Making BuddyPress do thine bidding

Lame

Page 18: Get Thee Behind Me: Making BuddyPress do thine bidding

[theme-dir]/bp-rock/style.css

Page 19: Get Thee Behind Me: Making BuddyPress do thine bidding

[theme-dir]/bp-rock/_inc/css/style.css

Page 20: Get Thee Behind Me: Making BuddyPress do thine bidding

Awesome

Page 21: Get Thee Behind Me: Making BuddyPress do thine bidding

Plugins

Page 22: Get Thee Behind Me: Making BuddyPress do thine bidding

Tools

o Group extension APIo http://codex.buddypress.org/developer-docs/group-extension-api/

o Skeleton componento http://wordpress.org/extend/plugins/buddypress-skeleton-component/

Page 23: Get Thee Behind Me: Making BuddyPress do thine bidding

Hooks and filters

function how_bad_ass_am_i() {global $bp;

$user_id = $bp->displayed_user->id;$user_name = $bp->displayed_user->fullname;$user_url = $bp->displayed_user->domain;

echo '<a href="' . $user_url . '">' . $user_name . '</a> is bad ass #' . $user_id . ' on this site.';

}add_action( 'bp_before_profile_field_content', 'how_bad_ass_am_i' );

bp-custom.php

Page 24: Get Thee Behind Me: Making BuddyPress do thine bidding

AWESOME!!!!!!!!!!

Page 25: Get Thee Behind Me: Making BuddyPress do thine bidding

Resources

o http://codex.buddypress.org/o http://buddypress.org/forumso http://buddypress.org/extend/plugins/

Page 26: Get Thee Behind Me: Making BuddyPress do thine bidding

Yes!

Boone Gorges@[email protected]