get thee behind me: making buddypress do thine bidding
TRANSCRIPT
Get thee behind me!Making BuddyPress do thine bidding
Boone Gorges@[email protected]://teleogistic.net
“Facebook in a box”
o Friendso Extended profileso Groupso Forumso Interactive activity streams
Example: CUNY Academic Commonshttp://commons.gc.cuny.edu
Customization Case Study:A rocking website
bp-default: Does not rock
Dashboard > BP > Profile Fields
Customizing components
Dashboard > BP > Component Setup
Lame
define( 'BP_MEMBERS_SLUG', 'headbangers' );
bp-custom.php
Awesome
Lame
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
Awesome
Theming with bp-sn-parent
bp-sn-parent
standard WP theme
+
BP theme files
Lame
[theme-dir]/bp-rock/style.css
[theme-dir]/bp-rock/_inc/css/style.css
Awesome
Plugins
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/
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
AWESOME!!!!!!!!!!
Resources
o http://codex.buddypress.org/o http://buddypress.org/forumso http://buddypress.org/extend/plugins/
Yes!
Boone Gorges@[email protected]